Greetings Everyone, In this blog-post tutorial, you will learn how to create an Action and its Menuitem in an Odoo 8 / 9 /10 / 11 / 12 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 […]
Tag: 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 […]
Odoo Module Structure
Greetings Everyone, In this blog-post you will learn about the modular structure of odoo i.e. What a module consists of, its structure and how it is divided. Take a look at the module and you will find a specific convention followed to create a module. Each file and folder has a unique purpose and you […]
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) […]
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 […]
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 […]
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 […]