Rifakat Haradwala (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-bug-805403-rha into 
lp:openobject-addons/6.0.

Requested reviews:
  Jay Vora (OpenERP) (jvo-openerp)
Related bugs:
  Bug #805403 in OpenERP Addons: "taxes report active_id problem"
  https://bugs.launchpad.net/openobject-addons/+bug/805403

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-bug-805403-rha/+merge/66877

account: resolved active_id problem for Taxes report, used ids of ir.ui.menu 
instead of account.tax.code in account_vat.py
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-bug-805403-rha/+merge/66877
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-bug-805403-rha.
=== modified file 'account/wizard/account_vat.py'
--- account/wizard/account_vat.py	2011-01-14 00:11:01 +0000
+++ account/wizard/account_vat.py	2011-07-05 10:41:36 +0000
@@ -44,9 +44,10 @@
     def create_vat(self, cr, uid, ids, context=None):
         if context is None:
             context = {}
-        datas = {'ids': context.get('active_ids', [])}
+        datas = {}
         datas['model'] = 'account.tax.code'
         datas['form'] = self.read(cr, uid, ids)[0]
+        datas['ids'] = [datas['form']['chart_tax_id']]
         datas['form']['company_id'] = self.pool.get('account.tax.code').browse(cr, uid, [datas['form']['chart_tax_id']], context=context)[0].company_id.id
         return {
             'type': 'ir.actions.report.xml',
@@ -56,4 +57,4 @@
 
 account_vat_declaration()
 
-#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

_______________________________________________
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

Reply via email to