Skip to content

Commit

Permalink
[FIX] account_interests: Odoo v9 deprecate analytic account type field.
Browse files Browse the repository at this point in the history
This one was used to filter the analytic account to be set from the account
interest configurator.

Now we filter by the accounts that are active, do not show the close accounts.
  • Loading branch information
zaoral committed Sep 5, 2018
1 parent 363be1c commit 89b9787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_interests/models/res_company_interest.py
Expand Up @@ -44,7 +44,7 @@ class ResCompanyInterest(models.Model):
analytic_account_id = fields.Many2one(
'account.analytic.account',
'Analytic account',
domain=[('type', '!=', 'view')]
domain=[('account_type', '=', 'normal')]
)
rate = fields.Float(
'Interest',
Expand Down

0 comments on commit 89b9787

Please sign in to comment.