-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] add pro velo project link on resource form
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResourceResource(models.Model): | ||
_inherit = "resource.resource" | ||
|
||
pv_project_id = fields.Many2one( | ||
"pv.project", | ||
string="Pro Velo Project", | ||
) |
20 changes: 20 additions & 0 deletions
20
provelo_analytic_account/views/resource_resource_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
<odoo> | ||
|
||
<record id="resource_planning_resource_form" model="ir.ui.view"> | ||
<field name="name">resource.planning.resource.form</field> | ||
<field name="model">resource.resource</field> | ||
<field name="inherit_id" ref="resource_planning.resource_planning_resource_form" /> | ||
<field name="arch" type="xml"> | ||
<field name="location" position="after"> | ||
<field name="pv_project_id" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |