[IMP] delivery: allow to set delivery price from XML-RPC call

(a method that returns nothing is not callable through XML-RPC)

Backport of dc043cf1bb to 9.0

Fixes #12289 and tinyerp/erppeek#87
This commit is contained in:
xmo-odoo
2016-06-07 09:36:30 +02:00
parent e5a42b2644
commit ef1fb844f5
+2
View File
@@ -70,6 +70,8 @@ class SaleOrder(models.Model):
else:
raise UserError(_('No carrier set for this order.'))
return True
def _create_delivery_line(self, carrier, price_unit):
SaleOrderLine = self.env['sale.order.line']