Search code examples
automationodooodoo-11

odoo 11: how do i prevent a delivery order is created upon sales confirmation


If i confirm a sales order odoo automatically creates a corresponding delivery order. However, this process is not quite right forour purpose where we want to have a delivery order being created ONLY after payment is received.

I somehow recall there was a way to change those workflows in previous versions, but do not find anything regarding this topic in odoo 11. Anyone got an idea on how to teach odoo that creating a delivery order must be manually triggered or after payment is received?


Solution

  • You can just do it by overriding existing function : "_create_delivery_line" as there is no more workflow in the latest versions of odoo ,