[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: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user