diff options
| author | jem-odoo <jem@openerp.com> | 2017-11-20 11:33:52 +0100 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2017-12-11 11:34:03 +0100 |
| commit | 537435299be1b39d9f187f42035ac7d31a07bdce (patch) | |
| tree | 6c4124a3d7ff0bb3454b5ded36adf5819ce05c8d /addons/account/models/account_analytic_line.py | |
| parent | 00cdc5095ac73b58df1f19c092f58987cc6026c5 (diff) | |
[IMP] analytic,hr_timesheet: force partner from task or project
Since partner is not required on analytic account, nor
on AAL, we may have lines related to different partner (a 'support'
project for instance, with task for different partner, the AAL will
thus also have different partner). This use case is not possible with
the field override in account.
This commit will allow to do cost analysis by partner in the same
analytic account.
Diffstat (limited to 'addons/account/models/account_analytic_line.py')
| -rw-r--r-- | addons/account/models/account_analytic_line.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/account/models/account_analytic_line.py b/addons/account/models/account_analytic_line.py index 4b10076cd6d..38d9b5e57bd 100644 --- a/addons/account/models/account_analytic_line.py +++ b/addons/account/models/account_analytic_line.py @@ -16,7 +16,6 @@ class AccountAnalyticLine(models.Model): move_id = fields.Many2one('account.move.line', string='Move Line', ondelete='cascade', index=True) code = fields.Char(size=8) ref = fields.Char(string='Ref.') - partner_id = fields.Many2one('res.partner', related='account_id.partner_id', string='Partner', store=True, readonly=True) @api.v8 @api.onchange('product_id', 'product_uom_id', 'unit_amount', 'currency_id') |
