Creating Actions and Menuitem Odoo 8 tutorial

Learn – How to create a Window Action and Menuitem in Odoo 8 with Example

Greetings Everyone, In this blog-post tutorial, you will learn how to create an Action and its Menuitem in an Odoo 8 module. Type of Actions in Odoo: Window Actions (ir.actions.act_window) URL Actions (ir.actions.act_url) Server Actions (ir.actions.server) Report Actions (ir.actions.report.xml) Client Actions (ir.actions.client) Here we’ll learn about the Window Action. What is Window Action in Odoo? […]

init and openerp file odoo

Understanding __init__.py and __openerp__.py file in Odoo

Greetings Everyone, In this blog-post you will learn about the __init__.py and __openerp__.py file of an odoo module. __init__.py – This file is the initializer of the module. You might have heard about the term ‘constructor’ in java and this file acts in the same way. It contains import statements linking to folders and files in […]

Overriding name_get method odoo 8

Learn – Overriding name_get method in Odoo 8 with Example

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) […]

Overriding default_get method

Learn – Overriding default_get method in Odoo 8 with Example

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 […]

override write method odoo 8

Learn: Overriding Write Method in 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 […]

override create method odoo 8

Learn: Overriding Create Method in Odoo 8 with Example

Greetings everyone, In this blog-post, you will learn how to override create method in Odoo v8. The create method for a particular model  can be called by clicking the ‘Create’ button in the view of that model. Here I have overridden the create method of res.users model. You can override the create method of any model in similar […]