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

Advertisements

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 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