Review: Needs Fixing
- instead of calling osv.osv fields_view_get now you should call its parent
class fields_view_get.
super(osv.osv, self).fields_view_get => super(account_move_line,
self).fields_view_get
- view_obj.insert(12, new_field) => This is not proper way to insert dont use
static position.
- If there is analytic_account_id then only you have to replace it with
analytics_id so move your code inside the for loop
for node in view_obj.xpath("//field[@name='analytic_account_id']"):
Thanks,
mra
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-717561-ara/+merge/67498
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-717561-ara.
_______________________________________________
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