Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions analytic_base_department/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
{
"name": "Base Analytic Department Categorization",
"summary": "Add relationship between Analytic and Department",
"version": "18.0.1.0.0",
"version": "18.0.1.0.1",
"author": "Camptocamp, Daniel Reis, Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Generic Modules/Projects & Services",
"website": "https://github.com/OCA/account-analytic",
"depends": ["account", "hr"],
"depends": ["account", "hr_timesheet"],
"data": ["views/analytic.xml", "views/hr_department_views.xml"],
"installable": True,
}
1 change: 1 addition & 0 deletions analytic_base_department/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import analytic
from . import hr_department
from . import timesheets_analysis_report
14 changes: 14 additions & 0 deletions analytic_base_department/models/timesheets_analysis_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from odoo import fields, models


class TimesheetsAnalysisReport(models.Model):
_inherit = "timesheets.analysis.report"

account_department_id = fields.Many2one(
comodel_name="hr.department",
related="department_id",
string="Account Department",
store=True,
readonly=True,
help="Account's related department",
)
Loading