[FIX] product: use new api to retrieve product standard price as SUPERUSER
authorDenis Ledoux <dle@odoo.com>
Tue, 14 Oct 2014 10:46:07 +0000 (12:46 +0200)
committerDenis Ledoux <dle@odoo.com>
Tue, 14 Oct 2014 10:46:07 +0000 (12:46 +0200)
commitda17723bef0a51cbe033ff7f53a2a58a1b200157
tree37b1c7c572ce6d26a2e5bebbf5f5eeb28de2ed7f
parentb447d7b0636dc068c0b77a011433766087a5a10a
[FIX] product: use new api to retrieve product standard price as SUPERUSER

As it looks like self is a product.template, and product can be a product.product. Using the new api avoid to have this problem.
addons/product/product.py