Skip to content

Commit

Permalink
[REF] stock_picking_batch_extended: Move settings option under Batch …
Browse files Browse the repository at this point in the history
…Picking group
  • Loading branch information
Shide committed Oct 20, 2023
1 parent d85eb89 commit 97ac742
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion stock_picking_batch_extended/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
In Inventory / Settings it is possible to activate or deactivate which approach for batch handling will be used per company. By default after installation this option will be activated for all companies.
In Inventory / Settings / Batch Picking it is possible to activate or deactivate which approach for batch handling will be used per company. By default after installation this option will be activated for all companies.

.. figure:: ../static/picking_batch_configuration_settings.png
:alt: Picking batch configuration settings
Expand Down
33 changes: 16 additions & 17 deletions stock_picking_batch_extended/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="stock.res_config_settings_view_form" />
<field name="arch" type="xml">
<div data-key="stock" position="inside">
<h2>Picking Batch</h2>
<div class="row mt16 o_settings_container">
<div
class="col-12 col-lg-6 o_setting_box"
title="Switch behaviour bettwen Odoo and OCA for batch validation"
>
<div class="o_setting_left_pane">
<field name="use_oca_batch_validation" />
</div>
<div class="o_setting_right_pane">
<label for="use_oca_batch_validation" />
<div class="text-muted">
Apply OCA batch validation
</div>
</div>
<xpath
expr="//label[@for='module_stock_picking_batch']/.."
position="inside"
>
<div
class="row mt-2"
attrs="{'invisible': [('module_stock_picking_batch','=',False)]}"
>
<field
name="use_oca_batch_validation"
class="col flex-grow-0 ml16 mr0 pe-2"
/>
<div class="col ps-0">
<label for="use_oca_batch_validation" />
<div class="text-muted">Apply OCA batch validation</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 97ac742

Please sign in to comment.