Wednesday, 30 March 2022

Issue with formatting date in Qweb Odoo

Yes, This happens in odoo v12 or later versions.In your SO, PO or any document/record date is 26/03/2022 but when you print/download pdf report it show like 26/03/2023<span t-field="request_date_to" t-options='{"widget": "date", "format": "dd MMM Y"}'/>Above line is printing date like...
Share:

Monday, 25 September 2017

Override xml action in odoo

Yes, you can override the xml action in Odoo any version like below. Here i will tell how Sale Order action can be override by example. Default Sales Orders action is <record id="action_orders" model="ir.actions.act_window">             <field name="name">Sales...
Share:

Saturday, 23 September 2017

Changing SQL constraints in inheriting models in Odoo 8

In OpenERP 7 there was an established pattern that allowed creators of inheriting model classes to modify sql constrained defined in a parent class. You just needed to define a new constraint with the same name (the technique is for example described in this forum thread). In Odoo 8 this no...
Share:

Showing a menu badge in Odoo

Odoo allows programmers to display badges with numeric values next to menu items: To use this functionality, you need to configure your model. Odoo provides an _ir.needaction_mixin for...
Share: