Browsing articles tagged with "@api.multi Archives - Odoo Technical"
Jan
22
2016

Learn – Overriding name_get method in Odoo 8 with Example

Overriding name_get method odoo 8

Greetings Everyone, in this blog-post you will learn how to override name_get method in Odoo 8. The syntax of name_get is: name_get(self) —> [(id, name), …] Returns a textual representation for the records in self. By default this is the value of the display_name field. Returns: list of pairs (id, text_repr) for each records Return Type: list(tuple) […]

Jan
21
2016

Learn – Overriding default_get method in Odoo 8 with Example

Overriding default_get method

Greetings Everyone, in this blog-post you will learn how to override default_get method in Odoo 8. The syntax of default_get is: default_get(fields) → default_values Return default values for the fields in fields_list. Default values are determined by the context, user defaults, and the model itself. Parameters: fields_list – a list of field names Returns: a […]

Nov
19
2015

Learn: Overriding Write Method in Odoo 8

override write method odoo 8

Greetings everyone, in this blog-post, you will learn how to override write method in Odoo 8. The write method for a particular model  can be called by clicking the ‘Edit’ & followed by ‘Save’ button in the view of that model. Here i have overridden the write method of res.users model. You can override the write method […]

Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Contact us
Hide Buttons