mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX][mrp_production_request] date_planned field should be named date_planned_start
This commit is contained in:
committed by
Chandresh Thakkar
parent
3c8ccf6dd9
commit
f142aabb94
@@ -91,9 +91,14 @@ class MrpProductionRequest(models.Model):
|
||||
track_visibility='onchange',
|
||||
readonly=True, states={'draft': [('readonly', False)]})
|
||||
description = fields.Text('Description')
|
||||
date_planned = fields.Date(
|
||||
string='Planned Date', required=True, track_visibility='onchange',
|
||||
default=fields.Date.context_today)
|
||||
date_planned_start = fields.Datetime(
|
||||
'Deadline Start', copy=False, default=fields.Datetime.now,
|
||||
index=True, required=True,
|
||||
states={'confirmed': [('readonly', False)]}, oldname="date_planned")
|
||||
date_planned_finished = fields.Datetime(
|
||||
'Deadline End', copy=False, default=fields.Datetime.now,
|
||||
index=True,
|
||||
states={'confirmed': [('readonly', False)]})
|
||||
company_id = fields.Many2one(
|
||||
comodel_name='res.company', string='Company',
|
||||
required=True, default=_company_get)
|
||||
@@ -108,6 +113,19 @@ class MrpProductionRequest(models.Model):
|
||||
("cancel", "Cancelled")],
|
||||
index=True, track_visibility='onchange',
|
||||
required=True, copy=False, default='draft')
|
||||
procurement_group_id = fields.Many2one(
|
||||
string='Procurement Group',
|
||||
comodel_name='procurement.group',
|
||||
copy=False)
|
||||
procurement_ids = fields.One2many(
|
||||
string='Related Procurements',
|
||||
comodel_name='procurement.order',
|
||||
inverse_name='mrp_production_request_id')
|
||||
propagate = fields.Boolean(
|
||||
'Propagate cancel and split',
|
||||
help='If checked, when the previous move of the move '
|
||||
'(which was generated by a next procurement) is cancelled '
|
||||
'or split, the move generated by this move will too')
|
||||
procurement_id = fields.Many2one(
|
||||
comodel_name="procurement.order", string="Procurement Order",
|
||||
readonly=True)
|
||||
|
||||
Reference in New Issue
Block a user