Skip to content

Commit

Permalink
[MIG] sale_order_lot_selection: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hiregui authored and alan196 committed Jul 2, 2024
1 parent e807123 commit 0275f13
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 56 deletions.
Binary file added pandoc-3.1.12.3-1-amd64.deb
Binary file not shown.
59 changes: 31 additions & 28 deletions sale_order_lot_selection/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ Sale Order Lot Selection
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/16.0/sale_order_lot_selection
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_order_lot_selection
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_selection
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_lot_selection
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows you to select a lot number on sale order line.
This selected lot number will be the one delivered to the Customer.
This module allows you to select a lot number on sale order line. This
selected lot number will be the one delivered to the Customer.

**Table of contents**

Expand All @@ -39,54 +39,57 @@ This selected lot number will be the one delivered to the Customer.
Usage
=====

- Create/edit a product and set traceability by 'By Lots' option.
- Create a new lot number and assign product.
- Update quantity for that product and assign lot number.
- Go to Sales > Orders > Quotations.
- Create a new quotation and add recently above configured product.
- Select lot number and confirm it.
- Delivery order will reserve the lot when available
- Create/edit a product and set traceability by 'By Lots' option.
- Create a new lot number and assign product.
- Update quantity for that product and assign lot number.
- Go to Sales > Orders > Quotations.
- Create a new quotation and add recently above configured product.
- Select lot number and confirm it.
- Delivery order will reserve the lot when available

Known issues / Roadmap
======================

Block sale order validation on confirmation if the selected lot has been removed of this module
Indeed nobody seems to know what it had been implemented on early versions and it is really blocking other generic use case.
One may want to validate a sale order restricting it to a lot that will be produced for instance and does not exist yet.
Block sale order validation on confirmation if the selected lot has been
removed of this module Indeed nobody seems to know what it had been
implemented on early versions and it is really blocking other generic
use case. One may want to validate a sale order restricting it to a lot
that will be produced for instance and does not exist yet.

This feature may be easyly put it back, in a separated module, if a use case requires it.
The removal of this feature was made on this commit : 3234b2ccccf1dffafbe0a8fa8efaaea44f2e47ef.
This feature may be easyly put it back, in a separated module, if a use
case requires it. The removal of this feature was made on this commit :
3234b2ccccf1dffafbe0a8fa8efaaea44f2e47ef.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_lot_selection%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_lot_selection%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Agile Business Group

Contributors
~~~~~~~~~~~~
------------

* Nicola Malcontenti <[email protected]>
* Lorenzo Battistini <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Bhavesh Odedra <[email protected]>
* François Honoré <[email protected]>
* Florian da Costa <[email protected]>
- Nicola Malcontenti <[email protected]>
- Lorenzo Battistini <[email protected]>
- Serpent Consulting Services Pvt. Ltd. <[email protected]>
- Bhavesh Odedra <[email protected]>
- François Honoré <[email protected]>
- Florian da Costa <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -106,6 +109,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-bodedra|

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_order_lot_selection>`_ project on GitHub.
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/sale_order_lot_selection>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion sale_order_lot_selection/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Sale Order Lot Selection",
"version": "16.0.1.0.1",
"version": "17.0.1.0.0",
"category": "Sales Management",
"author": "Odoo Community Association (OCA), Agile Business Group",
"website": "https://github.com/OCA/sale-workflow",
Expand Down
3 changes: 3 additions & 0 deletions sale_order_lot_selection/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions sale_order_lot_selection/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Nicola Malcontenti \<<[email protected]>\>
- Lorenzo Battistini \<<[email protected]>\>
- Serpent Consulting Services Pvt. Ltd. \<<[email protected]>\>
- Bhavesh Odedra \<<[email protected]>\>
- François Honoré \<<[email protected]>\>
- Florian da Costa \<<[email protected]>\>
6 changes: 0 additions & 6 deletions sale_order_lot_selection/readme/CONTRIBUTORS.rst

This file was deleted.

2 changes: 2 additions & 0 deletions sale_order_lot_selection/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows you to select a lot number on sale order line. This
selected lot number will be the one delivered to the Customer.
2 changes: 0 additions & 2 deletions sale_order_lot_selection/readme/DESCRIPTION.rst

This file was deleted.

9 changes: 9 additions & 0 deletions sale_order_lot_selection/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Block sale order validation on confirmation if the selected lot has been
removed of this module Indeed nobody seems to know what it had been
implemented on early versions and it is really blocking other generic
use case. One may want to validate a sale order restricting it to a lot
that will be produced for instance and does not exist yet.

This feature may be easyly put it back, in a separated module, if a use
case requires it. The removal of this feature was made on this commit :
3234b2ccccf1dffafbe0a8fa8efaaea44f2e47ef.
6 changes: 0 additions & 6 deletions sale_order_lot_selection/readme/ROADMAP.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- Create/edit a product and set traceability by 'By Lots' option.
- Create a new lot number and assign product.
- Update quantity for that product and assign lot number.
- Go to Sales > Orders > Quotations.
- Go to Sales \> Orders \> Quotations.
- Create a new quotation and add recently above configured product.
- Select lot number and confirm it.
- Delivery order will reserve the lot when available
24 changes: 13 additions & 11 deletions sale_order_lot_selection/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -369,9 +368,9 @@ <h1 class="title">Sale Order Lot Selection</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cb69fa963bca91e66d50c98d87322af722603b8a08a0fa87d77c971423ce49cb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/sale-workflow/tree/16.0/sale_order_lot_selection"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_lot_selection"><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/sale-workflow&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to select a lot number on sale order line.
This selected lot number will be the one delivered to the Customer.</p>
<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/sale-workflow/tree/17.0/sale_order_lot_selection"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_lot_selection"><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/sale-workflow&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to select a lot number on sale order line. This
selected lot number will be the one delivered to the Customer.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down Expand Up @@ -400,18 +399,21 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<p>Block sale order validation on confirmation if the selected lot has been removed of this module
Indeed nobody seems to know what it had been implemented on early versions and it is really blocking other generic use case.
One may want to validate a sale order restricting it to a lot that will be produced for instance and does not exist yet.</p>
<p>This feature may be easyly put it back, in a separated module, if a use case requires it.
The removal of this feature was made on this commit : 3234b2ccccf1dffafbe0a8fa8efaaea44f2e47ef.</p>
<p>Block sale order validation on confirmation if the selected lot has been
removed of this module Indeed nobody seems to know what it had been
implemented on early versions and it is really blocking other generic
use case. One may want to validate a sale order restricting it to a lot
that will be produced for instance and does not exist yet.</p>
<p>This feature may be easyly put it back, in a separated module, if a use
case requires it. The removal of this feature was made on this commit :
3234b2ccccf1dffafbe0a8fa8efaaea44f2e47ef.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_lot_selection%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_lot_selection%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -442,7 +444,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/bodedra"><img alt="bodedra" src="https://github.com/bodedra.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_order_lot_selection">OCA/sale-workflow</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/17.0/sale_order_lot_selection">OCA/sale-workflow</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setUp(self):
I confirm it, transfer the delivery order and check lots on picking
"""
super(TestSaleOrderLotSelection, self).setUp()
super().setUp()
self.prd_cable = self.env.ref("stock.product_cable_management_box")
self.prd_cable.tracking = "lot"
self.product_46 = self.env.ref("product.product_product_13")
Expand Down

0 comments on commit 0275f13

Please sign in to comment.