minor fix accounts domain
This commit is contained in:
parent
8b4648f6f3
commit
c8321cddca
|
@ -36,39 +36,6 @@ class PayrollValidationError(UserError):
|
||||||
class PeriodValidationError(UserError):
|
class PeriodValidationError(UserError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MissingConfigPosition(UserError):
|
class MissingConfigPosition(UserError):
|
||||||
pass
|
pass
|
||||||
# class DontWriteAccountError(UserError):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class MissingInvoiceTaxError(UserError):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class InvoiceDuplicatedError(UserError):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class NotificationAuthError(UserError):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class NotificationAuthWarning(UserWarning):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class AuthExpiredError(UserError):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class InvalidTypeInvoiceError(UserError):
|
|
||||||
# pass
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# class ImportMoveDataError(UserError):
|
|
||||||
# pass
|
|
||||||
|
|
||||||
|
|
||||||
# class AccountMoveCreatedError(UserWarning):
|
|
||||||
# pass
|
|
||||||
|
|
|
@ -47,21 +47,22 @@ class WageType(ModelSQL, ModelView):
|
||||||
})
|
})
|
||||||
debit_account = fields.Many2One('account.account',
|
debit_account = fields.Many2One('account.account',
|
||||||
'Debit Account', domain=[
|
'Debit Account', domain=[
|
||||||
('kind', 'in', ['expense', 'payable', 'receivable']),
|
('company', '=', Eval('context', {}).get('company', 0)),
|
||||||
('company', '=', Eval('context', {}).get('company', 0))],
|
('type', '!=', None),
|
||||||
|
],
|
||||||
states={
|
states={
|
||||||
'invisible': ~Eval('context', {}).get('company'),
|
'invisible': ~Eval('context', {}).get('company'),
|
||||||
})
|
})
|
||||||
credit_account = fields.Many2One('account.account',
|
credit_account = fields.Many2One('account.account',
|
||||||
'Credit Account', domain=[
|
'Credit Account', domain=[
|
||||||
('kind', 'in', ['expense', 'payable', 'receivable']),
|
('type', '!=', None),
|
||||||
('company', '=', Eval('context', {}).get('company', 0))],
|
('company', '=', Eval('context', {}).get('company', 0))],
|
||||||
states={
|
states={
|
||||||
'invisible': ~Eval('context', {}).get('company'),
|
'invisible': ~Eval('context', {}).get('company'),
|
||||||
})
|
})
|
||||||
deduction_account = fields.Many2One('account.account',
|
deduction_account = fields.Many2One('account.account',
|
||||||
'Deduction Account', domain=[
|
'Deduction Account', domain=[
|
||||||
('kind', '!=', 'view'),
|
('type', '!=', None),
|
||||||
('company', '=', Eval('context', {}).get('company', 0))],
|
('company', '=', Eval('context', {}).get('company', 0))],
|
||||||
states={
|
states={
|
||||||
'invisible': Eval('definition') == 'payment',
|
'invisible': Eval('definition') == 'payment',
|
||||||
|
|
Loading…
Reference in New Issue