Skip to content

Commit

Permalink
[REF] Don't inherit project.project from account.analytic.account
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Oct 16, 2019
1 parent 465a149 commit 01981df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions analytic_plan/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
from . import account_analytic_plan_journal
from . import account_analytic_account
from . import product
from . import project
1 change: 0 additions & 1 deletion analytic_plan/models/product.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Copyright 2015 Matmoz d.o.o. (Matjaž Mozetič)
# Copyright 2015 Eficent (Jordi Ballester Alomar)
# Copyright 2017 Luxim d.o.o. (Matjaž Mozetič)
Expand Down
13 changes: 13 additions & 0 deletions analytic_plan/models/project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class Project(models.Model):
_inherit = "project.project"

active_analytic_planning_version = fields.Many2one(
related='analytic_account_id.active_analytic_planning_version',
readonly=False,
)

0 comments on commit 01981df

Please sign in to comment.