Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] sale_order_lot_selection: Migration to 17.0 #3259

Merged
merged 65 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
538e5a7
[FIX] Add sale order dolder
Apr 7, 2015
f8550ed
[FIX] adds _run_move_create and some other fixes
Apr 21, 2015
40f60e1
[FIX] add restriction on sale confirm changed icon and minor fix
Apr 22, 2015
e9c0a91
[FIX] Add check on sale order
Apr 28, 2015
6ff4470
[FIX] add _run override
Apr 28, 2015
c2d7c56
[FIX] adding feature and fix contributors
Apr 29, 2015
4410eef
Add transmition of lot_id from move to procurement and delete lot_id on
Jul 6, 2015
4acb5e5
Extract move state check for easier inherit and add copy=False instead
Jul 8, 2015
ecfb000
Fix pep8 and edit check move state
Jul 8, 2015
f7f7544
Fix unused import
Jul 8, 2015
d0a2a75
[IMP] better lot names in tests
eLBati Jul 30, 2015
d0e6990
[FIX] Fixed Tests adding a stock_picking_in to create quants
Jul 30, 2015
2c2d341
[FIX] Add check on lot reservation in test
Aug 11, 2015
efb7dc3
[FIX] Add check on quants
Aug 12, 2015
93b860a
Refactoring product_id_change_with_wh for domain generation.
eLBati Aug 28, 2015
3e92836
Refactoring tests, adding onchange tests
eLBati Aug 28, 2015
1434cd4
Remove never used domain: on_change will set the correct domain for l…
eLBati Aug 31, 2015
6dfe185
IMP module version and fix comment
eLBati Sep 2, 2015
1ef77a0
the field lot_id should only be visible to the members of the stock.g…
eLBati Sep 11, 2015
9ba7537
REF some code and ADD lot11 has 1 availability and order4 has quantity 2
eLBati Sep 11, 2015
ae603bc
REF product_id_change_with_wh for compatibility with ohter override
eLBati Sep 11, 2015
6b0b7fd
FIX default value in context
eLBati Oct 28, 2015
1c637b2
IMP README
eLBati Oct 28, 2015
6726eee
FIX You cannot transfer a picking in state 'False'
eLBati Feb 23, 2016
3bb069c
[FIX] fix perf issue with sale_order_lot_selection
sebastienbeau Mar 8, 2016
0e04b78
FIX https://github.com/OCA/sale-workflow/issues/269
eLBati Jun 5, 2016
5040790
Migrate sale_order_lot_selection to v9
florian-dacosta Jul 27, 2016
735a4db
[FIX] return super result after sale order confirm
florian-dacosta Sep 6, 2016
6fce352
[MIG] Make modules uninstallable
pedrobaeza Oct 6, 2016
3a87a2e
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
99822a7
[MIG] sale_order_lot_selection: Migrated to 10.0
mourad-ehm Feb 16, 2017
7db5809
[FIX] sale_order_lot_selection: _prepare_procurement_from_move is an …
lmignon May 26, 2017
6142a03
OCA Transbot updated translations from Transifex
oca-transbot Feb 28, 2016
1b215d8
[UPD] Update sale_order_lot_selection.pot
oca-travis Jun 20, 2018
2a781fc
[10.0][FIX] pylint
rousseldenis Sep 4, 2018
feb37a7
[MIG] sale_order_lot_selection: Migration to 12.0
PCatinean Jan 18, 2019
6175b03
[UPD] Update sale_order_lot_selection.pot
oca-travis Feb 4, 2020
f02c63f
Update translation files
oca-transbot Feb 7, 2020
3b89e13
[IMP] : black, isort, prettier
Apr 8, 2020
ce51020
[13.0][MIG] sale_order_lot_selection
Apr 8, 2020
5012287
[ADD] maintainers
Apr 8, 2020
d684c6c
[IMP] add context 'skip_check_lot_selection_qty' to skip check lot se…
Apr 8, 2020
4f2e5d0
[IMP] split files as per each object
Apr 8, 2020
4955b50
Update sale_order_lot_selection/readme/DESCRIPTION.rst
Apr 8, 2020
7b0ed0a
Migrate sale_order_lot_selection to 14
florian-dacosta Dec 2, 2020
aaca498
[REF] Refactore module making it depend on stock_restrict_lot
florian-dacosta Dec 2, 2020
6c0554c
Remove logic where sale order confirmation is blocked if selected lot…
florian-dacosta Dec 3, 2020
8d1d1ef
add roadmap
florian-dacosta Dec 3, 2020
ff1e262
[IMP] pre-commit run
florian-dacosta Dec 16, 2020
20b0eb4
[UPD] Update sale_order_lot_selection.pot
oca-travis Dec 17, 2020
b1c1524
[UPD] README.rst
OCA-git-bot Dec 17, 2020
119b641
Translated using Weblate (Catalan)
danimv5 Jan 20, 2021
b184966
Translated using Weblate (German)
marylla Jul 9, 2021
9f6a638
[14.0][FIX] sale_order_lot_selection: Avoid missing warning in the pr…
nicomacr Nov 9, 2021
1d1a1a5
sale_order_lot_selection 14.0.1.0.1
OCA-git-bot Nov 12, 2021
73242b9
FIX sale__lot_selection: add company ctx
bealdav Mar 10, 2022
59304fe
sale_order_lot_selection 14.0.1.1.0
OCA-git-bot Mar 16, 2022
7474844
Translated using Weblate (Italian)
francesco-ooops Apr 8, 2022
46656b7
Translated using Weblate (Italian)
francesco-ooops Jun 24, 2022
f90afe9
[MIG] sale_order_lot_selection: Migration to 15.0
nicomacr Sep 29, 2022
9f3bf18
[MIG][16.0] Migrate sale_order_lot_selection to v16
florian-dacosta Nov 24, 2022
0ff4bfb
sale_order_lot_selection 16.0.1.0.1
OCA-git-bot Dec 14, 2022
0e45c28
Translated using Weblate (Italian)
mymage Dec 28, 2022
fe4850f
[IMP] sale_order_lot_selection: black, isort, prettier
sanderlienaerts Aug 2, 2024
aedb5e8
[MIG] sale_order_lot_selection: Migration to 17.0
sanderlienaerts Aug 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions sale_order_lot_selection/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
========================
Sale Order Lot Selection
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cb69fa963bca91e66d50c98d87322af722603b8a08a0fa87d77c971423ce49cb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/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-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=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.

**Table of contents**

.. contents::
:local:

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

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.

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:%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]>
- Sander Lienaerts <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-bodedra| image:: https://github.com/bodedra.png?size=40px
:target: https://github.com/bodedra
:alt: bodedra

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/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.
1 change: 1 addition & 0 deletions sale_order_lot_selection/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
13 changes: 13 additions & 0 deletions sale_order_lot_selection/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Sale Order Lot Selection",
"version": "17.0.1.0.0",
"category": "Sales Management",
"author": "Odoo Community Association (OCA), Agile Business Group",
"website": "https://github.com/OCA/sale-workflow",
"license": "AGPL-3",
"depends": ["sale_stock", "stock_restrict_lot"],
"data": ["views/sale_order_views.xml"],
"demo": ["demo/sale_demo.xml"],
"maintainers": ["bodedra"],
"installable": True,
}
28 changes: 28 additions & 0 deletions sale_order_lot_selection/demo/sale_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="lot_cable_demo" model="stock.lot">
<field name="product_id" ref="stock.product_cable_management_box" />
<field name="name">cbl mng</field>
<field name="company_id" ref="base.main_company" />
</record>

<record id="sale_order_demo" model="sale.order">
<field name="partner_id" ref="base.res_partner_1" />
<field name="user_id" ref="base.user_admin" />
</record>

<record id="sale_order_line_1_demo" model="sale.order.line">
<field name="order_id" ref="sale_order_lot_selection.sale_order_demo" />
<field name="product_id" ref="stock.product_cable_management_box" />
<field name="product_uom_qty">1</field>
<field name="lot_id" ref="sale_order_lot_selection.lot_cable_demo" />
</record>
<record id="sale_order_line_2_demo" model="sale.order.line">
<field name="order_id" ref="sale_order_lot_selection.sale_order_demo" />
<field name="product_id" ref="stock.product_cable_management_box" />
<field name="product_uom_qty">1</field>
<field name="lot_id" ref="sale_order_lot_selection.lot_cable_demo" />
</record>

</odoo>
45 changes: 45 additions & 0 deletions sale_order_lot_selection/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_lot_selection
#
# Translators:
# OCA Transbot <[email protected]>, 2016
# Carles Antoli <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-17 16:49+0000\n"
"PO-Revision-Date: 2021-01-20 12:44+0000\n"
"Last-Translator: Daniel Martinez Vila <[email protected]>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: sale_order_lot_selection
#: model:ir.model.fields,field_description:sale_order_lot_selection.field_sale_order_line__lot_id
msgid "Lot"
msgstr "Lot"

#. module: sale_order_lot_selection
#: model:ir.model,name:sale_order_lot_selection.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de vendes"

#, python-format
#~ msgid "Can't reserve products for lot %s"
#~ msgstr "No es poden reservar productes per al lot %s"

#, python-format
#~ msgid "Can't retrieve lot on stock"
#~ msgstr "No es pot recuperar el lot en estoc"

#~ msgid "Sales Order"
#~ msgstr "Comandes de Venda"

#~ msgid "Stock Move"
#~ msgstr "Moure l'estoc"
45 changes: 45 additions & 0 deletions sale_order_lot_selection/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_lot_selection
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-02-26 09:59+0000\n"
"PO-Revision-Date: 2021-07-09 15:48+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: sale_order_lot_selection
#: model:ir.model.fields,field_description:sale_order_lot_selection.field_sale_order_line__lot_id
msgid "Lot"
msgstr "Charge / Seriennummer"

#. module: sale_order_lot_selection
#: model:ir.model,name:sale_order_lot_selection.model_sale_order_line
msgid "Sales Order Line"
msgstr "Auftragsposition"

#, python-format
#~ msgid "Can't reserve products for lot %s"
#~ msgstr ""
#~ "Es können keine Produkt mit der Charge / Seriennummer %s reserviert "
#~ "werden."

#~ msgid "Sales Order"
#~ msgstr "Verkaufsauftrag"

#~ msgid "Stock Move"
#~ msgstr "Lagerbuchung"

#~ msgid "Procurement Group"
#~ msgstr "Beschaffungsgruppe"
34 changes: 34 additions & 0 deletions sale_order_lot_selection/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_lot_selection
#
# Translators:
# Kostas Goutoudis <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-29 03:03+0000\n"
"PO-Revision-Date: 2016-09-29 03:03+0000\n"
"Last-Translator: Kostas Goutoudis <[email protected]>, 2016\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
"el_GR/)\n"
"Language: el_GR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: sale_order_lot_selection
#: model:ir.model.fields,field_description:sale_order_lot_selection.field_sale_order_line__lot_id
msgid "Lot"
msgstr ""

#. module: sale_order_lot_selection
#: model:ir.model,name:sale_order_lot_selection.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#, fuzzy
#~ msgid "Sales Order"
#~ msgstr "Εντολή Πώλησης"
47 changes: 47 additions & 0 deletions sale_order_lot_selection/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_lot_selection
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2020-07-27 10:19+0000\n"
"Last-Translator: Daniel Martinez Vila <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: sale_order_lot_selection
#: model:ir.model.fields,field_description:sale_order_lot_selection.field_sale_order_line__lot_id
msgid "Lot"
msgstr "Lote"

#. module: sale_order_lot_selection
#: model:ir.model,name:sale_order_lot_selection.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"

#, python-format
#~ msgid "Can't reserve products for lot %s"
#~ msgstr "No puede reservar productos para el lote %s"

#, python-format
#~ msgid "Can't retrieve lot on stock"
#~ msgstr "No se puede obtener el lote en las existencias"

#~ msgid "Sales Order"
#~ msgstr "Órdenes de venta"

#~ msgid "Stock Move"
#~ msgstr "Movimiento de existencia"

#~ msgid "Procurement Group"
#~ msgstr "Grupo de Abastecimiento"
34 changes: 34 additions & 0 deletions sale_order_lot_selection/i18n/es_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_lot_selection
#
# Translators:
# Javi Melendez <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-29 03:03+0000\n"
"PO-Revision-Date: 2016-09-29 03:03+0000\n"
"Last-Translator: Javi Melendez <[email protected]>, 2016\n"
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/"
"es_ES/)\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: sale_order_lot_selection
#: model:ir.model.fields,field_description:sale_order_lot_selection.field_sale_order_line__lot_id
msgid "Lot"
msgstr "Lote"

#. module: sale_order_lot_selection
#: model:ir.model,name:sale_order_lot_selection.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#, fuzzy
#~ msgid "Sales Order"
#~ msgstr "Pedido de venta"
Loading
Loading