Skip to content

Commit

Permalink
[MIG] project_role: migrate to V18
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Nov 24, 2024
1 parent 0e2dea5 commit b3b7419
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion project_role/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Project Roles",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Project",
"website": "https://github.com/OCA/project",
"author": "CorporateHub, Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion project_role/models/project_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ProjectRole(models.Model):
active = fields.Boolean(
default=True,
)
parent_path = fields.Char(index=True, unaccent=False)
parent_path = fields.Char(index=True)
parent_id = fields.Many2one(
string="Parent Role",
comodel_name="project.role",
Expand Down
8 changes: 4 additions & 4 deletions project_role/views/project_assignment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<field name="name">project.assignment.tree</field>
<field name="model">project.assignment</field>
<field name="arch" type="xml">
<tree editable="top">
<list editable="top">
<field name="company_id" groups="base.group_multi_company" />
<field
name="project_id"
Expand All @@ -55,7 +55,7 @@
/>
<field name="role_id" />
<field name="user_id" domain="[('active', '=', True)]" />
</tree>
</list>
</field>
</record>
<record id="project_assignment_pivot" model="ir.ui.view">
Expand Down Expand Up @@ -175,14 +175,14 @@
<record id="project_assignment_view_all_action" model="ir.actions.act_window">
<field name="name">Project Assignments</field>
<field name="res_model">project.assignment</field>
<field name="view_mode">tree,kanban,form,pivot,graph</field>
<field name="view_mode">list,kanban,form,pivot,graph</field>
<field name="search_view_id" ref="project_assignment_search" />
<field name="context">{'search_default_groupby_project': 1}</field>
</record>
<record id="project_assignment_view_project_action" model="ir.actions.act_window">
<field name="name">Assignments</field>
<field name="res_model">project.assignment</field>
<field name="view_mode">kanban,tree,form,pivot,graph</field>
<field name="view_mode">kanban,list,form,pivot,graph</field>
<field name="search_view_id" ref="project_assignment_search" />
<field name="context">{'default_project_id': active_id}</field>
<field name="domain">[('project_id','=',active_id)]</field>
Expand Down
4 changes: 2 additions & 2 deletions project_role/views/project_project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
<notebook position="inside">
<page name="assignments" string="Assignments">
<field name="assignment_ids">
<tree>
<list>
<field name="role_id" />
<field name="user_id" />
</tree>
</list>
</field>
</page>
</notebook>
Expand Down
6 changes: 3 additions & 3 deletions project_role/views/project_role.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<field name="name">project.role.view.tree</field>
<field name="model">project.role</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="company_id" groups="base.group_multi_company" />
<field name="complete_name" />
</tree>
</list>
</field>
</record>
<record id="project_role_view_form" model="ir.ui.view">
Expand Down Expand Up @@ -57,7 +57,7 @@
<record id="company_project_roles_action" model="ir.actions.act_window">
<field name="name">Project Roles</field>
<field name="res_model">project.role</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
</record>
<menuitem
id="project_menu_config_roles"
Expand Down

0 comments on commit b3b7419

Please sign in to comment.