Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c738e3a
[MIG] Migration to 12.0: purchase_package_qty
Sep 18, 2019
98e38fe
[MIG]Migrated code to v12 compatible
Sep 20, 2019
5148122
[FIX]Fixed issues faced in Travis
Sep 20, 2019
6ecb7ad
[ADD]Added README.rst
Sep 20, 2019
09499f4
[FIX]Fixed issues faced in Travis
Sep 20, 2019
3b638a9
[IMP]Set Base price field required in xml
Sep 20, 2019
8a20ffa
[FIX]Fixed bug in _get_supplierinfovals method, Improved _compute_pri…
Sep 26, 2019
dd1ae8c
[MIG] Migration to 12.0: purchase_compute_order
Sep 23, 2019
0bb9c9c
[UPD] Update purchase_package_qty.pot
druidoo-transbot Jan 27, 2020
cda4a64
Update __manifest__.py
Feb 5, 2020
2c3f8cc
[IMP] purchase_package_qty : test case
ajayjaviya Feb 22, 2020
faaab2f
[FIX] LINT
ajayjaviya Feb 22, 2020
affc21e
[FIX] purchase_package_qty: test case
ajayjaviya Feb 22, 2020
44e8335
[FIX] LINT
ajayjaviya Feb 22, 2020
ed0fce9
[IMP] Added hasclass instead of @class in stock inventory report xml
krunal267 Feb 24, 2020
732951c
[UPD] Update purchase_package_qty.pot
druidoo-transbot Mar 3, 2020
5c0d505
[IMP] Removed deprecated compute() method of res_currency, used _conv…
krunal267 Mar 5, 2020
4aca93b
[UPD] Update purchase_package_qty.pot
druidoo-transbot Mar 5, 2020
6a2ed05
Added move line functinality
chetanrdhaduk Mar 5, 2020
74e3df4
[UPD] Update purchase_package_qty.pot
druidoo-transbot Mar 5, 2020
d7bc037
[ADD]Added purchase_operation_adjust (#109)
chetanrdhaduk Apr 6, 2020
bbeb827
[UPD] Update purchase_package_qty.pot
druidoo-transbot Apr 6, 2020
d72a7c9
[FIX] Log warnings (#123)
ajayjaviya Apr 16, 2020
b029eda
Fix code - suggested by Kruanl. (#154)
chetanrdhaduk May 12, 2020
5837f76
[FIX] Bug when package_qty is 0
ivantodorovich Jun 11, 2020
3a9fcd2
Translated using Weblate (French)
msdruidoo Jul 1, 2020
9f82215
[FIX] Creation of po lines if added in picking
ivantodorovich Jul 3, 2020
a29596e
[UPD] F#42235 - package data
nguyenminhchien Dec 17, 2020
42f185c
[ADD] update package qty base on product qty
nguyenminhchien Dec 17, 2020
cec4bae
[FIX] F#42343 - Discounts not calculated in orders
nguyenminhchien Dec 22, 2020
84b73ce
[REF] S#26273 order the coloumns
nguyenminhchien May 28, 2021
1608aa4
[REF] F#43924 - Hide useless column in order reception
nguyenminhchien Jun 17, 2021
8d3624a
[FIX] F#T61764 - Correct Package Quanity in Inventory Adjustments
nguyenminhchien Oct 10, 2023
d9cb43b
[IMP] purchase_package_qty: pre-commit auto fixes
Oct 29, 2025
06e056d
[MIG] purchase_package_qty: Migration to 18.0
Oct 30, 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
92 changes: 92 additions & 0 deletions purchase_package_qty/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
==================================
Discounts in product supplier info
==================================

.. |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_package_qty-lightgray.png?logo=github
:target: https://github.com/druidoo/FoodCoops/tree/12.0

|badge1| |badge2| |badge3|

This module allows to input a Package quantity in the supplier info form, and propagate
it to purchase order lines:

* The package quantity appears in purchase orders lines.

**Table of contents**

.. contents::
:local:

Installation
============

This module requires **purchase_discount** module.


Usage
=====

Go to **Purchase > Products**, open one product, and edit or add a record on
the **Vendors** section of the **Purchase** tab. You will see in the prices
section in the down part a new column called **Package Qty**. You can enter
here the seller's Package Quantity.

You can assign the Price Policy too. It's per UOM or per Package.

Based on Price policy the amount will be calculated.
* If you choose per UOM then it will be the default calculation.
* If you choose per Package then it will consider the quantity of **Number of Packages** column

**Package Qty** and **Number of Packages** columns will be forwarded to Incoming shipment when you confirm the PO.
Same way **Package Qty**, **Number of Packages** and **Price Policy** will be forwarded to Vendor bills when you Create an invoice from PO.

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

Bugs are tracked on `GitHub Issues <https://github.com/druidoo/FoodCoops/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/druidoo/FoodCoops/issues/new?body=module:%20purchase_package_qty%0Aversion:%2011.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
~~~~~~~

* Druidoo
* Julien WESTE
* Sylvain LE GAL

Contributors
~~~~~~~~~~~~

* Druidoo <https://www.druidoo.io>
* Julien WESTE
* Sylvain LE GAL (https://twitter.com/legalsylvain)


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/11.0/product_supplierinfo_discount>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
26 changes: 26 additions & 0 deletions purchase_package_qty/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
##############################################################################
#
# Purchase - Package Quantity Module for Odoo
# Copyright (C) 2019-Today: La Louve (<https://cooplalouve.fr>)
# Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>)
# Copyright (C) 2016-Today Akretion (https://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# @author Julien WESTE
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import models
47 changes: 47 additions & 0 deletions purchase_package_qty/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
##############################################################################
#
# Purchase - Package Quantity Module for Odoo
# Copyright (C) 2019-Today: La Louve (<https://cooplalouve.fr>)
# Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>)
# Copyright (C) 2016-Today Akretion (https://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
# @author Julien WESTE
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

{
"name": "Purchase - Package Quantity",
"version": "18.0.1.0.0",
"category": "Purchase",
"author": "GRAP, Druidoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"license": "AGPL-3",
"depends": [
"account",
"product",
"purchase_stock",
],
"data": [
"views/product_supplierinfo_view.xml",
"views/purchase_order_view.xml",
"views/stock_picking_view.xml",
"views/account_invoice_view.xml",
"views/report_stockinventory.xml",
"views/report_invoice.xml",
"data/function.xml",
],
}
23 changes: 23 additions & 0 deletions purchase_package_qty/data/function.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- ********************************************************************** -->
<!--Purchase - Package Quantity Module for Odoo -->
<!--Copyright (C) 2019-Today: La Louve (<https://cooplalouve.fr>) -->
<!--Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>) -->
<!--Copyright (C) 2016-Today Akretion (https://www.akretion.com) -->
<!--License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<!--@author Julien Weste -->
<!--@author Sylvain LE GAL (https://twitter.com/legalsylvain) -->
<!--This program is free software: you can redistribute it and/or modify -->
<!--it under the terms of the GNU Affero General Public License as -->
<!--published by the Free Software Foundation, either version 3 of the -->
<!--License, or (at your option) any later version. -->
<!--This program is distributed in the hope that it will be useful, -->
<!--but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!--GNU Affero General Public License for more details. -->
<!--You should have received a copy of the GNU Affero General Public License-->
<!--along with this program. If not, see <http://www.gnu.org/licenses/>. -->
<!-- ********************************************************************** -->
<odoo>
<function model="product.supplierinfo" name="_init_package_qty" />
</odoo>
Loading
Loading