-
-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] add order management on project.type
- Loading branch information
Showing
7 changed files
with
147 additions
and
107 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
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 |
---|---|---|
@@ -1,29 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="project_search" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.view_project_project_filter" /> | ||
<field name="arch" type="xml"> | ||
<field name="name" position="after"> | ||
<field name="type_id" /> | ||
</field> | ||
<group expand="0"> | ||
<filter | ||
|
||
<record id="project_search" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.view_project_project_filter" /> | ||
<field name="arch" type="xml"> | ||
<field name="name" position="after"> | ||
<field name="type_id" /> | ||
</field> | ||
<group expand="0"> | ||
<filter | ||
string="Type" | ||
name="type_id" | ||
help="Type" | ||
context="{'group_by':'type_id'}" | ||
/> | ||
</group> | ||
</field> | ||
</record> | ||
<record id="project_form" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.edit_project" /> | ||
<field name="arch" type="xml"> | ||
<field name="user_id" position="after"> | ||
<field name="type_id" /> | ||
</field> | ||
</field> | ||
</record> | ||
</group> | ||
</field> | ||
</record> | ||
|
||
<record id="project_form" model="ir.ui.view"> | ||
<field name="model">project.project</field> | ||
<field name="inherit_id" ref="project.edit_project" /> | ||
<field name="arch" type="xml"> | ||
<field name="user_id" position="after"> | ||
<field name="type_id" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
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 |
---|---|---|
@@ -1,29 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="project_task_form" model="ir.ui.view"> | ||
<field name="model">project.task</field> | ||
<field name="inherit_id" ref="project.view_task_form2" /> | ||
<field name="arch" type="xml"> | ||
<field name="tag_ids" position="after"> | ||
<field name="type_id" context="{'default_task_ok': True}" /> | ||
</field> | ||
</field> | ||
</record> | ||
<record id="project_task_search" model="ir.ui.view"> | ||
<field name="model">project.task</field> | ||
<field name="inherit_id" ref="project.view_task_search_form" /> | ||
<field name="arch" type="xml"> | ||
<field name="name" position="after"> | ||
<field name="type_id" /> | ||
</field> | ||
<group expand="0"> | ||
<filter | ||
|
||
<record id="project_task_form" model="ir.ui.view"> | ||
<field name="model">project.task</field> | ||
<field name="inherit_id" ref="project.view_task_form2" /> | ||
<field name="arch" type="xml"> | ||
<field name="tag_ids" position="after"> | ||
<field name="type_id" context="{'default_task_ok': True}" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="project_task_search" model="ir.ui.view"> | ||
<field name="model">project.task</field> | ||
<field name="inherit_id" ref="project.view_task_search_form" /> | ||
<field name="arch" type="xml"> | ||
<field name="name" position="after"> | ||
<field name="type_id" /> | ||
</field> | ||
<group expand="0"> | ||
<filter | ||
string="Type" | ||
name="type_id" | ||
help="Type" | ||
context="{'group_by':'type_id'}" | ||
/> | ||
</group> | ||
</field> | ||
</record> | ||
</group> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
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 |
---|---|---|
@@ -1,79 +1,96 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="project_type_form" model="ir.ui.view"> | ||
<field name="model">project.type</field> | ||
<field name="arch" type="xml"> | ||
<form string="Project Type"> | ||
<sheet> | ||
<div class="oe_title"> | ||
<label for="name" class="oe_edit_only" /> | ||
<h1> | ||
<field name="name" /> | ||
</h1> | ||
<div> | ||
<field name="project_ok" /> | ||
<label for="project_ok" /> | ||
</div> | ||
<div> | ||
<field name="task_ok" /> | ||
<label for="task_ok" /> | ||
</div> | ||
</div> | ||
<group> | ||
<group> | ||
<field name="parent_id" /> | ||
<field name="code" /> | ||
</group> | ||
</group> | ||
<notebook> | ||
<page string="Description" name="page_description"> | ||
<field | ||
name="description" | ||
placeholder="Add a description..." | ||
/> | ||
</page> | ||
<page string="Subtypes" name="page_subtypes"> | ||
<field name="child_ids"> | ||
<tree> | ||
<field name="name" /> | ||
</tree> | ||
</field> | ||
</page> | ||
</notebook> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
<record id="project_type_search" model="ir.ui.view"> | ||
<field name="model">project.type</field> | ||
<field name="inherit_id" eval="False" /> | ||
<field name="arch" type="xml"> | ||
<search string="Type"> | ||
<field name="complete_name" /> | ||
<field name="parent_id" /> | ||
<filter | ||
|
||
<record id="project_type_form" model="ir.ui.view"> | ||
<field name="model">project.type</field> | ||
<field name="arch" type="xml"> | ||
<form string="Project Type"> | ||
<sheet> | ||
<div class="oe_title"> | ||
<label for="name" class="oe_edit_only" /> | ||
<h1> | ||
<field name="name" /> | ||
</h1> | ||
<div> | ||
<field name="project_ok" /> | ||
<label for="project_ok" /> | ||
</div> | ||
<div> | ||
<field name="task_ok" /> | ||
<label for="task_ok" /> | ||
</div> | ||
</div> | ||
<group> | ||
<group> | ||
<field name="parent_id" /> | ||
<field name="code" /> | ||
</group> | ||
</group> | ||
<notebook> | ||
<page string="Description" name="page_description"> | ||
<field name="description" placeholder="Add a description..." /> | ||
</page> | ||
<page string="Subtypes" name="page_subtypes"> | ||
<field name="child_ids"> | ||
<tree> | ||
<field name="name" /> | ||
</tree> | ||
</field> | ||
</page> | ||
</notebook> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="project_type_tree" model="ir.ui.view"> | ||
<field name="model">project.type</field> | ||
<field name="arch" type="xml"> | ||
<tree> | ||
<field name="sequence" widget="handle" /> | ||
<field name="code" /> | ||
<field name="name" /> | ||
<field name="project_ok" /> | ||
<field name="task_ok" /> | ||
<field name="parent_id" /> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="project_type_search" model="ir.ui.view"> | ||
<field name="model">project.type</field> | ||
<field name="inherit_id" eval="False" /> | ||
<field name="arch" type="xml"> | ||
<search string="Type"> | ||
<field name="complete_name" /> | ||
<field name="parent_id" /> | ||
<filter | ||
name="project_ok" | ||
string="Can be applied for projects" | ||
string="Applicable on projects" | ||
domain="[('project_ok','=',True)]" | ||
/> | ||
<filter | ||
<filter | ||
name="task_ok" | ||
string="Can be applied for tasks" | ||
string="Applicable on tasks" | ||
domain="[('task_ok','=',True)]" | ||
/> | ||
</search> | ||
</field> | ||
</record> | ||
<record id="action_project_type" model="ir.actions.act_window"> | ||
<field name="name">Project Types</field> | ||
<field name="res_model">project.type</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
<menuitem | ||
</search> | ||
</field> | ||
</record> | ||
|
||
<record id="action_project_type" model="ir.actions.act_window"> | ||
<field name="name">Project Types</field> | ||
<field name="res_model">project.type</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<menuitem | ||
name="Project Types" | ||
id="project_category" | ||
parent="project.menu_project_config" | ||
groups="project.group_project_manager" | ||
action="action_project_type" | ||
sequence="20" | ||
/> | ||
|
||
</odoo> |