Browse Source

Merge pull request #48 from mdietrichc2c/remove-account-constraint

Deactivate constraint on account.account (unnecessary if Webkit reports are used)
pull/52/head
Pedro M. Baeza 10 years ago
parent
commit
4a0ca84e20
  1. 13
      account_financial_report_webkit/account.py

13
account_financial_report_webkit/account.py

@ -45,3 +45,16 @@ class AccountAccount(orm.Model):
_defaults = {
'centralized': False,
}
# Related to WebKit reports: this constraint is not relevant anymore,
# since the initial balance of the partner reports
# (ledger, balance, open invoices) is computed on-the-fly, instead of
# using the opening journal entry data (hence the deferral method)
def _check_account_type(self, cr, uid, ids, context=None):
return True
_constraints = [
(_check_account_type,
'',
['user_type', 'type']),
]
Loading…
Cancel
Save