Skip to content

[18.0][MIG] purchase_line_procurement_group #2687

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

Open
wants to merge 40 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
063a7a8
[11.0] Add purchase_line_procurement_group
grindtildeath May 18, 2018
4533a01
Switch orderpoints creation
grindtildeath May 22, 2018
4e8e396
Use bigger orderpoints
grindtildeath May 22, 2018
aa49b9d
Revert "Use bigger orderpoints"
grindtildeath May 23, 2018
2730467
Revert "Switch orderpoints creation"
grindtildeath May 23, 2018
4fe74ef
Force parent computation on stock.location to fix the tests
grindtildeath May 23, 2018
189bdaf
[Fix] Use PO line procurement group on generated stock moves
grindtildeath Jul 18, 2018
dab8f08
[Fix] Do not merge destination moves with different procurement groups
grindtildeath Jul 18, 2018
421a4cc
Fix missing return
grindtildeath Jul 18, 2018
fc8a6a9
Add test, bump version, update readme
grindtildeath Jul 18, 2018
4f33aca
[UPD] Update purchase_line_procurement_group.pot
oca-travis Jul 23, 2018
2d5d3c2
[ADD] icon.png
OCA-git-bot Apr 3, 2019
02e4c07
[12.0][MIG] purchase_line_procurement_group
kittiu Apr 9, 2019
31c5e54
[UPD] Update purchase_line_procurement_group.pot
oca-travis May 28, 2019
dd66e40
[UPD] README.rst
OCA-git-bot Jul 29, 2019
a09f5ed
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
df15d0d
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
4486c9e
fixes an error that prevented confirming a PO when a product
JordiBForgeFlow Nov 25, 2019
c3727a7
purchase_line_procurement_group 12.0.1.0.1
OCA-git-bot Nov 26, 2019
bacf69f
Added translation using Weblate (French)
ypapouin Oct 4, 2020
9fab245
Translated using Weblate (French)
ypapouin Oct 4, 2020
e2263fe
[IMP] purchase_line_procurement_group: black, isort, prettier
phuctranfxvn Nov 4, 2020
66eebd0
[MIG] purchase_line_procurement_group: Migration to 13.0
phuctranfxvn Nov 11, 2020
61fee69
[UPD] Update purchase_line_procurement_group.pot
oca-travis Feb 16, 2021
48160ad
[FIX] purchase_line_procurement_group: Fix tests
victoralmau Sep 7, 2021
7a085c2
[MIG] purchase_line_procurement_group: Migration to 14.0
ypapouin Dec 19, 2022
979f576
[FIX] purchase_line_procurement_group: Refactoring after odoo/odoo#41…
ypapouin Mar 8, 2023
9d68bd4
[FIX] purchase_line_procurement_group: Revert invalid test changes
ypapouin Mar 8, 2023
79127c7
[IMP] purchase_line_procurement_group: Rename purchase line file
ypapouin Mar 9, 2023
4171092
[FIX] purchase_line_procurement_group: Also apply filtering with unse…
ypapouin Mar 9, 2023
8d3fa09
[16.0][MIG] purchase_line_procurement_group: Migration to 16.0
lehoangan Mar 15, 2023
67189f4
[UPD] Update purchase_line_procurement_group.pot
Apr 18, 2023
64c259b
Update translation files
weblate Apr 18, 2023
b07d940
[UPD] README.rst
OCA-git-bot Sep 3, 2023
c26f95c
Translated using Weblate (Japanese)
liuhehe1995 Dec 5, 2023
468352e
Translated using Weblate (Italian)
mymage Dec 22, 2023
a783e24
Translated using Weblate (Spanish)
Ivorra78 Feb 11, 2024
5c07e78
[IMP] purchase_line_procurement_group: pre-commit auto fixes
Deriman-Alonso Jul 8, 2024
2d68955
[17.0][MIG] purchase_line_procurement_group: Migration to 17.0
Deriman-Alonso Jul 8, 2024
562c9c5
[18.0][MIG] purchase_line_procurement_group: Migration to 18.0
ypapouin May 20, 2025
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
104 changes: 104 additions & 0 deletions purchase_line_procurement_group/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
===============================
Purchase Line Procurement Group
===============================

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

.. |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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_line_procurement_group
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_line_procurement_group
: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/purchase-workflow&target_branch=18.0
:alt: Try me on Runboat

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

This module changes the way procurements generate purchase order lines.
If some procurements are run for the same products and locations, but
have different procurement groups, these won't be merged in the same
purchase order line and will instead generate a purchase order line per
procurement group.

Moreover this module ensures that generated stock move won't be merged
together if they come from purchase order lines with different
procurement groups.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-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/purchase-workflow/issues/new?body=module:%20purchase_line_procurement_group%0Aversion:%2018.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
-------

* Camptocamp

Contributors
------------

- Akim Juillerat <[email protected]>

- Kitti Upariphutthiphong <[email protected]>

- `Trobz <https://trobz.com>`__:

- Phuc Tran <[email protected]>
- Jack Le <[email protected]>

- `Binhex <https://binhex.cloud/>`__:

- Deriman Alonso

- `DEC <https://decgroupe.com/>`__:

- Yann Papouin <[email protected]>

Other credits
-------------



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.

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/18.0/purchase_line_procurement_group>`_ 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 purchase_line_procurement_group/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
13 changes: 13 additions & 0 deletions purchase_line_procurement_group/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2018 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Purchase Line Procurement Group",
"summary": "Group purchase order line according to procurement group",
"version": "18.0.1.0.0",
"category": "Purchase",
"website": "https://github.com/OCA/purchase-workflow",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["purchase_stock"],
"data": ["views/purchase.xml"],
}
32 changes: 32 additions & 0 deletions purchase_line_procurement_group/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_line_procurement_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-11 19:34+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\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 4.17\n"

#. module: purchase_line_procurement_group
#: model:ir.model.fields,field_description:purchase_line_procurement_group.field_purchase_order_line__procurement_group_id
msgid "Procurement Group"
msgstr "Grupo de Adquisiciones"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Línea de Orden de Compra"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de Existencias"
35 changes: 35 additions & 0 deletions purchase_line_procurement_group/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_line_procurement_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-10-04 16:24+0000\n"
"Last-Translator: Yann Papouin <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\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: purchase_line_procurement_group
#: model:ir.model.fields,field_description:purchase_line_procurement_group.field_purchase_order_line__procurement_group_id
msgid "Procurement Group"
msgstr "Groupe d'approvisionnement"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Ligne de commande d'achat"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_stock_move
msgid "Stock Move"
msgstr "Mouvement de stock"

#~ msgid "Stock Rule"
#~ msgstr "Règle de stock"
32 changes: 32 additions & 0 deletions purchase_line_procurement_group/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_line_procurement_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-22 14:36+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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.17\n"

#. module: purchase_line_procurement_group
#: model:ir.model.fields,field_description:purchase_line_procurement_group.field_purchase_order_line__procurement_group_id
msgid "Procurement Group"
msgstr "Gruppo di approvvigionamento"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Riga ordine di acquisto"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"
32 changes: 32 additions & 0 deletions purchase_line_procurement_group/i18n/ja.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_line_procurement_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-05 11:34+0000\n"
"Last-Translator: \"Ivy Liu (QRTL)\" <[email protected]>\n"
"Language-Team: none\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 4.17\n"

#. module: purchase_line_procurement_group
#: model:ir.model.fields,field_description:purchase_line_procurement_group.field_purchase_order_line__procurement_group_id
msgid "Procurement Group"
msgstr "調達グループ"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "購買明細行"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_stock_move
msgid "Stock Move"
msgstr "在庫移動"
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_line_procurement_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: purchase_line_procurement_group
#: model:ir.model.fields,field_description:purchase_line_procurement_group.field_purchase_order_line__procurement_group_id
msgid "Procurement Group"
msgstr ""

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_stock_move
msgid "Stock Move"
msgstr ""
35 changes: 35 additions & 0 deletions purchase_line_procurement_group/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_line_procurement_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-09-02 14:40+0000\n"
"Last-Translator: 黎伟杰 <[email protected]>\n"
"Language-Team: none\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.8\n"

#. module: purchase_line_procurement_group
#: model:ir.model.fields,field_description:purchase_line_procurement_group.field_purchase_order_line__procurement_group_id
msgid "Procurement Group"
msgstr "补货组"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "采购订单行"

#. module: purchase_line_procurement_group
#: model:ir.model,name:purchase_line_procurement_group.model_stock_move
msgid "Stock Move"
msgstr "库存移动"

#~ msgid "Stock Rule"
#~ msgstr "库存规则"
2 changes: 2 additions & 0 deletions purchase_line_procurement_group/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import purchase_order_line
from . import stock_move
Loading