> The field move.sale_line_id (used in mrp/stock.py) is defined by the module
> sale.
> The problem is: you can install module mrp without sale.
> If you do that, your code will break :-(  (Don't hesitate to tell me if I am
> wrong.)
> 
> Can you work around that possibility?

Hint: you can test for the presence of the field in the model with the 
expression

    'sale_line_id' in move

Raphael

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17431-rha/+merge/75501
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-17431-rha.

_______________________________________________
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