details: https://code.tryton.org/tryton/commit/20ea017e76f4
branch: default
user: Cédric Krier <[email protected]>
date: Thu Jan 08 12:06:47 2026 +0100
description:
Remove duplicate fields from production inherited from ShipmentMixin
diffstat:
modules/production/production.py | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diffs (34 lines):
diff -r b522670d4d63 -r 20ea017e76f4 modules/production/production.py
--- a/modules/production/production.py Thu Jan 08 12:04:46 2026 +0100
+++ b/modules/production/production.py Thu Jan 08 12:06:47 2026 +0100
@@ -29,19 +29,6 @@
_assign_moves_field = 'inputs'
number = fields.Char("Number", readonly=True)
- reference = fields.Char(
- "Reference",
- states={
- 'readonly': ~Eval('state').in_(['request', 'draft']),
- })
- planned_date = fields.Date('Planned Date',
- states={
- 'readonly': Eval('state').in_(['cancelled', 'done']),
- })
- effective_date = fields.Date('Effective Date',
- states={
- 'readonly': Eval('state').in_(['cancelled', 'done']),
- })
planned_start_date = fields.Date('Planned Start Date',
states={
'readonly': ~Eval('state').in_(['request', 'draft']),
@@ -175,7 +162,10 @@
@classmethod
def __setup__(cls):
cls.number.search_unaccented = False
+ cls.number.help = cls.number.help.replace('shipment', 'production')
cls.reference.search_unaccented = False
+ cls.reference.help = cls.reference.help.replace(
+ 'shipment', 'production')
super().__setup__()
t = cls.__table__()
cls._sql_indexes.update({