Fix
This commit is contained in:
parent
cca15eedc8
commit
823c361237
|
@ -2276,12 +2276,6 @@ class StatementPaymentForm(ModelView):
|
|||
required=True, domain=[
|
||||
('id', 'in', Eval('statements')),
|
||||
])
|
||||
# required=True, domain=['OR', [
|
||||
# ('state', '=', 'draft')
|
||||
# ], [
|
||||
# Eval('user') == 'admin',
|
||||
# ('state', '=', 'draft'),
|
||||
# ]])
|
||||
amount_to_pay = fields.Numeric('Amount to Pay', required=True,
|
||||
digits=(16, Eval('currency_digits', 2)),
|
||||
depends=['currency_digits'])
|
||||
|
@ -2306,7 +2300,8 @@ class StatementPaymentForm(ModelView):
|
|||
require_voucher = fields.Boolean('Require Voucher', depends=['statement'])
|
||||
parties = fields.Many2Many('party.party', None, None, 'Parties')
|
||||
folios = fields.Many2Many('hotel.folio', None, None, 'Folios')
|
||||
statements = fields.Many2Many('account.statement', None, None, 'Statements')
|
||||
statements = fields.Many2Many('account.statement', None, None,
|
||||
'Statements')
|
||||
|
||||
@staticmethod
|
||||
def default_require_voucher():
|
||||
|
|
Loading…
Reference in New Issue