Using Odoo Functional and Related Fields for Reporting Freight
This developer video looks at how Odoo functional fields and Odoo related fields can be combined to solve a real world business problem. Specifically, the requirement to break out freight or shipping charges into their own field on a sales order header.
Video Length: 39 minutesSubscription Options
Providing a custom welcome screen for Odoo users
Odoo customization that increases customer satisfaction
Watch advanced Odoo development in action
Odoo Development - Using Functional and Related Fields
Under what circumstances should I use functional fields in Odoo?
Often times when reporting data in a database you may need access to information that can be calculated on the fly. For example, the sub-total of a sales order is the sum of the sub-total of the line items of the sales order. There is no need to actually store the sub-total for the entire sales order when the system can calculate that sub-total based on the line items. In the real use case study used in this video we store freight in the header of the sales order much like the sub-total is stored there. We calculate this freight based on the line items in the order, but we make the freight amount available so it can be reported easily on different documents in the header.
See the difference between the old API vs the new Odoo API
In this video we break down the problem and implement the functional field solution using the older Odoo API. Now with Odoo version 9, it is more important than ever that developers understand both the old and new Odoo API. Remember, much of the community modules and even much of the code under Odoo 8 is in the old Odoo API. It is still vital that an expert Odoo developer understand both API's for at least through 2016.
We have created a video that demonstrates how to create the same solution using the new Odoo API: Understand the new Odoo API