Skip to content

[18.0] [MIG] purchase_allowed_product: Migration to 18.0 #2684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 52 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
bb8a469
[ADD] purchase_allowed_product
mourad-ehm Mar 28, 2017
df8cb0f
[MIG] purchase_allowed_product: Migration to 11.0
hieulucky111 Nov 8, 2017
8982e9a
[MIG] purchase_allowed_product: Migration to 12.0
Apr 1, 2020
af28385
[MIG] purchase_allowed_product: Refine migration
pedrobaeza Apr 28, 2020
6c700ea
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 12, 2020
ad4e9ab
Translated using Weblate (French)
SandieFavre Aug 28, 2020
c5cbc57
Translated using Weblate (French)
quentinDupont Aug 31, 2020
b873f8f
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 25, 2020
ff2b9c1
Translated using Weblate (Portuguese)
pedrocs-exo Oct 21, 2020
edb7952
[IMP] purchase_allowed_product: black, isort, prettier
Dariosi Nov 16, 2020
8fcf150
[13.0][MIG] purchase_allowed_product: migration to 13.0
Dariosi Nov 16, 2020
a592a8c
Translated using Weblate (Chinese (Simplified))
dong-z Jan 24, 2021
230b108
[MIG] purchase_allowed_product: Migration to 14.0
Jan 10, 2022
317081b
[MIG] purchase_allowed_product: Migration to 14.0
victoralmau Jun 27, 2022
b9dc82a
[UPD] Update purchase_allowed_product.pot
Jul 7, 2022
25ac801
[UPD] README.rst
OCA-git-bot Jul 7, 2022
d42b8ba
Translated using Weblate (French)
klodr Sep 15, 2022
3a2d935
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 3, 2022
01311ad
Translated using Weblate (Italian)
francesco-ooops Nov 16, 2022
669b17d
Translated using Weblate (Italian)
francesco-ooops Nov 17, 2022
cd7bdd2
Translated using Weblate (Italian)
francesco-ooops Dec 2, 2022
1460bd8
[16.0][MIG] purchase_allowed_product: Migration to 16.0
FernandoRomera Dec 19, 2022
4932cc1
[UPD] Update purchase_allowed_product.pot
Dec 30, 2022
b8ee47e
[UPD] README.rst
OCA-git-bot Dec 30, 2022
a4bc9e3
Update translation files
weblate Dec 30, 2022
48b977f
Translated using Weblate (Italian)
francesco-ooops Jan 2, 2023
45df6d9
Translated using Weblate (Croatian)
badbole Jan 3, 2023
caba097
Translated using Weblate (Croatian)
badbole Feb 15, 2023
a612b14
[15.0][FIX]purchase_allowed_product: search product by vendor reference
manuelregidor Mar 8, 2023
3213e72
[16.0][FIX] purchase_allowed_product: cannot find the vendor's products.
Apr 20, 2023
d8319ac
purchase_allowed_product 16.0.2.0.0
OCA-git-bot Apr 20, 2023
80c3ff4
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 10, 2023
632ad17
Translated using Weblate (Spanish)
Ivorra78 Jul 13, 2023
8f93477
Translated using Weblate (Spanish)
Ivorra78 Jul 29, 2023
cc13934
[UPD] README.rst
OCA-git-bot Sep 3, 2023
0789937
Update translation files
weblate Oct 9, 2023
7e57540
[FIX] purchase_allowed_product: use correct field name
JordiMForgeFlow Oct 30, 2023
d23cc80
[UPD] Update purchase_allowed_product.pot
Oct 30, 2023
c127605
[BOT] post-merge updates
OCA-git-bot Oct 30, 2023
c97b94f
Update translation files
weblate Oct 30, 2023
cb171c0
Translated using Weblate (Spanish)
Ivorra78 Nov 3, 2023
a59c7a6
Translated using Weblate (Italian)
francesco-ooops Nov 8, 2023
f2ae2da
[FIX] purchase_allowed_product: Improve UX
Shide Jan 23, 2024
6396b31
[FIX] purchase_allowed_product: Check always visible on Purchase Orders
Shide Jan 24, 2024
fa156d2
[BOT] post-merge updates
OCA-git-bot Jan 24, 2024
b6639da
[IMP] purchase_allowed_product: pre-commit auto fixes
achulii Feb 12, 2024
e25bcf0
[MIG] purchase_allowed_product: Migration to 17.0
achulii Feb 12, 2024
134fbae
[UPD] Update purchase_allowed_product.pot
Dec 30, 2024
c563089
[BOT] post-merge updates
OCA-git-bot Dec 30, 2024
5835455
Update translation files
weblate Dec 30, 2024
b05c8c7
[IMP] purchase_allowed_product: pre-commit auto fixes
May 15, 2025
e3e58f9
[MIG] purchase_allowed_product: Migration to 18.0
May 15, 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
95 changes: 95 additions & 0 deletions purchase_allowed_product/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
====================================
Purchase and Invoice Allowed Product
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:376569ec84ca307bb83baf306b91200c633f7ee20fd6f9feb448155fb174beef
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/18.0/purchase_allowed_product
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_allowed_product
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a restriction in purchase and supplier invoices that
has the mark "Order and invoice only supplied products" checked for
allowing to select only products that can be supplied by the defined
vendor.

The restriction can be set by default for each partner, and it's
propagated to their supplier invoices and purchases, but it can be
changed for each invoice and purchase order if you want.

**Table of contents**

.. contents::
:local:

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

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

* Akretion

Contributors
------------

- Chafique Delli <[email protected]>
- Mourad EL HADJ MIMOUNE <[email protected]>
- Hieu, Vo Minh Bao <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Manuel Calero
- Pedro M. Baeza

- `Via laurea <https://www.vialaurea.com>`__:

- Darius Žižys

- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)

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/18.0/purchase_allowed_product>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions purchase_allowed_product/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions purchase_allowed_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# © 2016 Chafique DELLI @ Akretion
# © 2017 Today Mourad EL HADJ MIMOUNE @ Akretion
# 2020 Manuel Calero - Tecnativa
# 2025 Robrecht Colson - Gumbys
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Purchase and Invoice Allowed Product",
"summary": "This module allows to select only products that can be "
"supplied by the vendor",
"version": "18.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/purchase-workflow",
"author": "Akretion, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["purchase", "base_view_inheritance_extension"],
"data": [
"views/res_partner_views.xml",
"views/account_move_views.xml",
"views/purchase_order_views.xml",
],
"installable": True,
}
90 changes: 90 additions & 0 deletions purchase_allowed_product/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_allowed_product
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-01 02:48+0000\n"
"PO-Revision-Date: 2017-06-01 02:48+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_res_partner
msgid "Contact"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,help:purchase_allowed_product.field_res_partner__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_res_users__use_only_supplied_product
msgid ""
"If checked, by default you will only be able to select products that can be "
"supplied by this supplier when creating a supplier invoice or purchase for "
"it. This value can be changed by invoice or purchase."
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_bank_statement_line__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_move__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_payment__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_purchase_order__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_supplied_product_mixin__use_only_supplied_product
msgid "If checked, only the products provided by this supplier will be shown."
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_supplied_product_mixin
msgid "Mixin for documents that want to restrict products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_res_partner__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_res_users__use_only_supplied_product
msgid "Order and invoice only supplied products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_product
msgid "Product Variant"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_bank_statement_line__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_move__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_payment__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_purchase_order__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin__use_only_supplied_product
msgid "Use only allowed products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_product_supplierinfo__partner_id
msgid "Vendor"
msgstr ""

#~ msgid "ID"
#~ msgstr "ID"
91 changes: 91 additions & 0 deletions purchase_allowed_product/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_allowed_product
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-01 02:48+0000\n"
"PO-Revision-Date: 2017-06-01 02:48+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_res_partner
msgid "Contact"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,help:purchase_allowed_product.field_res_partner__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_res_users__use_only_supplied_product
msgid ""
"If checked, by default you will only be able to select products that can be "
"supplied by this supplier when creating a supplier invoice or purchase for "
"it. This value can be changed by invoice or purchase."
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_bank_statement_line__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_move__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_payment__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_purchase_order__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_supplied_product_mixin__use_only_supplied_product
msgid "If checked, only the products provided by this supplier will be shown."
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_supplied_product_mixin
msgid "Mixin for documents that want to restrict products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_res_partner__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_res_users__use_only_supplied_product
msgid "Order and invoice only supplied products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_product
msgid "Product Variant"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_bank_statement_line__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_move__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_payment__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_purchase_order__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin__use_only_supplied_product
msgid "Use only allowed products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_product_supplierinfo__partner_id
msgid "Vendor"
msgstr ""

#~ msgid "ID"
#~ msgstr "المعرف"
90 changes: 90 additions & 0 deletions purchase_allowed_product/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_allowed_product
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-01 02:48+0000\n"
"PO-Revision-Date: 2017-06-01 02:48+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_res_partner
msgid "Contact"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,help:purchase_allowed_product.field_res_partner__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_res_users__use_only_supplied_product
msgid ""
"If checked, by default you will only be able to select products that can be "
"supplied by this supplier when creating a supplier invoice or purchase for "
"it. This value can be changed by invoice or purchase."
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_bank_statement_line__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_move__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_account_payment__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_purchase_order__use_only_supplied_product
#: model:ir.model.fields,help:purchase_allowed_product.field_supplied_product_mixin__use_only_supplied_product
msgid "If checked, only the products provided by this supplier will be shown."
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_supplied_product_mixin
msgid "Mixin for documents that want to restrict products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_res_partner__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_res_users__use_only_supplied_product
msgid "Order and invoice only supplied products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_product
msgid "Product Variant"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_supplierinfo
msgid "Supplier Pricelist"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_bank_statement_line__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_move__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_account_payment__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_purchase_order__use_only_supplied_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin__use_only_supplied_product
msgid "Use only allowed products"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_product_supplierinfo__partner_id
msgid "Vendor"
msgstr ""

#~ msgid "ID"
#~ msgstr "ID"
Loading