Rohan Nayani(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev-improvement-ron into
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-l10n-control-dev-improvement-ron/+merge/83772
Hello,
I have checked l10n_multilang module,
Changed the Tax name and code which is generated from template dynamically
because of tax name,code have unique constrain on account.tax model.
Thanks
Ron
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-l10n-control-dev-improvement-ron/+merge/83772
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev.
=== modified file 'account/account.py'
--- account/account.py 2011-11-28 05:39:37 +0000
+++ account/account.py 2011-11-29 12:49:17 +0000
@@ -3246,7 +3246,7 @@
for tax_type, value in tax_dict.items():
tax_name = tax_type == 'sale' and 'TAX Received' or 'TAX Paid'
if value > 0.0:
- tax_string = _('TAX %s%%') % (value)
+ tax_string = _('TAX %s %s%%') % (tax_type, value)
new_tax_code_temp = obj_tax_code_template.create(cr, uid, {'name': tax_string, 'code': tax_string}, context=context)
new_paid_tax_code_temp = obj_tax_code_template.create(cr, uid, {'name': _('%s %s%%') % (tax_name, value), 'code': _('%s %s%%') % (tax_name, value)}, context=context)
sales_tax_temp = obj_tax_temp.create(cr, uid, {
_______________________________________________
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