How to create server actions in Odoo 10?

Server action is an new feature to the OpenERP available since the version 5.0 beta. This features enables to provides the quick and easy configuration some process which is day to day requirements: Like a block of python code that will be executed,  send a signal to a workflow, update the values of a record, choose a client action to launch etc. Continue reading

How to create a Search and Calendar Views in Odoo?

Hello dear fellow. In this article, we will learn how to create a Search and Calendar views in Odoo?
Search view is declared quite similarly to a form view, except that the view type and root element change to search instead of form, they are used to filter other view’s content, generally lists or graphs views. Continue reading

How To create wizards in odoo ?

Hello , In this post were going to talk about wizards how to create and use them.

A wizard is a model that display a form view to the user usually in a dialog window, with some fields to be filled in, unlike other models wizards are declared using models.TransietModel and data used in wizard it’s expected to be useful in only until wizard is completed or canceled.

Continue reading

How to create a form view in Odoo?

Hello everyone. In this blog-post tutorial we will learn how to create a form view in Odoo. Firstly, let’s define views. Views is the way the records of a model are displayed. Each type of view represents a mode of visualization ( a list of records, form, a graph, calendar, kanban). Here we will learn one mode ‘Form’ view.

So, here we have a model named Marks which has a Many2one field called ‘student_id’. This field represents the informations of the Students(e.g name, age, number,…) other Many2one field called ‘courses_id’ (e.g name, number), and Float fields ‘exam1’ ‘exam2’ ‘extra’ ‘average’. Marks model looks like this: Continue reading

How to use @api.depends decorated method?

Hello everyone. Today I’m gonna explain you how to use @api.depends decorated method.

First of all, the fields can be computed (instead of read from the database) using the compute parameter, it must assign the computed value to the field, it uses the values of other fields from the same model or others model (unlike @api.onchange which work only with the fields in the same view), it should specify fields using depends(). Continue reading