Skip to content

Commit

Permalink
[MIG] stock_reserve_rule: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FernizaM22 committed Dec 1, 2024
1 parent cc8adad commit 91b5266
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions stock_reserve_rule/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ Properties that define where the rule will be applied:

- Location: Define where the rule will look for goods (a parent of the
move's source location).
- Fallback Location: Define where the goods are reserved if none of the
removal rule could reserve the goods. If left empty, the goods are
reserved in the move's source location / sub-locations.
- Rule Domain: The rule is used only if the Stock Move matches the
domain.

Expand Down Expand Up @@ -132,8 +135,7 @@ Scenario:

- Activate Storage Locations and Multi-Warehouses
- You can open Inventory > Configuration > Stock Reservation Rules to
activate and see the rules (by default in demo, the rules are created
inactive)
see the rules
- Open Transfer: Outgoing shipment (reservation rules demo 1)
- Check availability: it has 150 units, as it will not empty Zone A, it
will not take products there, it should take 100 in B and 50 in C
Expand Down Expand Up @@ -167,8 +169,6 @@ Contributors
------------

- Guewen Baconnier <guewen.baconnier@camptocamp.com>
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
- Denis Roussel <denis.roussel@acsone.eu>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion stock_reserve_rule/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Stock Reservation Rules",
"summary": "Configure reservation rules by location",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Stock Management",
Expand Down
3 changes: 3 additions & 0 deletions stock_reserve_rule/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Properties that define where the rule will be applied:

- Location: Define where the rule will look for goods (a parent of the
move's source location).
- Fallback Location: Define where the goods are reserved if none of the
removal rule could reserve the goods. If left empty, the goods are
reserved in the move's source location / sub-locations.
- Rule Domain: The rule is used only if the Stock Move matches the
domain.

Expand Down
2 changes: 0 additions & 2 deletions stock_reserve_rule/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
- Guewen Baconnier \<<guewen.baconnier@camptocamp.com>\>
- Jacques-Etienne Baudoux (BCIM) \<<je@bcim.be>\>
- Denis Roussel \<<denis.roussel@acsone.eu>\>
3 changes: 1 addition & 2 deletions stock_reserve_rule/readme/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ Scenario:

- Activate Storage Locations and Multi-Warehouses
- You can open Inventory \> Configuration \> Stock Reservation Rules to
activate and see the rules (by default in demo, the rules are created
inactive)
see the rules
- Open Transfer: Outgoing shipment (reservation rules demo 1)
- Check availability: it has 150 units, as it will not empty Zone A, it
will not take products there, it should take 100 in B and 50 in C
Expand Down
8 changes: 4 additions & 4 deletions stock_reserve_rule/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<ul class="simple">
<li>Location: Define where the rule will look for goods (a parent of the
move’s source location).</li>
<li>Fallback Location: Define where the goods are reserved if none of the
removal rule could reserve the goods. If left empty, the goods are
reserved in the move’s source location / sub-locations.</li>
<li>Rule Domain: The rule is used only if the Stock Move matches the
domain.</li>
</ul>
Expand Down Expand Up @@ -469,8 +472,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<ul class="simple">
<li>Activate Storage Locations and Multi-Warehouses</li>
<li>You can open Inventory &gt; Configuration &gt; Stock Reservation Rules to
activate and see the rules (by default in demo, the rules are created
inactive)</li>
see the rules</li>
<li>Open Transfer: Outgoing shipment (reservation rules demo 1)</li>
<li>Check availability: it has 150 units, as it will not empty Zone A, it
will not take products there, it should take 100 in B and 50 in C
Expand Down Expand Up @@ -503,8 +505,6 @@ <h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Guewen Baconnier &lt;<a class="reference external" href="mailto:guewen.baconnier&#64;camptocamp.com">guewen.baconnier&#64;camptocamp.com</a>&gt;</li>
<li>Jacques-Etienne Baudoux (BCIM) &lt;<a class="reference external" href="mailto:je&#64;bcim.be">je&#64;bcim.be</a>&gt;</li>
<li>Denis Roussel &lt;<a class="reference external" href="mailto:denis.roussel&#64;acsone.eu">denis.roussel&#64;acsone.eu</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
5 changes: 3 additions & 2 deletions stock_reserve_rule/views/stock_reserve_rule_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
invisible="active"
/>
<label for="name" class="oe_edit_only" />
<h1>
Expand Down Expand Up @@ -60,7 +60,7 @@
<field
name="packaging_level_ids"
widget="many2many_tags"
attrs="{'invisible': [('removal_strategy', '!=', 'packaging')]}"
invisible="removal_strategy != 'packaging'"
/>
<field
name="quant_domain"
Expand All @@ -75,6 +75,7 @@
</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>
Expand Down

0 comments on commit 91b5266

Please sign in to comment.