Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] project_task_sign_oca: Migration to 16.0 #65

Merged
merged 9 commits into from
Oct 10, 2024
Prev Previous commit
[MIG] project_task_sign_oca: Migration to 16.0
  • Loading branch information
WesleyOliveira98 committed Oct 3, 2024
commit de5a37f71d2ac436d8c7d18540b210d1a6e48450
2 changes: 1 addition & 1 deletion project_task_sign_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Project Task Sign Oca",
"summary": """
Project Task Sign Oca""",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Escodoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sign",
Expand Down
2 changes: 1 addition & 1 deletion project_task_sign_oca/demo/sign_oca_role.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<record id="sign_role_project_task_customer" model="sign.oca.role">
<field name="name">Task Customer</field>
<field name="partner_type">expression</field>
<field name="partner_selection_policy">expression</field>
<field name="expression_partner">{{object.partner_id.id}}</field>
</record>

Expand Down
5 changes: 1 addition & 4 deletions project_task_sign_oca/demo/sign_oca_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
id="sign_oca_template_project_task_demo_item"
model="sign.oca.template.item"
>
<field
name="template_id"
ref="project_task_sign_oca.sign_oca_template_project_task_demo"
/>
<field name="template_id" ref="sign_oca_template_project_task_demo" />
<field name="field_id" ref="sign_oca.sign_field_signature" />
<field
name="role_id"
Expand Down
5 changes: 1 addition & 4 deletions project_task_sign_oca/views/project_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<field name="name">project.task.form (in project_task_sign_oca)</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2" />
<field
name="groups_id"
eval="[(6, 0, [ref('sign_oca.sign_oca_group_user')])]"
/>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button
Expand All @@ -19,6 +15,7 @@
class="oe_stat_button"
icon="fa-file-text-o"
attrs="{'invisible': [('sign_request_count', '=', 0)]}"
groups="sign_oca.sign_oca_group_user"
>
<field
name="sign_request_count"
Expand Down
16 changes: 10 additions & 6 deletions project_task_sign_oca/views/sign_oca_request.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@
<field name="name">sign.oca.request.search (in project_task_sign_oca)</field>
<field name="model">sign.oca.request</field>
<field name="inherit_id" ref="sign_oca.sign_oca_request_search_view" />
<field name="groups_id" eval="[(6, 0, [ref('project.group_project_user')])]" />
<field name="arch" type="xml">
<field name="signer_ids" position="after">
<field name="project_id" />
<field name="task_id" />
<field name="project_id" groups="project.group_project_user" />
<field name="task_id" groups="project.group_project_user" />
</field>
<filter name="group_by_state" position="after">
<filter
string="Project"
name="group_by_project_id"
context="{'group_by': 'project_id'}"
groups="project.group_project_user"
/>
<filter
string="Task"
name="group_by_task_id"
context="{'group_by': 'task_id'}"
groups="project.group_project_user"
/>
</filter>
</field>
Expand All @@ -32,13 +33,13 @@
<field name="name">sign.oca.request.form (in project_task_sign_oca)</field>
<field name="model">sign.oca.request</field>
<field name="inherit_id" ref="sign_oca.sign_oca_request_form_view" />
<field name="groups_id" eval="[(6, 0, [ref('project.group_project_user')])]" />
<field name="arch" type="xml">
<field name="record_ref" position="before">
<field
name="project_id"
readonly="1"
attrs="{'invisible': [('project_id','=',False)]}"
groups="project.group_project_user"
/>
</field>
</field>
Expand All @@ -48,10 +49,13 @@
<field name="name">sign.oca.request.tree (in project_task_sign_oca)</field>
<field name="model">sign.oca.request</field>
<field name="inherit_id" ref="sign_oca.sign_oca_request_tree_view" />
<field name="groups_id" eval="[(6, 0, [ref('project.group_project_user')])]" />
<field name="arch" type="xml">
<field name="record_ref" position="before">
<field name="project_id" optional="hide" />
<field
name="project_id"
optional="hide"
groups="project.group_project_user"
/>
</field>
</field>
</record>
Expand Down
Loading