Skip to content

Commit 85d2ca5

Browse files
committed
[IMP]stock_ux:better message without onchange
1 parent 1d01237 commit 85d2ca5

File tree

4 files changed

+16
-26
lines changed

4 files changed

+16
-26
lines changed

stock_ux/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"views/stock_picking_type_views.xml",
4545
"views/report_deliveryslip.xml",
4646
"views/res_config_settings_views.xml",
47+
"views/stock_location_views.xml",
4748
"wizards/stock_operation_wizard_views.xml",
4849
"report/ir.action.reports.xml",
4950
"report/picking_templates.xml",

stock_ux/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
from . import res_config_settings
1414
from . import stock_rule
1515
from . import stock_scrap
16-
from . import stock_location
1716
from . import stock_forecasted

stock_ux/models/stock_location.py

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
<record id="view_location_form_inherit_stock_ux" model="ir.ui.view">
4+
<field name="name">stock.location.form.inherit.stock.ux</field>
5+
<field name="model">stock.location</field>
6+
<field name="inherit_id" ref="stock.view_location_form"/>
7+
<field name="arch" type="xml">
8+
<xpath expr="//form/sheet" position="before">
9+
<div class="alert alert-warning" role="alert" invisible="replenish_location or usage != 'internal'">
10+
<strong>Warning!</strong> By deactivating the <strong>replenish location</strong> function, temporary replenishment rules will not be generated to suggest products to replenish according to the forecasts.
11+
</div>
12+
</xpath>
13+
</field>
14+
</record>
15+
</odoo>

0 commit comments

Comments
 (0)