Skip to content

Commit

Permalink
[IMP] joint_buying_purchase: populate purchase order field 'date_plan…
Browse files Browse the repository at this point in the history
…ned' with the arrival_date of the request of the joint buying order
  • Loading branch information
legalsylvain committed Jul 5, 2024
1 parent 6e56221 commit ece480c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ class JointBuyingCreatePurchaseOrderWizard(models.TransientModel):
)

def _default_date_planned(self):
# TODO: With LOG2, recover the delivery date
return False
order = self.env["joint.buying.purchase.order"].browse(
self.env.context.get("active_id")
)
return order and order.request_arrival_date

def _default_order_id(self):
return self.env.context.get("active_id")
Expand Down

0 comments on commit ece480c

Please sign in to comment.