Skip to content

Commit 713d28f

Browse files
committed
[MIG] purchase_order_import: mig to 18.0
1 parent 406eed2 commit 713d28f

23 files changed

Lines changed: 1667 additions & 1119 deletions

purchase_order_import/README.rst

Lines changed: 84 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,117 @@
1-
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
2-
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
3-
:alt: License: AGPL-3
4-
51
=====================
62
Purchase Order Import
73
=====================
84

9-
This module adds support for the import of electronic quotations. This module provides the base methods to import electronic quotations ; it requires additional modules to support specific order formats:
10-
11-
* module *purchase_order_import_ubl*: adds support for `Universal Business Language (UBL) <http://ubl.xml.org/>`_ quotations as:
12-
13-
- XML file,
14-
- PDF file with an embedded XML file.
15-
16-
Configuration
17-
=============
18-
19-
No configuration is needed.
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a5595cc16147183af37aa48a164a3b6e1fc7e6d3a0ae314ad2dd970974257310
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20+
:target: https://github.com/OCA/edi/tree/18.0/purchase_order_import
21+
:alt: OCA/edi
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/edi-18-0/edi-18-0-purchase_order_import
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/edi&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module adds support for the import of electronic quotations. This
32+
module provides the base methods to import electronic quotations ; it
33+
requires additional modules to support specific order formats:
34+
35+
- module *purchase_order_import_ubl*: adds support for
36+
``Universal Business Language (UBL) <http://ubl.xml.org/>``\ \_
37+
quotations as:
38+
39+
- XML file,
40+
- PDF file with an embedded XML file.
41+
42+
**Table of contents**
43+
44+
.. contents::
45+
:local:
2046

2147
Usage
2248
=====
2349

24-
This module adds a button *Import Quotation File* on Requests for Quotation. This button starts a wizard that will propose you to select the quotation file. The wizard will also propose you an update option:
50+
This module adds a button *Import Quotation File* on Requests for
51+
Quotation. This button starts a wizard that will propose you to select
52+
the quotation file. The wizard will also propose you an update option:
2553

26-
* only update the prices of the draft purchase order from the quotation file (default option),
27-
* update prices and quantities of the draft purchase order from the quotation file.
54+
- only update the prices of the draft purchase order from the quotation
55+
file (default option),
56+
- update prices and quantities of the draft purchase order from the
57+
quotation file.
2858

2959
When you click on the button *Update RFQ*:
3060

31-
* if Odoo has a line in the quotation file that is not in the draft purchase order, it will create a new purchase order line,
32-
* if Odoo has a line in the draft purchase order that is not in the quotation file, it will write a warning in the chatter of the purchase order (it will not delete the purchase order line),
33-
* for all the lines that are both in the draft purchase order and in the quotation file, the purchase order line will be updated if needed.
34-
* if the incoterm of the quotation file is not the same as the incoterm of the draft purchase order, Odoo will update the incoterm of the purchase order.
35-
* the imported quotation file is attached to the purchase order.
36-
37-
Once the quotation file is imported, you should read the messages in the chatter of the purchase order because it may contain important information about the import.
38-
39-
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
40-
:alt: Try me on Runbot
41-
:target: https://runbot.odoo-community.org/runbot/226/10.0
61+
- if Odoo has a line in the quotation file that is not in the draft
62+
purchase order, it will create a new purchase order line,
63+
- if Odoo has a line in the draft purchase order that is not in the
64+
quotation file, it will write a warning in the chatter of the
65+
purchase order (it will not delete the purchase order line),
66+
- for all the lines that are both in the draft purchase order and in
67+
the quotation file, the purchase order line will be updated if
68+
needed.
69+
- if the incoterm of the quotation file is not the same as the incoterm
70+
of the draft purchase order, Odoo will update the incoterm of the
71+
purchase order.
72+
- the imported quotation file is attached to the purchase order.
73+
74+
Once the quotation file is imported, you should read the messages in the
75+
chatter of the purchase order because it may contain important
76+
information about the import.
4277

4378
Bug Tracker
4479
===========
4580

46-
Bugs are tracked on `GitHub Issues
47-
<https://github.com/OCA/edi/issues>`_. In case of trouble, please
48-
check there if your issue has already been reported. If you spotted it first,
49-
help us smashing it by providing a detailed and welcomed feedback.
81+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
82+
In case of trouble, please check there if your issue has already been reported.
83+
If you spotted it first, help us to smash it by providing a detailed and welcomed
84+
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20purchase_order_import%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
85+
86+
Do not contact contributors directly about support or help with technical issues.
5087

5188
Credits
5289
=======
5390

91+
Authors
92+
-------
93+
94+
* Akretion
95+
5496
Contributors
5597
------------
5698

57-
* Alexis de Lattre <alexis.delattre@akretion.com>
99+
- Alexis de Lattre alexis.delattre@akretion.com
100+
- Silvio Gregorini silvio.gregorini@camptocamp.com
58101

59-
Maintainer
60-
----------
102+
Maintainers
103+
-----------
104+
105+
This module is maintained by the OCA.
61106

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

66-
This module is maintained by the OCA.
67-
68111
OCA, or the Odoo Community Association, is a nonprofit organization whose
69112
mission is to support the collaborative development of Odoo features and
70113
promote its widespread use.
71114

72-
To contribute to this module, please visit https://odoo-community.org.
115+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/18.0/purchase_order_import>`_ project on GitHub.
116+
117+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

purchase_order_import/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
from . import wizard
21
from . import models
2+
from . import wizard

purchase_order_import/__manifest__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,25 @@
33

44
{
55
"name": "Purchase Order Import",
6-
"version": "10.0.2.0.0",
6+
"version": "18.0.1.0.0",
77
"category": "Purchase Management",
88
"license": "AGPL-3",
99
"summary": "Update RFQ via the import of quotations from suppliers",
1010
"author": "Akretion,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/edi",
12-
"depends": ["purchase", "base_business_document_import_stock", "onchange_helper"],
12+
"depends": [
13+
# Odoo
14+
"purchase_stock",
15+
# OCA/community-data-files
16+
"uom_unece",
17+
# OCA/edi
18+
"base_business_document_import",
19+
],
1320
"data": [
14-
"wizard/order_response_import_view.xml",
21+
"security/ir.model.access.csv",
1522
"wizard/purchase_order_import_view.xml",
16-
"views/purchase.xml",
23+
"wizard/purchase_order_response_import_view.xml",
24+
"views/purchase_order.xml",
1725
],
1826
"installable": True,
1927
}

0 commit comments

Comments
 (0)