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

  1. To use this module, you need to:
  2. * depend on this module
  3. * call `yourmodel.play_onchanges(values, ['field'])`
  4. 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)
  5. `vals = {'partner_id': 1}`
  6. `vals = self.env['sale.order'].play_onchanges(vals, ['partner_id'])`
  7. Then, `vals` will be updated with partner_invoice_id, partner_shipping_id, pricelist_id, etc...