Skip to content
Snippets Groups Projects
Commit 1d967879 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] purchase_requisition: PO date


When creating a new PO from a purchase requisition, the order date of
the PO is the last date of the contract. There is no reason for this,
and althoguh the date can be manually changed, it is error-prone.

opw-1937141

closes odoo/odoo#31969

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent f7acbf64
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,7 @@ class PurchaseOrder(models.Model):
else:
self.origin = requisition.name
self.notes = requisition.description
self.date_order = requisition.date_end or fields.Datetime.now()
self.date_order = fields.Datetime.now()
self.picking_type_id = requisition.picking_type_id.id
if requisition.type_id.line_copy != 'copy':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment