minor fix and traslate

This commit is contained in:
Elvis 2023-08-03 09:48:29 -05:00
parent 1784b60da1
commit 7c2b711abc
3 changed files with 1841 additions and 354 deletions

View File

@ -69,7 +69,8 @@ class VarietyStageActivity(ModelSQL, ModelView):
work_time = fields.Numeric('Work Time', required=True)
cost_per_hour = fields.Numeric('Cost Per Hour', digits=(16, 2))
uom = fields.Many2One('product.uom', 'Unit')
uom_time = fields.Many2One('product.uom', 'Unit of Time')
uom_time = fields.Many2One('product.uom', 'Unit of Time',
states={'required': True})
supplies = fields.One2Many('farming.variety.stage.activity.supply',
'activity', 'Supply')
time_of_realization = fields.Integer('Time of Realization', required=True,

File diff suppressed because it is too large Load Diff

View File

@ -49,7 +49,7 @@ class FarmingLocation(ModelSQL, ModelView):
"Farming Location"
__name__ = "farming.location"
name = fields.Char('Name', required=True)
code = fields.Char('Code')
code = fields.Char('Code', states={'required': True})
address = fields.Char('Address')
warehouse = fields.Many2One('stock.location', 'Warehouse', required=True,
domain=[('type', '=', 'warehouse')])