You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
453 B
12 lines
453 B
To use this module, you need to:
|
|
|
|
* depend on this module
|
|
* call `yourmodel.play_onchanges(values, ['field'])`
|
|
|
|
Example if you want to create a sale order and you want to get the values relative to partner_id field (as if you fill the field from UI)
|
|
|
|
`vals = {'partner_id': 1}`
|
|
|
|
`vals = self.env['sale.order'].play_onchanges(vals, ['partner_id'])`
|
|
|
|
Then, `vals` will be updated with partner_invoice_id, partner_shipping_id, pricelist_id, etc...
|