+ company_id = self.pool.get('res.company')._company_default_get(cr, uid, 
'mrp.repair', context=context)

=> you can't use that in a onchange, it makes no sense. I replaced by the 
company_id field of the repair order that is now passed to the function.

Your patch also contained another error: adding the context to the onchange 
method is great, a nice idea... but if you don't change the xml view 
accordingly, it's just useless. Yml file should have also been checked.

i fixed all that and pushed in trunk in revision 5465.

Quentin
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-831543-aag/+merge/72686
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-831543-aag.

_______________________________________________
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