Skip to content

Commit

Permalink
[18.0][MIG] operating_unit: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BT-dlagin committed Dec 6, 2024
1 parent edf8975 commit 9618918
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Operating Unit",
"summary": "An operating unit (OU) is an organizational entity part of a "
"company",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"author": "ForgeFlow, "
"Serpent Consulting Services Pvt. Ltd., "
"Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion operating_unit/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_account_operating_unit_erp_manager,operating.unit erp.manager,model_operating_unit,group_manager_operating_unit,1,1,1,1
access_account_operating_unit_user,operating_unit user,model_operating_unit,,1,0,0,0
access_account_operating_unit_user,operating_unit user,model_operating_unit,base.group_user,1,0,0,0
3 changes: 1 addition & 2 deletions operating_unit/tests/test_operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from odoo.exceptions import AccessError
from odoo.tests import tagged
from odoo.tests.common import Form
from odoo.tests import Form, tagged

from .common import OperatingUnitCommon

Expand Down
6 changes: 3 additions & 3 deletions operating_unit/view/operating_unit_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<field name="name">operating.unit.tree</field>
<field name="model">operating.unit</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="code" />
<field name="name" />
<field name="company_id" groups="base.group_multi_company" />
</tree>
</list>
</field>
</record>
<record id="view_operating_unit_search" model="ir.ui.view">
Expand All @@ -39,7 +39,7 @@
<record id="action_operating_unit_tree" model="ir.actions.act_window">
<field name="name">Operating Units</field>
<field name="res_model">operating.unit</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Click to start a new Operating Unit.</p>
</field>
Expand Down

0 comments on commit 9618918

Please sign in to comment.