From 5b0221190b84cccd3bb8e1216cd7b1698c27ba4c Mon Sep 17 00:00:00 2001 From: Vo Minh Bao Hieu Date: Wed, 8 Nov 2017 14:25:04 +0700 Subject: [PATCH] [MIG] purchase_allowed_product: Migration to 11.0 --- purchase_allowed_product/README.rst | 49 +++++++++++++++---- purchase_allowed_product/__init__.py | 1 - purchase_allowed_product/__manifest__.py | 3 +- purchase_allowed_product/models/__init__.py | 1 - .../models/account_invoice.py | 1 - purchase_allowed_product/models/product.py | 1 - .../models/product_supplierinfo.py | 1 - .../models/purchse_order.py | 1 - .../models/res_partner.py | 1 - .../models/supplied_product_mixin.py | 1 - purchase_allowed_product/tests/__init__.py | 1 - .../tests/test_purchase_allowed_product.py | 3 +- 12 files changed, 41 insertions(+), 23 deletions(-) diff --git a/purchase_allowed_product/README.rst b/purchase_allowed_product/README.rst index 3ab1d39e4c2..70d06b6612a 100644 --- a/purchase_allowed_product/README.rst +++ b/purchase_allowed_product/README.rst @@ -1,5 +1,5 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :target: https://www.gnu.org/licenses/agpl :alt: License: AGPL-3 ==================================== @@ -11,38 +11,67 @@ This module adds a restriction in purchase and supplier invoices that has the ma The restriction can be set by default for each partner, and it's propagated to their supplier invoices and purchase, but it can be change for each invoice and purchase if you want. +Installation +============ + +To install this module, you need to: + +* clone the branch 11.0 of the repository https://github.com/OCA/purchase-workflow +* add the path to this repository in your configuration (addons-path) +* update the module list +* search for "Account Invoice Allowed Product" in your addons +* install the module + +Configuration +============= + +No extra configuration needed. + Usage ===== .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/142/8.0 + +Known issues / Roadmap +====================== + + Bug Tracker =========== -Bugs are tracked on GitHub Issues. In case of trouble, please check there -if your issue has already been reported. If you spotted it first, +Bugs are tracked on `GitHub 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. - + Credits ======= - + Contributors ------------ - + * Chafique Delli * Mourad EL HADJ MIMOUNE - +* Hieu, Vo Minh Bao + +Do not contact contributors directly about support or help with technical issues. + +Funders +------- + Maintainer ---------- - + .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org This module is maintained by the OCA. -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. +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. To contribute to this module, please visit https://odoo-community.org. \ No newline at end of file diff --git a/purchase_allowed_product/__init__.py b/purchase_allowed_product/__init__.py index a0fdc10fe11..0650744f6bc 100644 --- a/purchase_allowed_product/__init__.py +++ b/purchase_allowed_product/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- from . import models diff --git a/purchase_allowed_product/__manifest__.py b/purchase_allowed_product/__manifest__.py index c0f24810517..7d66eab914b 100644 --- a/purchase_allowed_product/__manifest__.py +++ b/purchase_allowed_product/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Chafique DELLI @ Akretion # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -6,7 +5,7 @@ 'name': 'Account Invoice Allowed Product', 'summary': 'This module allows to select only products that can be ' 'supplied by the supplier', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Accounting & Finance', 'website': 'https://akretion.com', 'author': 'Akretion, Odoo Community Association (OCA)', diff --git a/purchase_allowed_product/models/__init__.py b/purchase_allowed_product/models/__init__.py index d64e819dc6e..203791a7ee6 100644 --- a/purchase_allowed_product/models/__init__.py +++ b/purchase_allowed_product/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Chafique DELLI @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/models/account_invoice.py b/purchase_allowed_product/models/account_invoice.py index c3de03853ec..3746339e220 100644 --- a/purchase_allowed_product/models/account_invoice.py +++ b/purchase_allowed_product/models/account_invoice.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Chafique DELLI @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/models/product.py b/purchase_allowed_product/models/product.py index 77853d8796e..e46e3ca67e8 100644 --- a/purchase_allowed_product/models/product.py +++ b/purchase_allowed_product/models/product.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/models/product_supplierinfo.py b/purchase_allowed_product/models/product_supplierinfo.py index fbc6e782197..732132bd29f 100644 --- a/purchase_allowed_product/models/product_supplierinfo.py +++ b/purchase_allowed_product/models/product_supplierinfo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/models/purchse_order.py b/purchase_allowed_product/models/purchse_order.py index b196a1f1859..2d4a835117e 100644 --- a/purchase_allowed_product/models/purchse_order.py +++ b/purchase_allowed_product/models/purchse_order.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/models/res_partner.py b/purchase_allowed_product/models/res_partner.py index b76a09dbdc5..1df131a8d92 100644 --- a/purchase_allowed_product/models/res_partner.py +++ b/purchase_allowed_product/models/res_partner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Chafique DELLI @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/models/supplied_product_mixin.py b/purchase_allowed_product/models/supplied_product_mixin.py index 7e59e93bdb2..154fd517446 100644 --- a/purchase_allowed_product/models/supplied_product_mixin.py +++ b/purchase_allowed_product/models/supplied_product_mixin.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/tests/__init__.py b/purchase_allowed_product/tests/__init__.py index c6b03395d53..46c28090618 100644 --- a/purchase_allowed_product/tests/__init__.py +++ b/purchase_allowed_product/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/purchase_allowed_product/tests/test_purchase_allowed_product.py b/purchase_allowed_product/tests/test_purchase_allowed_product.py index fdc760c28de..714ad86a595 100644 --- a/purchase_allowed_product/tests/test_purchase_allowed_product.py +++ b/purchase_allowed_product/tests/test_purchase_allowed_product.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- # © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestPurchaseAllowedProduct(TransactionCase):