[MIG] scrap_reason_code from v11 to v13

This commit is contained in:
Khalid
2020-01-28 15:35:40 +05:30
committed by Chandresh Thakkar
parent c233777853
commit 0cc4e786c5
14 changed files with 124 additions and 127 deletions

View File

@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 Open Source Integrators
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
@@ -38,7 +37,6 @@
<record id="open_view_reason_code_form" model="ir.actions.act_window">
<field name="name">Scrap Reason Codes</field>
<field name="res_model">reason.code</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

View File

@@ -1,24 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 Open Source Integrators
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<!-- Stock move Form view -->
<record id="stock_move_reason_code_form" model="ir.ui.view">
<field name="name">stock.move.reason.code.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//group[1]" position='after'>
<field name="scrapped" invisible="1"/>
<group string="Reason Code" attrs="{'invisible': [('scrapped', '!=', True)]}">
<field name="reason_code_id"/>
</group>
</xpath>
</field>
</record>
<record id="stock_reason_code_form" model="ir.ui.view">
<field name="name">stock.reason.code.form</field>
<field name="model">stock.move</field>

View File

@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 Open Source Integrators
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->