diff options
| author | Joren Van Onder <jov@odoo.com> | 2018-01-31 15:22:39 +0100 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-01-31 15:53:04 +0100 |
| commit | 079a13a349c942ab69ca704263bc5cb52c391d92 (patch) | |
| tree | e525ff16936f0d283430b9f37c88cc9f56239156 /addons/account/models/account_analytic_line.py | |
| parent | cd30db60e627ea3664653635c44ca14626c3f464 (diff) | |
[IMP] analytic: in-depth refactoring
* analytic accounts can be shared among companies
* amount on analytic lines always refer to amount in company currency of which it belongs to
* add analytic groups (hierarchical way to classify analytic accounts)
* analytic tags:
- only present on analytic lines, not anymore on analytic accounts
- can be used to distribue/split an analytic lines among several analytic accounts
- enabled by a dedicated res.group
- added on several objects (vouchers, expenses, analytic defaults...) as well as in bank statement reconciliation widget (manual counterpart and account.reconcile.model)
* bunch of fixes made related to analytic
Was PR #22124. Was task 32386. Original work by tbe.
Diffstat (limited to 'addons/account/models/account_analytic_line.py')
| -rw-r--r-- | addons/account/models/account_analytic_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_analytic_line.py b/addons/account/models/account_analytic_line.py index 38d9b5e57bd..feca837b5b7 100644 --- a/addons/account/models/account_analytic_line.py +++ b/addons/account/models/account_analytic_line.py @@ -13,7 +13,7 @@ class AccountAnalyticLine(models.Model): product_id = fields.Many2one('product.product', string='Product') general_account_id = fields.Many2one('account.account', string='Financial Account', ondelete='restrict', readonly=True, related='move_id.account_id', store=True, domain=[('deprecated', '=', False)]) - move_id = fields.Many2one('account.move.line', string='Move Line', ondelete='cascade', index=True) + move_id = fields.Many2one('account.move.line', string='Journal Item', ondelete='cascade', index=True) code = fields.Char(size=8) ref = fields.Char(string='Ref.') |
