Review: Needs Fixing
self.pool.get('account.fiscal.position') => define pool object at beginning of
the method
No need to create if elif.. you can define one variable for tax_ids.
tax_ids=product_obj.taxes_id or product_obj.property_account_income.tax_ids or
product_obj.categ_id.property_account_income_categ.tax_ids
and pass it in map_tax()
Do not forget to pass context in the map_tax method.
Thanks,
mra
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-796570-mtr/+merge/67277
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-796570-mtr.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp