Skip to content

Commit

Permalink
[ADD] purchase_allowed_product
Browse files Browse the repository at this point in the history
  • Loading branch information
mourad-ehm authored and pedrobaeza committed Aug 11, 2020
1 parent 87b6f80 commit fe5264a
Show file tree
Hide file tree
Showing 81 changed files with 6,497 additions and 0 deletions.
48 changes: 48 additions & 0 deletions purchase_allowed_product/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

====================================
Purchase and Invoice Allowed Product
====================================

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 this supplier.

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.

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

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,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

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

* Chafique Delli <[email protected]>
* Mourad EL HADJ MIMOUNE <[email protected]>

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.

To contribute to this module, please visit https://odoo-community.org.
2 changes: 2 additions & 0 deletions purchase_allowed_product/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import models
23 changes: 23 additions & 0 deletions purchase_allowed_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- 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).
{
'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',
'category': 'Accounting & Finance',
'website': 'https://akretion.com',
'author': 'Akretion, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'installable': True,
'depends': [
'purchase',
],
'data': [
'views/res_partner_view.xml',
'views/account_invoice_view.xml',
'views/purchase_order_view.xml',
]
}
93 changes: 93 additions & 0 deletions purchase_allowed_product/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# 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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin_display_name
msgid "Display Name"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin_id
msgid "ID"
msgstr "ID"

#. 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_invoice_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_product_supplierinfo
msgid "Information about a product vendor"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_account_invoice
msgid "Invoice"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin___last_update
msgid "Last Modified on"
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_res_partner
msgid "Partner"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_product
msgid "Product"
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.fields,field_description:purchase_allowed_product.field_account_invoice_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,name:purchase_allowed_product.model_supplied_product_mixin
msgid "supplied.product.mixin"
msgstr ""
93 changes: 93 additions & 0 deletions purchase_allowed_product/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# 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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ar\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.fields,field_description:purchase_allowed_product.field_supplied_product_mixin_display_name
msgid "Display Name"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin_id
msgid "ID"
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_invoice_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_product_supplierinfo
msgid "Information about a product vendor"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_account_invoice
msgid "Invoice"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin___last_update
msgid "Last Modified on"
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_res_partner
msgid "Partner"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_product
msgid "Product"
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.fields,field_description:purchase_allowed_product.field_account_invoice_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,name:purchase_allowed_product.model_supplied_product_mixin
msgid "supplied.product.mixin"
msgstr ""
93 changes: 93 additions & 0 deletions purchase_allowed_product/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# 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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin_display_name
msgid "Display Name"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin_id
msgid "ID"
msgstr "ID"

#. 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_invoice_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_product_supplierinfo
msgid "Information about a product vendor"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_account_invoice
msgid "Invoice"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model.fields,field_description:purchase_allowed_product.field_supplied_product_mixin___last_update
msgid "Last Modified on"
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_res_partner
msgid "Partner"
msgstr ""

#. module: purchase_allowed_product
#: model:ir.model,name:purchase_allowed_product.model_product_product
msgid "Product"
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.fields,field_description:purchase_allowed_product.field_account_invoice_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,name:purchase_allowed_product.model_supplied_product_mixin
msgid "supplied.product.mixin"
msgstr ""
Loading

0 comments on commit fe5264a

Please sign in to comment.