Skip to content

Commit e969bcf

Browse files
phucphnguyenminhchien
authored andcommitted
[MIG] purchase_package_qty: Migration to 18.0
1 parent d9cb43b commit e969bcf

30 files changed

+1515
-1188
lines changed

purchase_package_qty/README.rst

Lines changed: 65 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,113 @@
1-
==================================
2-
Discounts in product supplier info
3-
==================================
1+
===========================
2+
Purchase - Package Quantity
3+
===========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:15ee25b2032d0b38dc5f7c365c444ed6beabd7c6a7f75c2c81b86938f2a30540
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
412
513
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
614
:target: https://odoo-community.org/page/development-status
715
:alt: Beta
816
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
917
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1018
:alt: License: AGPL-3
11-
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase_package_qty-lightgray.png?logo=github
12-
:target: https://github.com/druidoo/FoodCoops/tree/12.0
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github
20+
:target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_package_qty
21+
:alt: OCA/purchase-workflow
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_package_qty
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=18.0
27+
:alt: Try me on Runboat
1328

14-
|badge1| |badge2| |badge3|
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
1530

16-
This module allows to input a Package quantity in the supplier info form, and propagate
17-
it to purchase order lines:
31+
This module allows to input a Package quantity in the supplier info
32+
form, and propagate it to purchase order lines:
1833

19-
* The package quantity appears in purchase orders lines.
34+
- The package quantity appears in purchase orders lines.
2035

2136
**Table of contents**
2237

2338
.. contents::
2439
:local:
2540

26-
Installation
27-
============
41+
Configuration
42+
=============
2843

29-
This module requires **purchase_discount** module.
44+
- Go to Purchase → Products → Products.
45+
- Open a product (e.g., TERRA SANA 125G).
46+
- Click on the tab ``Inventory``
47+
- Add the packaging:
3048

49+
|1_product_packaging|
50+
51+
.. |1_product_packaging| image:: https://raw.githubusercontent.com/OCA/purchase-workflow/18.0/purchase_package_qty/static/img/1_product_packaging.png
3152

3253
Usage
3354
=====
3455

35-
Go to **Purchase > Products**, open one product, and edit or add a record on
36-
the **Vendors** section of the **Purchase** tab. You will see in the prices
37-
section in the down part a new column called **Package Qty**. You can enter
38-
here the seller's Package Quantity.
56+
Go to **Purchase > Products**, open one product, and edit or add a
57+
record on the **Vendors** section of the **Purchase** tab. You will see
58+
in the prices section in the down part a new column called
59+
**Packaging**. You can enter here the seller's Packaging.
60+
61+
|2_product_supplierinfo|
3962

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

42-
Based on Price policy the amount will be calculated.
43-
* If you choose per UOM then it will be the default calculation.
44-
* If you choose per Package then it will consider the quantity of **Number of Packages** column
65+
Based on Price policy the amount will be calculated. \* If you choose
66+
per UOM then it will be the default calculation. \* If you choose per
67+
Package then it will consider the quantity of **Packaging Quantity**
68+
column
69+
70+
|3_purchase_order|
71+
72+
**Packaging** and **Packaging Quantity** columns will be forwarded to
73+
Incoming shipment when you confirm the PO. Same way **Packaging**,
74+
**Packaging Quantity** and **Price Policy** will be forwarded to Vendor
75+
bills when you Create an invoice from PO.
4576

46-
**Package Qty** and **Number of Packages** columns will be forwarded to Incoming shipment when you confirm the PO.
47-
Same way **Package Qty**, **Number of Packages** and **Price Policy** will be forwarded to Vendor bills when you Create an invoice from PO.
77+
.. |2_product_supplierinfo| image:: https://raw.githubusercontent.com/OCA/purchase-workflow/18.0/purchase_package_qty/static/img/2_product_supplierinfo.png
78+
.. |3_purchase_order| image:: https://raw.githubusercontent.com/OCA/purchase-workflow/18.0/purchase_package_qty/static/img/3_purchase_order.png
4879

4980
Bug Tracker
5081
===========
5182

52-
Bugs are tracked on `GitHub Issues <https://github.com/druidoo/FoodCoops/issues>`_.
83+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
5384
In case of trouble, please check there if your issue has already been reported.
54-
If you spotted it first, help us smashing it by providing a detailed and welcomed
55-
`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**>`_.
85+
If you spotted it first, help us to smash it by providing a detailed and welcomed
86+
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_package_qty%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5687

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

5990
Credits
6091
=======
6192

6293
Authors
63-
~~~~~~~
94+
-------
6495

96+
* GRAP
6597
* Druidoo
66-
* Julien WESTE
67-
* Sylvain LE GAL
6898

6999
Contributors
70-
~~~~~~~~~~~~
100+
------------
71101

72-
* Druidoo <https://www.druidoo.io>
73-
* Julien WESTE
74-
* Sylvain LE GAL (https://twitter.com/legalsylvain)
102+
- GRAP
103+
- Druidoo
104+
- [Trobz] (https://trobz.com/):
75105

106+
- Phan Hong Phuc <[email protected]>
107+
- Nguyễn Minh Chiến <[email protected]>
76108

77109
Maintainers
78-
~~~~~~~~~~~
110+
-----------
79111

80112
This module is maintained by the OCA.
81113

@@ -87,6 +119,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
87119
mission is to support the collaborative development of Odoo features and
88120
promote its widespread use.
89121

90-
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/11.0/product_supplierinfo_discount>`_ project on GitHub.
122+
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/18.0/purchase_package_qty>`_ project on GitHub.
91123

92124
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

purchase_package_qty/__manifest__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,21 @@
2525

2626
{
2727
"name": "Purchase - Package Quantity",
28-
"version": "12.0.1.0.0",
28+
"version": "18.0.1.0.0",
2929
"category": "Purchase",
30-
"author": "GRAP, Druidoo",
30+
"author": "GRAP, Druidoo, Odoo Community Association (OCA)",
3131
"website": "https://github.com/OCA/purchase-workflow",
3232
"license": "AGPL-3",
3333
"depends": [
3434
"account",
3535
"product",
36-
"purchase_discount",
36+
"purchase_stock",
3737
],
3838
"data": [
3939
"views/product_supplierinfo_view.xml",
4040
"views/purchase_order_view.xml",
4141
"views/stock_picking_view.xml",
4242
"views/account_invoice_view.xml",
43-
"views/report_stockinventory.xml",
44-
"views/stock_inventory_view.xml",
4543
"views/report_invoice.xml",
4644
"data/function.xml",
4745
],

0 commit comments

Comments
 (0)