mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Run pre-commit with xml prettier
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="product_funky_socks" model="product.product">
|
||||
<field name="default_code">RS700</field>
|
||||
<field name="name">Funky Socks</field>
|
||||
<field name="type">product</field>
|
||||
<field name="categ_id" ref="product.product_category_6"/>
|
||||
<field name="categ_id" ref="product.product_category_6" />
|
||||
<field name="lst_price">30.0</field>
|
||||
<field name="standard_price">20.0</field>
|
||||
<field name="weight">1.0</field>
|
||||
<field name="tracking">none</field>
|
||||
<field name="uom_id" ref="uom.product_uom_unit"/>
|
||||
<field name="uom_po_id" ref="uom.product_uom_unit"/>
|
||||
<field name="uom_id" ref="uom.product_uom_unit" />
|
||||
<field name="uom_po_id" ref="uom.product_uom_unit" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,37 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="stock_inventory_1_demo" model="stock.inventory">
|
||||
<field name="name">Funky Socks Demo Inventory</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_inventory_1_line_1_demo" model="stock.inventory.line">
|
||||
<field name="product_id" ref="product_funky_socks"/>
|
||||
<field name="product_uom_id" ref="uom.product_uom_unit"/>
|
||||
<field name="inventory_id" ref="stock_inventory_1_demo"/>
|
||||
<field name="product_id" ref="product_funky_socks" />
|
||||
<field name="product_uom_id" ref="uom.product_uom_unit" />
|
||||
<field name="inventory_id" ref="stock_inventory_1_demo" />
|
||||
<field name="product_qty">200.0</field>
|
||||
<field name="location_id" ref="stock_location_zone_a_bin_1_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_a_bin_1_demo" />
|
||||
</record>
|
||||
<record id="stock_inventory_1_line_2_demo" model="stock.inventory.line">
|
||||
<field name="product_id" ref="product_funky_socks"/>
|
||||
<field name="product_uom_id" ref="uom.product_uom_unit"/>
|
||||
<field name="inventory_id" ref="stock_inventory_1_demo"/>
|
||||
<field name="product_id" ref="product_funky_socks" />
|
||||
<field name="product_uom_id" ref="uom.product_uom_unit" />
|
||||
<field name="inventory_id" ref="stock_inventory_1_demo" />
|
||||
<field name="product_qty">100.0</field>
|
||||
<field name="location_id" ref="stock_location_zone_b_bin_1_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_b_bin_1_demo" />
|
||||
</record>
|
||||
<record id="stock_inventory_1_line_3_demo" model="stock.inventory.line">
|
||||
<field name="product_id" ref="product_funky_socks"/>
|
||||
<field name="product_uom_id" ref="uom.product_uom_unit"/>
|
||||
<field name="inventory_id" ref="stock_inventory_1_demo"/>
|
||||
<field name="product_id" ref="product_funky_socks" />
|
||||
<field name="product_uom_id" ref="uom.product_uom_unit" />
|
||||
<field name="inventory_id" ref="stock_inventory_1_demo" />
|
||||
<field name="product_qty">100.0</field>
|
||||
<field name="location_id" ref="stock_location_zone_c_bin_1_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_c_bin_1_demo" />
|
||||
</record>
|
||||
|
||||
<function model="stock.inventory" name="_action_start">
|
||||
<function eval="[[('state','=','draft'),('id', '=', ref('stock_reserve_rule.stock_inventory_1_demo'))]]" model="stock.inventory" name="search"/>
|
||||
<function
|
||||
eval="[[('state','=','draft'),('id', '=', ref('stock_reserve_rule.stock_inventory_1_demo'))]]"
|
||||
model="stock.inventory"
|
||||
name="search"
|
||||
/>
|
||||
</function>
|
||||
<function model="stock.inventory" name="action_validate">
|
||||
<function eval="[[('state','=','confirm'),('id', '=', ref('stock_reserve_rule.stock_inventory_1_demo'))]]" model="stock.inventory" name="search"/>
|
||||
<function
|
||||
eval="[[('state','=','confirm'),('id', '=', ref('stock_reserve_rule.stock_inventory_1_demo'))]]"
|
||||
model="stock.inventory"
|
||||
name="search"
|
||||
/>
|
||||
</function>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="stock_location_zone_a_demo" model="stock.location">
|
||||
<field name="name">Zone A</field>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock" />
|
||||
</record>
|
||||
<record id="stock_location_zone_b_demo" model="stock.location">
|
||||
<field name="name">Zone B</field>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock" />
|
||||
</record>
|
||||
<record id="stock_location_zone_c_demo" model="stock.location">
|
||||
<field name="name">Zone C</field>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock" />
|
||||
</record>
|
||||
<record id="stock_location_zone_a_bin_1_demo" model="stock.location">
|
||||
<field name="name">Bin A1</field>
|
||||
<field name="location_id" ref="stock_location_zone_a_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_a_demo" />
|
||||
</record>
|
||||
<record id="stock_location_zone_b_bin_1_demo" model="stock.location">
|
||||
<field name="name">Bin B1</field>
|
||||
<field name="location_id" ref="stock_location_zone_b_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_b_demo" />
|
||||
</record>
|
||||
<record id="stock_location_zone_c_bin_1_demo" model="stock.location">
|
||||
<field name="name">Bin C1</field>
|
||||
<field name="location_id" ref="stock_location_zone_c_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_c_demo" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="stock_picking_out_1_demo" model="stock.picking">
|
||||
<field name="picking_type_id" ref="stock.picking_type_out"/>
|
||||
<field name="picking_type_id" ref="stock.picking_type_out" />
|
||||
<field name="origin">Outgoing shipment (reservation rules demo 1)</field>
|
||||
<field name="partner_id" ref="base.res_partner_1"/>
|
||||
<field name="date" eval="DateTime.today()"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="location_dest_id" ref="stock.stock_location_customers"/>
|
||||
<field name="move_lines" model="stock.move" eval="[(0, 0, {
|
||||
<field name="partner_id" ref="base.res_partner_1" />
|
||||
<field name="date" eval="DateTime.today()" />
|
||||
<field name="location_id" ref="stock.stock_location_stock" />
|
||||
<field name="location_dest_id" ref="stock.stock_location_customers" />
|
||||
<field
|
||||
name="move_lines"
|
||||
model="stock.move"
|
||||
eval="[(0, 0, {
|
||||
'name': obj().env.ref('stock_reserve_rule.product_funky_socks').name,
|
||||
'product_id': ref('stock_reserve_rule.product_funky_socks'),
|
||||
'product_uom': ref('uom.product_uom_unit'),
|
||||
@@ -16,17 +18,20 @@
|
||||
'picking_type_id': ref('stock.picking_type_out'),
|
||||
'location_id': ref('stock.stock_location_stock'),
|
||||
'location_dest_id': ref('stock.stock_location_customers'),
|
||||
})]"/>
|
||||
})]"
|
||||
/>
|
||||
</record>
|
||||
|
||||
<record id="stock_picking_out_2_demo" model="stock.picking">
|
||||
<field name="picking_type_id" ref="stock.picking_type_out"/>
|
||||
<field name="picking_type_id" ref="stock.picking_type_out" />
|
||||
<field name="origin">Outgoing shipment (reservation rules demo 2)</field>
|
||||
<field name="partner_id" ref="base.res_partner_1"/>
|
||||
<field name="date" eval="DateTime.today()"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="location_dest_id" ref="stock.stock_location_customers"/>
|
||||
<field name="move_lines" model="stock.move" eval="[(0, 0, {
|
||||
<field name="partner_id" ref="base.res_partner_1" />
|
||||
<field name="date" eval="DateTime.today()" />
|
||||
<field name="location_id" ref="stock.stock_location_stock" />
|
||||
<field name="location_dest_id" ref="stock.stock_location_customers" />
|
||||
<field
|
||||
name="move_lines"
|
||||
model="stock.move"
|
||||
eval="[(0, 0, {
|
||||
'name': obj().env.ref('stock_reserve_rule.product_funky_socks').name,
|
||||
'product_id': ref('stock_reserve_rule.product_funky_socks'),
|
||||
'product_uom': ref('uom.product_uom_unit'),
|
||||
@@ -34,7 +39,7 @@
|
||||
'picking_type_id': ref('stock.picking_type_out'),
|
||||
'location_id': ref('stock.stock_location_stock'),
|
||||
'location_dest_id': ref('stock.stock_location_customers'),
|
||||
})]"/>
|
||||
})]"
|
||||
/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,32 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="stock_reserve_rule_1_demo" model="stock.reserve.rule">
|
||||
<field name="name">Stock</field>
|
||||
<field name="sequence">1</field>
|
||||
<field name="location_id" ref="stock.stock_location_stock"/>
|
||||
<field name="company_id" ref="base.main_company"/>
|
||||
<field name="location_id" ref="stock.stock_location_stock" />
|
||||
<field name="company_id" ref="base.main_company" />
|
||||
</record>
|
||||
|
||||
<record id="stock_reserve_rule_removal_1_demo" model="stock.reserve.rule.removal">
|
||||
<field name="rule_id" ref="stock_reserve_rule_1_demo"/>
|
||||
<field name="rule_id" ref="stock_reserve_rule_1_demo" />
|
||||
<field name="sequence">1</field>
|
||||
<field name="location_id" ref="stock_location_zone_a_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_a_demo" />
|
||||
<field name="removal_strategy">empty_bin</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_reserve_rule_2_removal_demo" model="stock.reserve.rule.removal">
|
||||
<field name="rule_id" ref="stock_reserve_rule_1_demo"/>
|
||||
<field name="rule_id" ref="stock_reserve_rule_1_demo" />
|
||||
<field name="sequence">2</field>
|
||||
<field name="location_id" ref="stock_location_zone_b_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_b_demo" />
|
||||
<field name="removal_strategy">default</field>
|
||||
</record>
|
||||
|
||||
<record id="stock_reserve_rule_3_removal_demo" model="stock.reserve.rule.removal">
|
||||
<field name="rule_id" ref="stock_reserve_rule_1_demo"/>
|
||||
<field name="rule_id" ref="stock_reserve_rule_1_demo" />
|
||||
<field name="sequence">3</field>
|
||||
<field name="location_id" ref="stock_location_zone_c_demo"/>
|
||||
<field name="location_id" ref="stock_location_zone_c_demo" />
|
||||
<field name="removal_strategy">default</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="rule_stock_reserve_rule_company" model="ir.rule">
|
||||
<field name="name">Stock Reservation Rule</field>
|
||||
<field name="model_id" ref="model_stock_reserve_rule"/>
|
||||
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
||||
<field name="model_id" ref="model_stock_reserve_rule" />
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_stock_reserve_rule_form" model="ir.ui.view">
|
||||
<field name="name">stock.reserve.rule.form</field>
|
||||
<field name="model">stock.reserve.rule</field>
|
||||
@@ -8,38 +7,57 @@
|
||||
<form string="Stock Reservation Rule">
|
||||
<div class="oe_button_box" name="button_box">
|
||||
</div>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
|
||||
<label for="name" class="oe_edit_only"/>
|
||||
<h1><field name="name"/></h1>
|
||||
<widget
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
/>
|
||||
<label for="name" class="oe_edit_only" />
|
||||
<h1>
|
||||
<field name="name" />
|
||||
</h1>
|
||||
<group string="Rule Applicability" name="configuration">
|
||||
<group>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="location_id"/>
|
||||
<field name="fallback_location_id"/>
|
||||
<field name="active" invisible="1" />
|
||||
<field name="location_id" />
|
||||
<field name="fallback_location_id" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="rule_domain" widget="domain" options="{'model': 'stock.move', 'in_dialog': true}" />
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field
|
||||
name="rule_domain"
|
||||
widget="domain"
|
||||
options="{'model': 'stock.move', 'in_dialog': true}"
|
||||
/>
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</group>
|
||||
</group>
|
||||
<group string="Removal Rules" name="rule">
|
||||
<field name="rule_removal_ids" nolabel="1">
|
||||
<tree string="Removal Rules">
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="name"/>
|
||||
<field name="location_id"/>
|
||||
<field name="removal_strategy"/>
|
||||
<field name="name" />
|
||||
<field name="location_id" />
|
||||
<field name="removal_strategy" />
|
||||
</tree>
|
||||
<form string="Removal Rule">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="location_id" domain="[('id', 'child_of', parent.location_id)]" />
|
||||
<field name="removal_strategy"/>
|
||||
<field name="packaging_type_ids"
|
||||
widget="many2many_tags"
|
||||
attrs="{'invisible': [('removal_strategy', '!=', 'packaging')]}"
|
||||
<field name="name" />
|
||||
<field
|
||||
name="location_id"
|
||||
domain="[('id', 'child_of', parent.location_id)]"
|
||||
/>
|
||||
<field name="removal_strategy" />
|
||||
<field
|
||||
name="packaging_type_ids"
|
||||
widget="many2many_tags"
|
||||
attrs="{'invisible': [('removal_strategy', '!=', 'packaging')]}"
|
||||
/>
|
||||
<field
|
||||
name="quant_domain"
|
||||
widget="domain"
|
||||
options="{'model': 'stock.quant', 'in_dialog': true}"
|
||||
/>
|
||||
<field name="quant_domain" widget="domain" options="{'model': 'stock.quant', 'in_dialog': true}" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
@@ -47,48 +65,50 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_reserve_rule_search" model="ir.ui.view">
|
||||
<field name="name">stock.reserve.rule.search</field>
|
||||
<field name="model">stock.reserve.rule</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Stock Reservation Rule">
|
||||
<field name="name"/>
|
||||
<field name="location_id"/>
|
||||
<separator/>
|
||||
<filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
|
||||
<field name="name" />
|
||||
<field name="location_id" />
|
||||
<separator />
|
||||
<filter
|
||||
string="Archived"
|
||||
name="inactive"
|
||||
domain="[('active','=',False)]"
|
||||
/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_reserve_rule_tree" model="ir.ui.view">
|
||||
<field name="name">stock.reserve.rule</field>
|
||||
<field name="model">stock.reserve.rule</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Stock Reservation Rule">
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="name"/>
|
||||
<field name="location_id"/>
|
||||
<field name="name" />
|
||||
<field name="location_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_stock_reserve_rule" model="ir.actions.act_window">
|
||||
<field name="name">Stock Reservation Rules</field>
|
||||
<field name="res_model">stock.reserve.rule</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_id" ref="view_stock_reserve_rule_tree"/>
|
||||
<field name="search_view_id" ref="view_stock_reserve_rule_search"/>
|
||||
<field name="context"></field>
|
||||
<field name="view_id" ref="view_stock_reserve_rule_tree" />
|
||||
<field name="search_view_id" ref="view_stock_reserve_rule_search" />
|
||||
<field name="context" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Add a Stock Reservation Rule
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem action="action_stock_reserve_rule"
|
||||
id="menu_stock_reserve_rule"
|
||||
parent="stock.menu_warehouse_config" sequence="10"/>
|
||||
|
||||
<menuitem
|
||||
action="action_stock_reserve_rule"
|
||||
id="menu_stock_reserve_rule"
|
||||
parent="stock.menu_warehouse_config"
|
||||
sequence="10"
|
||||
/>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user