Order payment by closest amount to the statement line
issue11171 review360781002
This commit is contained in:
1 parent
27626474b0
commit
243a278a64
1 file changed
+4
@@ -84,6 +84,10 @@ class StatementLine(metaclass=PoolMeta):
|
||||
'invisible': Bool(Eval('payment_group')) | Bool(Eval('invoice')),
|
||||
'readonly': Eval('statement_state') != 'draft',
|
||||
},
|
||||
search_order=[('amount', 'ASC'), ('state', 'ASC')],
|
||||
search_context={
|
||||
'amount_order': Eval('amount', 0),
|
||||
},
|
||||
depends=['company', 'party', 'currency', 'amount', 'statement_state'])
|
||||
payment_group = fields.Many2One(
|
||||
'account.payment.group', "Payment Group",
|
||||
|
||||
Reference in new issue
Block a user