Commit e49efce6 authored by Jérome Perrin's avatar Jérome Perrin

add a constraint to make sure the currency is defined, otherwise accounting

generation will fail



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20982 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39a812b4
...@@ -67,6 +67,13 @@ class TradeOrder: ...@@ -67,6 +67,13 @@ class TradeOrder:
'destination': 1, 'destination': 1,
'message': 'Recipient or Beneficiary must be defined', 'message': 'Recipient or Beneficiary must be defined',
}, },
{ 'id' : 'price_currency_category_existence',
'description' : 'Price Currency must be defined',
'type' : 'CategoryExistence',
'portal_type' : ('Currency', ),
'price_currency': 1,
'message': 'Currency must be defined',
},
{ 'id' : 'total_quantity', { 'id' : 'total_quantity',
'description' : 'Total Quantity must not be 0', 'description' : 'Total Quantity must not be 0',
'type' : 'TALESConstraint', 'type' : 'TALESConstraint',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment