Availability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
default_data |
Website | http://open2bizz.nl/ |
Versions | 10.0 8.0 |
Default Data
Provide default texts
For every entity
Getting tired of writing the same sentence over and over again? Then this module is the solution for you!
Easy configuration
As easy as 1+1
Configure your default data with a few simple clicks. All you have to think about the data itself.
Implement the Framework
To benefit from the default data in your module
By adding a few lines of code you'll provide your users with an easy way to fill data.
value = fields.Html( string = 'Value' ) default_value = fields.Many2one( comodel_name = 'default.data', string = 'Default Value', domain = "[('model', '=', 'my.model'), ('field', '=', 'value')]" ) @api.onchange("default_value") def onchange_default_handshake(self): if self.default_handshake: update_data = self.default_handshake.get_update_default_data(self.handshake) if update_data['update']: self.value = update_data['data']
Please log in to comment on this module