mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[14.0][MIG]agreement_mrp: Travis
This commit is contained in:
committed by
Murtaza Mithaiwala
parent
749f80c5b2
commit
fda02894fa
@@ -1,8 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="action_mrp_production_agreement_specific"
|
||||
model="ir.actions.act_window">
|
||||
<record id="action_mrp_production_agreement_specific" model="ir.actions.act_window">
|
||||
<field name="name">Manufacture Orders</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">mrp.production</field>
|
||||
@@ -19,17 +18,18 @@
|
||||
<record id="partner_agreement_form_view" model="ir.ui.view">
|
||||
<field name="name">agreement.form.mrp</field>
|
||||
<field name="model">agreement</field>
|
||||
<field name="inherit_id"
|
||||
ref="agreement_legal.partner_agreement_form_view"/>
|
||||
<field name="inherit_id" ref="agreement_legal.partner_agreement_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button name="%(action_mrp_production_agreement_specific)d"
|
||||
type="action"
|
||||
class="oe_stat_button" icon="fa-wrench">
|
||||
<button
|
||||
name="%(action_mrp_production_agreement_specific)d"
|
||||
type="action"
|
||||
class="oe_stat_button"
|
||||
icon="fa-wrench"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value">
|
||||
<field name="mo_count" widget="statinfo"
|
||||
nolabel="1"/>
|
||||
<field name="mo_count" widget="statinfo" nolabel="1" />
|
||||
</span>
|
||||
<span class="o_stat_text">MOs</span>
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="mrp_production_form_view_agreement" model="ir.ui.view">
|
||||
<field name="name">mrp.production.form.agreement</field>
|
||||
<field name="model">mrp.production</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
||||
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='bom_id']" position="after">
|
||||
<field name="agreement_id"/>
|
||||
<field name="serviceprofile_id"
|
||||
domain="[('agreement_id', '=', agreement_id)]"/>
|
||||
<field name="agreement_id" />
|
||||
<field
|
||||
name="serviceprofile_id"
|
||||
domain="[('agreement_id', '=', agreement_id)]"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -18,12 +20,15 @@
|
||||
<record id="view_mrp_production_filter_agreement" model="ir.ui.view">
|
||||
<field name="name">mrp.production.select.agreement</field>
|
||||
<field name="model">mrp.production</field>
|
||||
<field name="inherit_id" ref="mrp.view_mrp_production_filter"/>
|
||||
<field name="inherit_id" ref="mrp.view_mrp_production_filter" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group" position="inside">
|
||||
<filter string="Service Profile" name="serviceprofile_id"
|
||||
domain="[]"
|
||||
context="{'group_by':'serviceprofile_id'}"/>
|
||||
<filter
|
||||
string="Service Profile"
|
||||
name="serviceprofile_id"
|
||||
domain="[]"
|
||||
context="{'group_by':'serviceprofile_id'}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user