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
550 B

  1. .. code-block:: python
  2. from . company import ResCompany
  3. class WhatiwantClassSettings(orm.TransientModel):
  4. _inherit = ['res.config.settings', 'abstract.config.settings']
  5. _name = 'whatiwant.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 'whatiwant.config.settings' model
  10. _prefix = 'prefixyouchoose_'