Move error message to message.xml
This commit is contained in:
parent
8181c2ef7d
commit
8e915b27ff
|
@ -0,0 +1,7 @@
|
|||
<tryton>
|
||||
<data group="1">
|
||||
<record model="ir.message" id="msg_category_name_unique">
|
||||
<field name="text">The Name of the Lot Cost Category must be unique.</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
2
stock.py
2
stock.py
|
@ -24,7 +24,7 @@ class LotCostCategory(ModelSQL, ModelView):
|
|||
t = cls.__table__()
|
||||
cls._sql_constraints += [
|
||||
('name_uniq', Unique(t, t.name),
|
||||
'The Name of the Lot Cost Category must be unique.'),
|
||||
'stock_lot_cost.msg_category_name_unique'),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -4,3 +4,4 @@ depends:
|
|||
stock_lot
|
||||
xml:
|
||||
stock.xml
|
||||
message.xml
|
||||
|
|
Loading…
Reference in New Issue