Hi all,
I would like to get rid of the free delivery charges.
They are defined in delivery module in delivery_data.xml:
<record id="product_product_delivery" model="product.product">
<field name="name">Free delivery charges</field>
<field name="default_code">Delivery_007</field>
<field name="type">service</field>
<field name="categ_id" ref="delivery.product_category_deliveries"/>
<field name="sale_ok" eval="False"/>
<field name="purchase_ok" eval="False"/>
<field name="list_price">0.0</field>
</record>
<record id="free_delivery_carrier" model="delivery.carrier">
<field name="name">Free delivery charges</field>
<field name="fixed_price">0.0</field>
<field name="free_over" eval="True"/>
<field name="amount">1000</field>
<field name="sequence">1</field>
<field name="delivery_type">fixed</field>
<field name="product_id" ref="delivery.product_product_delivery"/>
</record>
With every rebuild they are set up, but I don't need them, because I define my own charges.
Is there a way to override the delivery_data.xml in my custom module? Or to remove the charges permanently in odoo itself?
Thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2078
Views
Hi,
If you have got custom modules in your system which depends on the stock, add the following line to the xml file to delete the record.
<delete id="delivery.free_delivery_carrier" model="delivery.carrier"/>
Thanks
Thanks a lot Niyas! Where can I read a little more about the possibilities to change data.xml? For example how to update instead of delete etc.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up