Enforce currency and amount sign for payment of statement line
issue11170 review397151002
This commit is contained in:
1 parent
37cfe21ced
commit
5d9509cb8a
1 file changed
+5
-1
+5
-1
@@ -80,7 +80,7 @@ class Group(ModelSQL, ModelView):
|
||||
depends=['company', 'journal'])
|
||||
currency = fields.Function(fields.Many2One(
|
||||
'currency.currency', "Currency"),
|
||||
'on_change_with_currency')
|
||||
'on_change_with_currency', searcher='search_currency')
|
||||
payment_count = fields.Function(fields.Integer(
|
||||
"Payment Count",
|
||||
help="The number of payments in the group."),
|
||||
@@ -268,6 +268,10 @@ class Group(ModelSQL, ModelView):
|
||||
if self.journal:
|
||||
return self.journal.currency.id
|
||||
|
||||
@classmethod
|
||||
def search_currency(cls, name, clause):
|
||||
return [('journal.' + clause[0],) + tuple(clause[1:])]
|
||||
|
||||
|
||||
_STATES = {
|
||||
'readonly': Eval('state') != 'draft',
|
||||
|
||||
Reference in new issue
Block a user