OLD | NEW |
(Empty) | |
| 1 #This file is part of Tryton. The COPYRIGHT file at the top level of |
| 2 #this repository contains the full copyright notices and license terms. |
| 3 from trytond.model import ModelView, ModelSQL, ModelSingleton, fields |
| 4 from trytond.pyson import Eval |
| 5 |
| 6 |
| 7 class Configuration(ModelSingleton, ModelSQL, ModelView): |
| 8 'Production Configuration' |
| 9 _name = 'production.configuration' |
| 10 _description = __doc__ |
| 11 |
| 12 production_sequence = fields.Property(fields.Many2One('ir.sequence', |
| 13 'Production Sequence', domain=[ |
| 14 ('company', 'in', |
| 15 [Eval('context', {}).get('company'), False]), |
| 16 ('code', '=', 'production'), |
| 17 ], required=True)) |
| 18 |
| 19 Configuration() |
OLD | NEW |