Skip to content

Commit da1f080

Browse files
traitrantrobzBhaveshHeliconia
authored andcommitted
[MIG] project_operating_unit: Migration to 17.0
1 parent d10d9d6 commit da1f080

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed

project_operating_unit/README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Project with Operating Units
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:9b62c87767d573deaf62aaec01eaa849edc553018ba92d581d94655f4899f53a
10+
!! source digest: sha256:ffa9af0eebdc9ed3d2a8b8311a9c0971c702fd63d23beec4e614e3757d2ae444
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -69,6 +69,7 @@ Contributors
6969
- Nikul Chaudhary <[email protected]>
7070
- Maxime Chambreuil <[email protected]>
7171
- Murtaza Mithaiwala <[email protected]>
72+
- Tran Thanh Trai <[email protected]>
7273

7374
Other credits
7475
-------------

project_operating_unit/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Project with Operating Units",
66
"summary": """
77
This module adds operating unit information to projects and tasks.""",
8-
"version": "16.0.1.0.0",
8+
"version": "17.0.1.0.0",
99
"author": "Open Source Integrators, "
1010
"Serpent Consulting Services Pvt. Ltd., "
1111
"Odoo Community Association (OCA)",

project_operating_unit/i18n/project_operating_unit.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Project-Id-Version: Odoo Server 17.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"

project_operating_unit/models/project_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ProjectProject(models.Model):
1010
operating_unit_id = fields.Many2one(
1111
comodel_name="operating.unit",
1212
string="Operating Unit",
13-
default=lambda self: self.env["res.users"].operating_unit_default_get(
13+
default=lambda self: self.env["res.users"]._get_default_operating_unit(
1414
self._uid
1515
),
1616
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- Nikul Chaudhary \<<[email protected]>\>
22
- Maxime Chambreuil \<<[email protected]>\>
33
- Murtaza Mithaiwala \<<[email protected]>\>
4+
- Tran Thanh Trai \<<[email protected]>\>

project_operating_unit/security/project_security.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<field name="model_id" ref="project.model_project_project" />
77
<field
88
name="domain_force"
9-
>['|', ('operating_unit_id','=',False), ('operating_unit_id','in',user.operating_unit_ids.ids)]
9+
>['|', ('operating_unit_id','=',False), ('operating_unit_id','in',operating_unit_ids)]
1010
</field>
1111
<field name="name">Project Operating Unit</field>
1212
<field name="global" eval="True" />
@@ -19,7 +19,7 @@
1919
<field name="model_id" ref="project.model_project_task" />
2020
<field
2121
name="domain_force"
22-
>['|', ('operating_unit_id','=',False), ('operating_unit_id','in',user.operating_unit_ids.ids)]
22+
>['|', ('operating_unit_id','=',False), ('operating_unit_id','in',operating_unit_ids)]
2323
</field>
2424
<field name="name">Project Task Operating Unit</field>
2525
<field name="global" eval="True" />

project_operating_unit/static/description/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Project with Operating Units</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:9b62c87767d573deaf62aaec01eaa849edc553018ba92d581d94655f4899f53a
370+
!! source digest: sha256:ffa9af0eebdc9ed3d2a8b8311a9c0971c702fd63d23beec4e614e3757d2ae444
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/operating-unit/tree/17.0/project_operating_unit"><img alt="OCA/operating-unit" src="https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/operating-unit-17-0/operating-unit-17-0-project_operating_unit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/operating-unit&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module adds operating unit information to projects and tasks.</p>
@@ -418,6 +418,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
418418
<li>Nikul Chaudhary &lt;<a class="reference external" href="mailto:nikul.chaudhary.serpentcs&#64;gmail.com">nikul.chaudhary.serpentcs&#64;gmail.com</a>&gt;</li>
419419
<li>Maxime Chambreuil &lt;<a class="reference external" href="mailto:mchambreuil&#64;opensourceintegrators.com">mchambreuil&#64;opensourceintegrators.com</a>&gt;</li>
420420
<li>Murtaza Mithaiwala &lt;<a class="reference external" href="mailto:mmithaiwala&#64;opensourceintegrators.com">mmithaiwala&#64;opensourceintegrators.com</a>&gt;</li>
421+
<li>Tran Thanh Trai &lt;<a class="reference external" href="mailto:traitt&#64;trobz.com">traitt&#64;trobz.com</a>&gt;</li>
421422
</ul>
422423
</div>
423424
<div class="section" id="other-credits">

project_operating_unit/views/project_project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<field name="model">project.project</field>
1818
<field name="inherit_id" ref="project.view_project_project_filter" />
1919
<field name="arch" type="xml">
20-
<filter name="Partner" position="after">
20+
<filter name="Manager" position="after">
2121
<filter
2222
string="Operating Unit"
2323
name="operating_unit_grouped"

0 commit comments

Comments
 (0)