how can i disable that a sale order line will be automatically added to a sale when finishing a stock-Picking (Delivery)?
i just want such a position to be added manually in sale process bevore confirming the sale order.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how can i disable that a sale order line will be automatically added to a sale when finishing a stock-Picking (Delivery)?
i just want such a position to be added manually in sale process bevore confirming the sale order.
Hi, you can do this to enter it only after confirmation of the SO:
class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.multi
def action_confirm(self):
for order in self:
order.delivery_set()
return super(SaleOrder, self).action_confirm()
in V12 i do not have such method
i found the function _add_delivery_cost_to_so in delivery/models/stock_picking.py .. this adds the line
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden