Skip to content

Commit

Permalink
[MIG] stock_picking_product_assortment: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Jan 29, 2025
1 parent 2df86ea commit f04dbe3
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 24 deletions.
13 changes: 7 additions & 6 deletions stock_picking_product_assortment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ Stock Picking Product Assortment
|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to use the product assortments related to a partner
on outgoing stock pickings. Whith this implementation, we just allow to
select the products defined on whitelist and we don't allow to select
the products defined on blacklist on outgoing stock pickings.
on stock pickings. Whith this implementation, on stock pickings, we only
allow to select the products defined on the assortment and we don't
allow to select products which are not defined in the whitelist on the
assortment.

**Table of contents**

Expand All @@ -41,14 +42,14 @@ the products defined on blacklist on outgoing stock pickings.
Configuration
=============

Follow the steps of product_assortment module to define a whitelist or a
blacklists or both to some partner.
Follow the steps of the product_assortment module to define a whitelist
or a blacklists or both to some partner.

Usage
=====

1. Go to Inventory.
2. Create a new outgoing picking.
2. Create a new outgoing or incoming picking.
3. Select one of the partners defined on product_assortment.
4. Add products defined on the product assortment.

Expand Down
2 changes: 1 addition & 1 deletion stock_picking_product_assortment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Stock Picking Product Assortment",
"version": "16.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion stock_picking_product_assortment/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Follow the steps of product_assortment module to define a whitelist or a
Follow the steps of the product_assortment module to define a whitelist or a
blacklists or both to some partner.
6 changes: 3 additions & 3 deletions stock_picking_product_assortment/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This module allows to use the product assortments related to a partner
on outgoing stock pickings. Whith this implementation, we just allow to
select the products defined on whitelist and we don't allow to select
the products defined on blacklist on outgoing stock pickings.
on stock pickings. Whith this implementation, on stock pickings, we only allow to
select the products defined on the assortment and we don't allow to select
products which are not defined in the whitelist on the assortment.
2 changes: 1 addition & 1 deletion stock_picking_product_assortment/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1. Go to Inventory.
2. Create a new outgoing picking.
2. Create a new outgoing or incoming picking.
3. Select one of the partners defined on product_assortment.
4. Add products defined on the product assortment.
13 changes: 7 additions & 6 deletions stock_picking_product_assortment/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,10 @@ <h1 class="title">Stock Picking Product Assortment</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_product_assortment"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-18-0/stock-logistics-workflow-18-0-stock_picking_product_assortment"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to use the product assortments related to a partner
on outgoing stock pickings. Whith this implementation, we just allow to
select the products defined on whitelist and we don’t allow to select
the products defined on blacklist on outgoing stock pickings.</p>
on stock pickings. Whith this implementation, on stock pickings, we only
allow to select the products defined on the assortment and we don’t
allow to select products which are not defined in the whitelist on the
assortment.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -390,14 +391,14 @@ <h1 class="title">Stock Picking Product Assortment</h1>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>Follow the steps of product_assortment module to define a whitelist or a
blacklists or both to some partner.</p>
<p>Follow the steps of the product_assortment module to define a whitelist
or a blacklists or both to some partner.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<ol class="arabic simple">
<li>Go to Inventory.</li>
<li>Create a new outgoing picking.</li>
<li>Create a new outgoing or incoming picking.</li>
<li>Select one of the partners defined on product_assortment.</li>
<li>Add products defined on the product assortment.</li>
</ol>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Copyright 2020 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo.tests.common import Form, TransactionCase
from odoo.tests import Form
from odoo.tests.common import TransactionCase, tagged


@tagged("post_install", "-at_install")
class TestStockPickingProductAssortment(TransactionCase):
def setUp(self):
super().setUp()
Expand All @@ -20,7 +22,7 @@ def setUp(self):
{
"name": "Test product 1",
"sale_ok": True,
"type": "product",
"type": "consu",
"categ_id": self.product_category.id,
"description_sale": "Test Description Sale",
}
Expand All @@ -29,7 +31,7 @@ def setUp(self):
{
"name": "Test product 2",
"sale_ok": True,
"type": "product",
"type": "consu",
"categ_id": self.product_category.id,
"description_sale": "Test Description Sale",
}
Expand Down
6 changes: 3 additions & 3 deletions stock_picking_product_assortment/views/stock_picking_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<field name="has_assortment" invisible="1" />
</field>
<xpath
expr="//field[@name='move_ids_without_package']/tree/field[@name='product_id']"
expr="//field[@name='move_ids_without_package']/list/field[@name='product_id']"
position="attributes"
>
<attribute
Expand All @@ -25,14 +25,14 @@
</record>

<record id="view_stock_move_line_detailed_operation_tree" model="ir.ui.view">
<field name="name">stock.move.line.operations.tree</field>
<field name="name">stock.move.line.operations.list</field>
<field name="model">stock.move.line</field>
<field
name="inherit_id"
ref="stock.view_stock_move_line_detailed_operation_tree"
/>
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='product_id']" position="attributes">
<xpath expr="//list/field[@name='product_id']" position="attributes">
<attribute
name="domain"
operation="domain_add"
Expand Down

0 comments on commit f04dbe3

Please sign in to comment.