pre-commit update

This commit is contained in:
OCA-git-bot
2020-03-14 12:28:39 +01:00
committed by Alex Cuellar
parent ac81a52c42
commit 7f47df639f
3 changed files with 159 additions and 97 deletions

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- To move quants directly from qants views -->
<act_window id="wiz_stock_quant_location_action"
<act_window
id="wiz_stock_quant_location_action"
name="Move to location..."
res_model="wiz.stock.move.location"
binding_model="stock.quant"
@@ -11,5 +11,4 @@
target="new"
groups="stock.group_stock_user"
/>
</odoo>

View File

@@ -1,32 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="ir.ui.view" id="view_picking_type_form">
<field name="name">Operation Types</field>
<field name="model">stock.picking.type</field>
<field name="inherit_id" ref="stock.view_picking_type_form"/>
<field name="inherit_id" ref="stock.view_picking_type_form" />
<field name="arch" type="xml">
<field name="show_operations" position="after">
<field name="show_move_onhand" attrs='{"invisible": [("code", "not in", ["internal"])]}'/>
<field
name="show_move_onhand"
attrs='{"invisible": [("code", "not in", ["internal"])]}'
/>
</field>
</field>
</record>
<record id="stock_picking_type_kanban" model="ir.ui.view">
<field name="model">stock.picking.type</field>
<field name="inherit_id" ref="stock.stock_picking_type_kanban"/>
<field name="inherit_id" ref="stock.stock_picking_type_kanban" />
<field name="arch" type="xml">
<field name="code" position="after">
<field name="show_move_onhand"/>
<field name="show_move_onhand" />
</field>
<xpath expr="//div[hasclass('o_kanban_primary_left')]" position="inside">
<div t-if="record.show_move_onhand.raw_value">
<button name="action_move_location" type="object" class="btn btn-info" style="margin-top: 5px;">
<button
name="action_move_location"
type="object"
class="btn btn-info"
style="margin-top: 5px;"
>
Move On Hand
</button>
</div>
</xpath>
</field>
</record>
</odoo>

View File

@@ -1,90 +1,148 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_wiz_stock_move_location_form_stock_move_location" model="ir.ui.view">
<field name="name">wiz.stock.move.location.form.stock_move_location</field>
<field name="model">wiz.stock.move.location</field>
<field name="arch" type="xml">
<form>
<sheet>
<div class="oe_button_box" name="button_box"/>
<div>
<label for="edit_locations">
<record
id="view_wiz_stock_move_location_form_stock_move_location"
model="ir.ui.view"
>
<field name="name">wiz.stock.move.location.form.stock_move_location</field>
<field name="model">wiz.stock.move.location</field>
<field name="arch" type="xml">
<form>
<sheet>
<div class="oe_button_box" name="button_box" />
<div>
<label for="edit_locations">
Edit Locations
</label>
<field name="edit_locations" widget="boolean_toggle"/>
</div>
<div groups="stock.group_stock_multi_locations">
<label for="apply_putaway_strategy">
<field name="edit_locations" widget="boolean_toggle" />
</div>
<div groups="stock.group_stock_multi_locations">
<label for="apply_putaway_strategy">
Apply putaway strategy for moving products
</label>
<field name="apply_putaway_strategy" widget="boolean_toggle"/>
</div>
<group name="picking_type">
<field name="picking_type_id"/>
</group>
<group name="main">
<field name="origin_location_disable" invisible="True"/>
<field name="origin_location_id" attrs="{'readonly': [('origin_location_disable', '=', True)]}"/>
<field name="destination_location_disable" invisible="True"/>
<field name="destination_location_id" attrs="{'readonly': [('destination_location_disable', '=', True)]}"/>
</group>
<group name="lines">
<field name="stock_move_location_line_ids" nolabel="1" widget="one2many_list" mode="tree,kanban">
<tree string="Inventory Details" editable="bottom" decoration-info="move_quantity != max_quantity" decoration-danger="(move_quantity &lt; 0) or (move_quantity > max_quantity)" create="0">
<field name="product_id" domain="[('type','=','product')]"/>
<field name="product_uom_id" string="UoM" groups="uom.group_uom"/>
<field name="origin_location_id" readonly="1" force_save="1"/>
<field name="destination_location_id" readonly="1" force_save="1"/>
<field name="lot_id" domain="[('product_id', '=', product_id)]" context="{'default_product_id': product_id}" groups="stock.group_production_lot" options="{'no_create': True}"/>
<field name="move_quantity"/>
<field name="custom" invisible="1" />
<field name="max_quantity" attrs="{'readonly': [('custom', '!=', True)]}" force_save="1"/>
</tree>
<kanban class="o_kanban_mobile">
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="o_kanban_record_body">
<field name="product_id"/>
<field name="product_uom_id"/>
<field name="lot_id" groups="stock.group_production_lot"/>
<field name="origin_location_id"/>
<field name="destination_location_id"/>
</div>
<div class="o_kanban_record_bottom">
<div class="oe_kanban_bottom_right">
<span><field name="move_quantity"/></span>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</group>
<footer>
<button name="action_move_location" string="Immediate Transfer" type="object" class="btn-primary"/>
<button name="action_move_location" string="Planned Transfer" type="object" class="btn-primary" context="{'planned': True}"/>
<button special="cancel" string="Cancel" class="btn-default"/>
</footer>
</sheet>
</form>
</field>
</record>
<record id="wiz_stock_move_location_action" model="ir.actions.act_window">
<field name="name">Move from location...</field>
<field name="res_model">wiz.stock.move.location</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem
id="menuitem_move_location"
string="Move from location..."
parent="stock.menu_stock_warehouse_mgmt"
action="wiz_stock_move_location_action"
sequence="99"/>
<field name="apply_putaway_strategy" widget="boolean_toggle" />
</div>
<group name="picking_type">
<field name="picking_type_id" />
</group>
<group name="main">
<field name="origin_location_disable" invisible="True" />
<field
name="origin_location_id"
attrs="{'readonly': [('origin_location_disable', '=', True)]}"
/>
<field name="destination_location_disable" invisible="True" />
<field
name="destination_location_id"
attrs="{'readonly': [('destination_location_disable', '=', True)]}"
/>
</group>
<group name="lines">
<field
name="stock_move_location_line_ids"
nolabel="1"
widget="one2many_list"
mode="tree,kanban"
>
<tree
string="Inventory Details"
editable="bottom"
decoration-info="move_quantity != max_quantity"
decoration-danger="(move_quantity &lt; 0) or (move_quantity > max_quantity)"
create="0"
>
<field
name="product_id"
domain="[('type','=','product')]"
/>
<field
name="product_uom_id"
string="UoM"
groups="uom.group_uom"
/>
<field
name="origin_location_id"
readonly="1"
force_save="1"
/>
<field
name="destination_location_id"
readonly="1"
force_save="1"
/>
<field
name="lot_id"
domain="[('product_id', '=', product_id)]"
context="{'default_product_id': product_id}"
groups="stock.group_production_lot"
options="{'no_create': True}"
/>
<field name="move_quantity" />
<field name="custom" invisible="1" />
<field
name="max_quantity"
attrs="{'readonly': [('custom', '!=', True)]}"
force_save="1"
/>
</tree>
<kanban class="o_kanban_mobile">
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="o_kanban_record_body">
<field name="product_id" />
<field name="product_uom_id" />
<field
name="lot_id"
groups="stock.group_production_lot"
/>
<field name="origin_location_id" />
<field name="destination_location_id" />
</div>
<div class="o_kanban_record_bottom">
<div class="oe_kanban_bottom_right">
<span>
<field name="move_quantity" />
</span>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</group>
<footer>
<button
name="action_move_location"
string="Immediate Transfer"
type="object"
class="btn-primary"
/>
<button
name="action_move_location"
string="Planned Transfer"
type="object"
class="btn-primary"
context="{'planned': True}"
/>
<button special="cancel" string="Cancel" class="btn-default" />
</footer>
</sheet>
</form>
</field>
</record>
<record id="wiz_stock_move_location_action" model="ir.actions.act_window">
<field name="name">Move from location...</field>
<field name="res_model">wiz.stock.move.location</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem
id="menuitem_move_location"
string="Move from location..."
parent="stock.menu_stock_warehouse_mgmt"
action="wiz_stock_move_location_action"
sequence="99"
/>
</odoo>