mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] quality_control_issue: add scrap feature.
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
da469d7fbf
commit
ca2ca944a3
@@ -29,7 +29,10 @@
|
||||
string="Confirm" class="oe_highlight" />
|
||||
<button name="action_done"
|
||||
type="object" states="progress"
|
||||
string="Set to Done" class="oe_highlight" />
|
||||
string="Set to Done" class="oe_highlight"/>
|
||||
<button name="scrap_products"
|
||||
string="Scrap Products" type="object"
|
||||
states="progress"/>
|
||||
<button name="action_cancel"
|
||||
type="object" states="new,progress"
|
||||
string="Cancel"/>
|
||||
@@ -39,7 +42,14 @@
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<!--To be inhereted by other modules.-->
|
||||
<button type="object" name="action_view_stock_scrap"
|
||||
class="oe_stat_button"
|
||||
icon="fa-recycle"
|
||||
context="{'default_qc_issue_id': active_id}">
|
||||
<field name="stock_scrap_qty"
|
||||
widget="statinfo"
|
||||
string="Scrapped products"/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label string="Quality Control Issue"/>
|
||||
|
||||
29
quality_control_issue/views/stock_scrap_view.xml
Normal file
29
quality_control_issue/views/stock_scrap_view.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="stock_scrap_form_view" model="ir.ui.view">
|
||||
<field name="name">stock.scrap.form - quality_control_issue</field>
|
||||
<field name="model">stock.scrap</field>
|
||||
<field name="inherit_id" ref="stock_scrap.stock_scrap_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="owner_id" position="after">
|
||||
<field name="qc_issue_id" attrs="{'invisible': [('qc_issue_id', '=', False)]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_scrap_form_view2" model="ir.ui.view">
|
||||
<field name="name">stock.scrap.form2 - quality_control_issue</field>
|
||||
<field name="model">stock.scrap</field>
|
||||
<field name="inherit_id" ref="stock_scrap.stock_scrap_form_view2"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="owner_id" position="after">
|
||||
<field name="qc_issue_id" attrs="{'invisible': [('qc_issue_id', '=', False)]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user