Skip to content

Commit b0fd57a

Browse files
author
phucph
committed
[MIG] purchase_compute_order: Migration to 18.0
1 parent 1d749e7 commit b0fd57a

22 files changed

+1065
-537
lines changed

purchase_compute_order/README.rst

Lines changed: 79 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,121 @@
1-
==================================
2-
Discounts in product supplier info
3-
==================================
1+
=======================
2+
Computed Purchase Order
3+
=======================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:adab58f85015fc46b5143e8efc044e3b68b70729c9a67097e13b231ed8c01c1f
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_compute_order-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_compute_order
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_compute_order
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
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
1330

31+
**Provide tools to help a purchaser during the purchase process.**
1432

15-
|badge1| |badge2| |badge3|
33+
- Go to **Purchase > Purchase > Computed Purchase Order**, Create a new
34+
Compute Purchase Order (CPO)
1635

17-
This module helps you to decide what you have to buy.
36+
- Select a Supplier
1837

38+
- Check the boxes to tell if you want to take into account the virtual
39+
stock or the draft sales/purchases.
1940

20-
**Table of contents**
41+
- Use the button 'Get products and stocks' to import the list of
42+
products you can purchase to this supplier (ie: products that have a
43+
product_supplierinfo for this partner). It especially calculates for
44+
each product:
2145

46+
- the quantity you have or will have;
47+
- the average_consumption, based on the stock moves created during
48+
last 365 days;
49+
- the theoretical duration of the stock, based on the precedent
50+
figures.
2251

23-
.. contents::
24-
:local:
52+
- Unlink the products you don't want to buy anymore to this supplier
53+
(this only deletes the product_supplierinfo)
2554

55+
- Add new products you want to buy and link them (this creates a
56+
product_supplierinfo)
2657

27-
Usage
28-
=====
58+
- Modify any information about the products: supplier product_code,
59+
supplier product_name, purchase price, package quantity, purchase UoM.
2960

30-
**Provide tools to help a purchaser during the purchase process.**
61+
- Modify the calculated consumption if you think you'll sell more or
62+
less in the future.
63+
64+
- Add a manual stock quantity (positive if you will receive products
65+
that are not registered at all in Odoo, negative if you have not
66+
registered sales)
67+
68+
- Click the "Update Products" button to register the changes you've made
69+
into the product supplierinfo.
70+
71+
- Check the Purchase Target. It's defined on the Partner form, but you
72+
still can change it on each CPO.
3173

32-
* Go to **Purchase > Purchase > Computed Purchase Order**, Create a new Compute Purchase Order (CPO)
33-
* Select a Supplier
34-
* Check the boxes to tell if you want to take into account the virtual stock or the draft sales/purchases.
35-
* Use the button 'Get products and stocks' to import the list of products you can purchase to this supplier (ie: products that have a product_supplierinfo for this partner). It especially calculates for each product:
36-
* the quantity you have or will have;
37-
* the average_consumption, based on the stock moves created during last 365 days;
38-
* the theoretical duration of the stock, based on the precedent figures.
39-
40-
* Unlink the products you don't want to buy anymore to this supplier (this only deletes the product_supplierinfo)
41-
* Add new products you want to buy and link them (this creates a product_supplierinfo)
42-
* Modify any information about the products: supplier product_code, supplier product_name, purchase price, package quantity, purchase UoM.
43-
* Modify the calculated consumption if you think you'll sell more or less in the future.
44-
* Add a manual stock quantity (positive if you will receive products that are not registered at all in Odoo, negative if you have not registered sales)
45-
* Click the "Update Products" button to register the changes you've made into the product supplierinfo.
46-
* Check the Purchase Target. It's defined on the Partner form, but you still can change it on each CPO.
47-
* Click the button 'Compute Purchase Quantities' to calculate the quantities you should purchase. It will compute a purchase order fitting the purchase objective you set, trying to optimize the stock duration of all products.
48-
* Click the "Make Purchase Order" button to convert the calculation into a real purchase order.
74+
- Click the button 'Compute Purchase Quantities' to calculate the
75+
quantities you should purchase. It will compute a purchase order
76+
fitting the purchase objective you set, trying to optimize the stock
77+
duration of all products.
4978

79+
- Click the "Make Purchase Order" button to convert the calculation into
80+
a real purchase order.
5081

5182
Possible Improvements:
52-
* offer more options to calculate the average consumption;
83+
84+
- offer more options to calculate the average consumption;
85+
86+
**Table of contents**
87+
88+
.. contents::
89+
:local:
5390

5491
Bug Tracker
5592
===========
5693

57-
Bugs are tracked on `GitHub Issues <https://github.com/druidoo/FoodCoops/issues>`_.
94+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
5895
In case of trouble, please check there if your issue has already been reported.
59-
If you spotted it first, help us smashing it by providing a detailed and welcomed
60-
`feedback <https://github.com/druidoo/FoodCoops/issues/new?body=module:%20purchase_compute_order%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
96+
If you spotted it first, help us to smash it by providing a detailed and welcomed
97+
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_compute_order%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6198

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

64101
Credits
65102
=======
66103

67104
Authors
68-
~~~~~~~
105+
-------
69106

107+
* GRAP
70108
* Druidoo
71-
* Julien WESTE
72-
* Sylvain LE GAL
73109

74110
Contributors
75-
~~~~~~~~~~~~
111+
------------
76112

77-
* Druidoo <https://www.druidoo.io>
78-
* Julien WESTE
79-
* Sylvain LE GAL (https://twitter.com/legalsylvain)
113+
- `Trobz <https://www.trobz.com>`__
80114

115+
- Phan Hong Phuc <[email protected]>
81116

82117
Maintainers
83-
~~~~~~~~~~~
118+
-----------
84119

85120
This module is maintained by the OCA.
86121

@@ -92,4 +127,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
92127
mission is to support the collaborative development of Odoo features and
93128
promote its widespread use.
94129

130+
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/18.0/purchase_compute_order>`_ project on GitHub.
131+
95132
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

purchase_compute_order/__manifest__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626

2727
{
2828
"name": "Computed Purchase Order",
29-
"version": "12.0.1.0.2",
29+
"version": "18.0.1.0.1",
3030
"category": "Purchase",
31-
"author": "GRAP, Druidoo",
31+
"author": "GRAP, Druidoo, Odoo Community Association (OCA)",
3232
"website": "https://github.com/OCA/purchase-workflow",
3333
"license": "AGPL-3",
3434
"depends": [
3535
"purchase",
3636
"product_average_consumption",
3737
"purchase_package_qty",
38-
"purchase_discount",
3938
],
4039
"data": [
4140
"security/purchase_compute_order_security.xml",

purchase_compute_order/data/ir_sequence.xml

100755100644
File mode changed.

0 commit comments

Comments
 (0)