mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-23 16:12:06 +02:00
19.0 vanilla
This commit is contained in:
parent
accf5918df
commit
6e65e8c877
688 changed files with 225434 additions and 199401 deletions
|
|
@ -5,21 +5,20 @@
|
|||
<record id="view_mrp_production_split_multi_form" model="ir.ui.view">
|
||||
<field name="name">mrp.production.split.multi.form</field>
|
||||
<field name="model">mrp.production.split.multi</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Split Productions">
|
||||
<field name="production_ids">
|
||||
<tree create="0" editable="top">
|
||||
<list create="0" editable="top">
|
||||
<field name="production_id"/>
|
||||
<field name="product_id"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="production_capacity"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
<button name="action_prepare_split" type="object" icon="fa-scissors" width="0.1" title="Split Production"/>
|
||||
</tree>
|
||||
<field name="product_uom_id" groups="uom.group_uom" widget="many2one_uom"/>
|
||||
<button name="action_prepare_split" type="object" icon="fa-scissors" title="Split Production"/>
|
||||
</list>
|
||||
</field>
|
||||
<footer>
|
||||
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
|
||||
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
|
|
@ -39,33 +38,34 @@
|
|||
<label for="product_qty"/>
|
||||
<div class="o_row">
|
||||
<span><field name="product_qty"/></span>
|
||||
<span><field name="product_uom_id" groups="uom.group_uom"/></span>
|
||||
<span><field name="product_uom_id" groups="uom.group_uom" widget="many2one_uom"/></span>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="counter"/>
|
||||
</group>
|
||||
<group>
|
||||
<label for="production_capacity"/>
|
||||
<div class="o_row">
|
||||
<span><field name="production_capacity"/></span>
|
||||
<span><field name="product_uom_id" groups="uom.group_uom"/></span>
|
||||
<label for="max_batch_size"/>
|
||||
<div class="d-flex">
|
||||
<field name="max_batch_size" class="w-50"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
</div>
|
||||
<field name="num_splits"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="production_detailed_vals_ids" attrs="{'invisible': [('counter', '=', 0)]}">
|
||||
<tree editable="top">
|
||||
<field name="production_detailed_vals_ids" invisible="max_batch_size <= 0">
|
||||
<list editable="top">
|
||||
<field name="date"/>
|
||||
<field name="user_id"/>
|
||||
<field name="quantity"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
<field name="production_split_multi_id" invisible="1"/>
|
||||
<field name="valid_details" invisible="1"/>
|
||||
<div class="alert alert-danger" role="alert" invisible="valid_details and max_batch_size > 0">
|
||||
The total should be equal to the quantity to produce.
|
||||
</div>
|
||||
<footer>
|
||||
<button string="Split" class="btn-primary" type="object" name="action_split" data-hotkey="q" attrs="{'invisible': [('valid_details', '=', False)]}"/>
|
||||
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" attrs="{'invisible': [('production_split_multi_id', '!=', False)]}"/>
|
||||
<button string="Discard" class="btn-secondary" type="object" name="action_return_to_list" data-hotkey="z" attrs="{'invisible': [('production_split_multi_id', '=', False)]}"/>
|
||||
<button string="Split" class="btn-primary" type="object" name="action_split" data-hotkey="q" invisible="not valid_details"/>
|
||||
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x" invisible="production_split_multi_id"/>
|
||||
<button string="Discard" class="btn-secondary" type="object" name="action_return_to_list" data-hotkey="x" invisible="not production_split_multi_id"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
|
|
@ -73,7 +73,6 @@
|
|||
|
||||
<record id="action_mrp_production_split_multi" model="ir.actions.act_window">
|
||||
<field name="name">Split productions</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">mrp.production.split.multi</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
|
|
@ -81,11 +80,10 @@
|
|||
|
||||
<record id="action_mrp_production_split" model="ir.actions.act_window">
|
||||
<field name="name">Split production</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">mrp.production.split</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue