mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_hibou: remove implicit dependency on sale_sourced_by_line
This commit is contained in:
committed by
Jared Kipe
parent
cc666bcf43
commit
a35f412a88
@@ -254,7 +254,7 @@ class DeliveryCarrier(models.Model):
|
||||
else:
|
||||
if packages:
|
||||
raise UserError(_('Cannot rate package without picking.'))
|
||||
self = self.with_context(date_planned=(order.date_planned or fields.Datetime.now()))
|
||||
self = self.with_context(date_planned=('date_planned' in order._fields and order.date_planned or fields.Datetime.now()))
|
||||
|
||||
res = []
|
||||
for carrier in self:
|
||||
|
||||
Reference in New Issue
Block a user