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.

11 lines
471 B

  1. The sole purpose of this module is to add an abstract model to be inherited.
  2. So, you will not notice any changes on install.
  3. To develop using this module, you have to inherit the abstract model `abstract.conditional.image`
  4. to the model that needs the conditional images::
  5. class ResPartner(models.Model):
  6. _inherit = ['res.partner', 'abstract.conditional.image']
  7. _name = 'res.partner'
  8. Then, configure how the images will be selected for each record.