Skip to content

Commit

Permalink
fix search views in issues and problems
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow authored and LoisRForgeFlow committed Oct 23, 2018
1 parent ce0dab2 commit 9ee105b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions quality_control_issue/views/qc_issue_view.xml
Expand Up @@ -140,13 +140,17 @@
</record>

<record model="ir.ui.view" id="qc_issue_search">
<field name="name">qc.issue.serch</field>
<field name="name">qc.issue.search</field>
<field name="model">qc.issue</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="inspector_id"/>
<field name="product_id"/>
<field name="responsible_id"/>
<field name="state"/>
<field name="qc_team_id"/>
<field name="stage_id"/>
<field name="product_id"/>
<field name="location_id"/>
<filter string="My inspections"
domain="[('inspector_id', '=', uid)]"/>
Expand Down
14 changes: 7 additions & 7 deletions quality_control_issue/views/qc_problem_view.xml
Expand Up @@ -96,20 +96,20 @@
</record>

<record model="ir.ui.view" id="qc_problem_search">
<field name="name">qc.problem.serch</field>
<field name="name">qc.problem.search</field>
<field name="model">qc.problem</field>
<field name="arch" type="xml">
<search>
<field name="name"/>
<field name="notes"/>
<field name="qc_team_id"/>
<field name="stage_id"/>
<field name="problem_group_id"/>
<group expand="0" string="Group By...">
<filter string="Stage" domain="[]"
context="{'group_by':'stage_id'}"/>
<filter string="Problem Group" domain="[]"
context="{'group_by': 'problem_group_id'}"/>
<filter string="Company" context="{'group_by':'company_id'}"
groups="base.group_multi_company"/>
<filter string="Stage" domain="[]" context="{'group_by':'stage_id'}"/>
<filter string="Problem Group" domain="[]" context="{'group_by': 'problem_group_id'}"/>
<filter string="QC Team" domain="[]" context="{'group_by': 'qc_team_id'}"/>
<filter string="Company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
</group>
</search>
</field>
Expand Down

0 comments on commit 9ee105b

Please sign in to comment.