Configuration Helper
by Akretion https://github.com/OCA/server-tools , Odoo Community Association (OCA) https://github.com/OCA/server-tools
Odoo
Availability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
configuration_helper |
License | AGPL-3 |
Website | http://www.akretion.com/ |
Versions | 12.0 14.0 13.0 11.0 7.0 9.0 10.0 |
Configuration Helper
This module is intended for developer only. It does nothing used alone.
This module :
- create automatically related fields in 'whatiwant.config.settings' using those defined in 'res.company' : it avoid duplicated field definitions.
- company_id field with default value is created
- onchange_company_id is defined to update all related fields
- supported fields: char, text, integer, float, datetime, date, boolean, m2o
How to use
from . company import ResCompany class WhatiwantClassSettings(orm.TransientModel): _inherit = ['res.config.settings', 'abstract.config.settings'] _name = 'whatiwant.config.settings' # fields must be defined in ResCompany class # related fields are automatically generated from previous definitions _companyObject = ResCompany
Roadmap
- support (or check support) for these field types : o2m, m2m, reference, property, selection
- automatically generate a default view for 'whatiwant.config.settings' (in --debug?)
Contributors
- David BEAL <david.beal@akretion.com>
- Sébastien BEAU <sebastien.beau@akretion.com>
- Yannick Vaucher, Camptocamp, (code refactoring from his module 'delivery_carrier_label_postlogistics')
Please log in to comment on this module