Update purchase_request.py

This commit is contained in:
zainab2097 2024-10-07 11:55:26 +03:00 committed by GitHub
parent 4bbe4bd37e
commit e23bae2bac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class PurchaseRequest(models.Model):
'purpose': self.purchase_purpose,
'purchase_cost': 'product_line',
'order_line': line_ids,
'res_model':"purchase.request",
'res_id': self.id, # Reference to the current purchase order
})
self.write({'purchase_create': True,'state':'employee'})