mirror of
https://github.com/bringout/oca-warehouse.git
synced 2026-04-26 23:02:04 +02:00
Move 21 stock-logistics modules from oca-technical to oca-warehouse
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
299c5b531c
commit
c1319feab8
884 changed files with 80693 additions and 0 deletions
|
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2014 Numérigraphe
|
||||
Copyright 2016 Sodexis
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="product_normal_form_view">
|
||||
<field name="name">Quantity available to promise (variant tree)</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="stock.product_form_view_procurement_button" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//button[@name='action_product_forecast_report']"
|
||||
position="after"
|
||||
>
|
||||
<button
|
||||
type="object"
|
||||
name="action_open_quants"
|
||||
attrs="{'invisible':[('type', 'not in', ['product','consu'])]}"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value" widget="statinfo">
|
||||
<field
|
||||
name="immediately_usable_qty"
|
||||
widget="statinfo"
|
||||
nolabel="1"
|
||||
class="mr4"
|
||||
/>
|
||||
<field name="uom_name" />
|
||||
</span>
|
||||
<span class="o_stat_text">Available</span>
|
||||
</div>
|
||||
</button>
|
||||
<button
|
||||
type="object"
|
||||
name="action_open_quants"
|
||||
attrs="{'invisible':[('type', 'not in', ['product','consu'])]}"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value" widget="statinfo">
|
||||
<field
|
||||
name="potential_qty"
|
||||
widget="statinfo"
|
||||
nolabel="1"
|
||||
class="mr4"
|
||||
/>
|
||||
<field name="uom_name" />
|
||||
</span>
|
||||
<span class="o_stat_text">Potential</span>
|
||||
</div>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="view_stock_available_product_tree">
|
||||
<field name="name">Quantity available to promise (variant tree)</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_product_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="virtual_available" position="after">
|
||||
<field
|
||||
name="immediately_usable_qty"
|
||||
decoration-danger="immediately_usable_qty < 0"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2014 Numérigraphe
|
||||
Copyright 2016 Sodexis
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="view_stock_available_form">
|
||||
<field name="name">Quantity available to promise (form)</field>
|
||||
<field name="model">product.template</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="stock.product_template_form_view_procurement_button"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//button[@name='action_product_tmpl_forecast_report']"
|
||||
position="after"
|
||||
>
|
||||
<button
|
||||
type="object"
|
||||
name="action_open_quants"
|
||||
attrs="{'invisible':[('type', 'not in', ['product','consu'])]}"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value" widget="statinfo">
|
||||
<field
|
||||
name="immediately_usable_qty"
|
||||
widget="statinfo"
|
||||
nolabel="1"
|
||||
class="mr4"
|
||||
/>
|
||||
<field name="uom_name" />
|
||||
</span>
|
||||
<span class="o_stat_text">Available</span>
|
||||
</div>
|
||||
</button>
|
||||
<button
|
||||
type="object"
|
||||
name="action_open_quants"
|
||||
attrs="{'invisible':[('type', 'not in', ['product','consu'])]}"
|
||||
class="oe_stat_button"
|
||||
icon="fa-building-o"
|
||||
>
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value" widget="statinfo">
|
||||
<field
|
||||
name="potential_qty"
|
||||
widget="statinfo"
|
||||
nolabel="1"
|
||||
class="mr4"
|
||||
/>
|
||||
<field name="uom_name" />
|
||||
</span>
|
||||
<span class="o_stat_text">Potential</span>
|
||||
</div>
|
||||
</button>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="view_stock_available_product_template_tree">
|
||||
<field name="name">Quantity available to promise (tree)</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_product_template_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="virtual_available" position="after">
|
||||
<field
|
||||
name="immediately_usable_qty"
|
||||
decoration-danger="immediately_usable_qty < 0"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="view_stock_available_kanban">
|
||||
<field name="name">Quantity available to promise (kanban)</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="stock.product_template_kanban_stock_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='product_lst_price']" position="after">
|
||||
<div
|
||||
t-if="record.type.raw_value == 'product'"
|
||||
>Available to Promise: <field name="immediately_usable_qty" /> <field
|
||||
name="uom_id"
|
||||
/></div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2014 Numérigraphe
|
||||
Copyright 2016 Sodexis
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
|
||||
<odoo>
|
||||
<record id="view_stock_configuration" model="ir.ui.view">
|
||||
<field name="name">Stock settings: quantity available to promise</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="stock.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@data-key='stock']" position="inside">
|
||||
<h2 id="available_info">Stock available to promise</h2>
|
||||
<div class="row mt16 o_settings_container">
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_stock_available_immediately" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_stock_available_immediately" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_stock_available_mrp" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_stock_available_mrp" />
|
||||
<div class="content-group">
|
||||
<div
|
||||
class="mt16"
|
||||
attrs="{'invisible': [('module_stock_available_mrp', '=', False)]}"
|
||||
>
|
||||
<field
|
||||
name="stock_available_mrp_based_on"
|
||||
class="oe_inline"
|
||||
attrs="{'required':[('module_stock_available_mrp','=',True)]}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue