Meera Trambadia (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-796570-mtr into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #796570 in OpenERP Addons: "Sale and purchase taxes are not get from
account.accout default tax"
https://bugs.launchpad.net/openobject-addons/+bug/796570
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-796570-mtr/+merge/67277
Sale: If Sale tax is not provided on product it will take from
property_account_income or property_account_income_categ -- fixes=lp:796570
--
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.
=== modified file 'sale/sale.py'
--- sale/sale.py 2011-07-07 15:59:20 +0000
+++ sale/sale.py 2011-07-08 05:39:25 +0000
@@ -1084,6 +1084,11 @@
if update_tax: #The quantity only have changed
result['delay'] = (product_obj.sale_delay or 0.0)
result['tax_id'] = self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos, product_obj.taxes_id)
+ if not result['tax_id']:
+ if product_obj.property_account_income.tax_ids:
+ result['tax_id'] = self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos, product_obj.property_account_income.tax_ids)
+ elif product_obj.categ_id.property_account_income_categ.tax_ids:
+ result['tax_id'] = self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos, product_obj.categ_id.property_account_income_categ.tax_ids)
result.update({'type': product_obj.procure_method})
if not flag:
_______________________________________________
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