[FIX] [WIP] website_sale: fix crash when having product templates without variant.
authorThibault Delavallée <tde@openerp.com>
Thu, 24 Oct 2013 11:04:53 +0000 (13:04 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 24 Oct 2013 11:04:53 +0000 (13:04 +0200)
commit0467c8a5abdeabacb90354a0a8ef936c317ba0b2
tree79e09c2a1bbddec0f1b5e7130d040c0d7df5fbb3
parent258846a6975571d50886b1b9fc48f7887033aee7
[FIX] [WIP] website_sale: fix crash when having product templates without variant.

probably it should not be displayed, but as there does not seem to exist any
clue about what the controller / view should do, I added some protections.

[DOC] added some comments because some methods seems quite weird.

bzr revid: tde@openerp.com-20131024110453-uj4xnrtwst0fdcrb
addons/website_sale/__openerp__.py
addons/website_sale/controllers/main.py
addons/website_sale/views/website_sale.xml