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.

13 lines
542 B

  1. .. code-block:: python
  2. from . company import ResCompany
  3. class WhatiwantConfigSettings(models.TransientModel):
  4. _inherit = ['res.config.settings', 'abstract.config.settings']
  5. _name = 'res.config.settings'
  6. # fields must be defined in ResCompany class
  7. # related fields are automatically generated from previous definitions
  8. _companyObject = ResCompany
  9. # all prefixed field with _prefix in res.company, will be available in 'res.config.settings' model
  10. _prefix = 'prefixyouchoose_'