[FIX] product: make sure unlinked product still exists
authorThomas Groutars <tgr@odoo.com>
Thu, 14 Aug 2014 14:47:01 +0000 (16:47 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 18 Aug 2014 08:37:03 +0000 (10:37 +0200)
commit397e83554b09357a227b4d4b4758739a4778748f
tree5c518ee100a706ab28d1aeeaa73fbc5691c288ce
parent97d097a2af8c3992d5108bd75b82fa8479d196cc
[FIX] product: make sure unlinked product still exists

When uninstalling/updating a module, we may execute unlink method on product.template before product.product. In such cases, the product is already removed after removeing the template (_inherits) and the chained unlink of the product would fail (traceback when browsing).
addons/product/product.py