Browse Source

Deactivate constraint on account.account (unnecessary if Webkit reports are used)

pull/48/head
Matthieu Dietrich 10 years ago
parent
commit
675a433da1
  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