Skip to content
Snippets Groups Projects
Commit a5f07e16 authored by Arnold Moyaux's avatar Arnold Moyaux Committed by Simon Lejeune
Browse files

[REF] purchase_requisition: multi company

Adapt purchase_requisition to the multicompany changes.

task-1985992
parent 20713735
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,9 @@ class PurchaseRequisition(models.Model):
ordering_date = fields.Date(string="Ordering Date", tracking=True)
date_end = fields.Datetime(string='Agreement Deadline', tracking=True)
schedule_date = fields.Date(string='Delivery Date', index=True, help="The expected and scheduled delivery date where all the products are received", tracking=True)
user_id = fields.Many2one('res.users', string='Purchase Representative', default=lambda self: self.env.user)
user_id = fields.Many2one(
'res.users', string='Purchase Representative',
default=lambda self: self.env.user, check_company=True)
description = fields.Text()
company_id = fields.Many2one('res.company', string='Company', required=True, default=lambda self: self.env.company)
purchase_ids = fields.One2many('purchase.order', 'requisition_id', string='Purchase Orders', states={'done': [('readonly', True)]})
......
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