diff --git a/purchase_fop_shipping/README.rst b/purchase_fop_shipping/README.rst new file mode 100644 index 00000000000..0b29c6e09f6 --- /dev/null +++ b/purchase_fop_shipping/README.rst @@ -0,0 +1,79 @@ +.. 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 Free-Of-Payment shipping +================================= + +This module allows to define a Free-Of-Payment (FOP) shipping on supplier. +FOP shipping is a min purchase order amount to got shipping free from supplier. +User can force confirm purchase order if he/she wishes. + +Configuration +============= + +To configure this module, you need to: +Define an amount of FOP shipping for suppliers + +Usage +===== + +#. Go to ... + +.. 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/10.0 + +.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt +.. branch is "8.0" for example + +Known issues / Roadmap +====================== + +* By upgrading the module you could have to re-configure all your FOP minimum amount on suppliers + as this information is now company-related. + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Mourad EL HADJ MIMOUNE +* Dhara Solanki + +Funders +------- + +The development of this module has been financially supported by: + +* Asler Diffusion + +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. diff --git a/purchase_fop_shipping/__init__.py b/purchase_fop_shipping/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/purchase_fop_shipping/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/purchase_fop_shipping/__manifest__.py b/purchase_fop_shipping/__manifest__.py new file mode 100644 index 00000000000..22c0e7f2c42 --- /dev/null +++ b/purchase_fop_shipping/__manifest__.py @@ -0,0 +1,20 @@ +# © 2017 Akretion (http://www.akretion.com) Payment +# @author Mourad EL HADJ MIMOUNE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Purchase Free-Of-Payment shipping", + "version": "18.0.1.0.1", + "author": "Akretion,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/purchase-workflow", + "maintainer": "Akretion", + "license": "AGPL-3", + "category": "Purchase", + "depends": ["purchase"], + "data": [ + "security/res_groups.xml", + "views/purchase_order.xml", + "views/res_partner.xml", + ], + "installable": True, +} diff --git a/purchase_fop_shipping/i18n/de.po b/purchase_fop_shipping/i18n/de.po new file mode 100644 index 00000000000..1fa06c2a927 --- /dev/null +++ b/purchase_fop_shipping/i18n/de.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-03 03:41+0000\n" +"PO-Revision-Date: 2017-03-03 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Bestellauftrag" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/es.po b/purchase_fop_shipping/i18n/es.po new file mode 100644 index 00000000000..dc03ad6d8c0 --- /dev/null +++ b/purchase_fop_shipping/i18n/es.po @@ -0,0 +1,84 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-18 07:33+0000\n" +"PO-Revision-Date: 2023-10-12 16:36+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\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" +"X-Generator: Weblate 4.17\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "Confirmar bajo FOP" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "Contacto" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "FOP alcanzado" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "Envío FOP" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "Gestor de envíos FOP" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "Forzar la confirmación de la orden de compra en envío Gratuito" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "Envío gratuito alcanzado" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "Importe mínimo de pedido para el envío FOP" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "Importe mínimo de pedido para el envío gratuito" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Orden de Compra" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" +"No se puede confirmar una orden de compra con importe por debajo del envío " +"FOP. Para forzar la confirmación debe pertenecer a \"FOP shipping Manager\"." diff --git a/purchase_fop_shipping/i18n/es_PE.po b/purchase_fop_shipping/i18n/es_PE.po new file mode 100644 index 00000000000..96d9434bcab --- /dev/null +++ b/purchase_fop_shipping/i18n/es_PE.po @@ -0,0 +1,88 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# Henry Garcia , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-15 06:42+0000\n" +"PO-Revision-Date: 2017-07-15 06:42+0000\n" +"Last-Translator: Henry Garcia , 2017\n" +"Language-Team: Spanish (Peru) (https://www.transifex.com/oca/teams/23907/" +"es_PE/)\n" +"Language: es_PE\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "Confirmar bajo libre de pago" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "Libre de pago alcanzado" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "Envío libre de pago" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "Forzar la orden de compra bajo el envio de libre de pago" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "Envío libre de pago alcanzado" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "Cantidad mìnima de pedido para envío libre de pago" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "Mínima cantidad de orden de compra para envío libre de pago" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Orden de compra" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" +"No puede confirmar una orden de compra con un importe bajo el envío libre de " +"pago. Para confirmar la confirmación, debe pertenecer a \"Administrar envio " +"Libre de pago\"." + +#~ msgid "Partner" +#~ msgstr "Socio" diff --git a/purchase_fop_shipping/i18n/fr.po b/purchase_fop_shipping/i18n/fr.po new file mode 100644 index 00000000000..87bbf745f47 --- /dev/null +++ b/purchase_fop_shipping/i18n/fr.po @@ -0,0 +1,87 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2017-11-24 07:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "Confirmer sous Franco" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "Franco atteint" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "Franco" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "Forcer la confirmation de la commande sous le franco" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "Franco atteint" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "Franco de commande d'achat" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "Min de commande d'achat pour avoir une livraison gratuite (Franco)" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Bon de commande" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" +"Vous ne pouvez pas confirmer une commande dont le montant est en dessous du " +"Franco. Pour forcer les commande en dessous du franco,vous devez avoir le " +"group \"Franco Manager\"" + +#~ msgid "Partner" +#~ msgstr "Partenaire" diff --git a/purchase_fop_shipping/i18n/fr_BE.po b/purchase_fop_shipping/i18n/fr_BE.po new file mode 100644 index 00000000000..bf93cda6d0d --- /dev/null +++ b/purchase_fop_shipping/i18n/fr_BE.po @@ -0,0 +1,82 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-03 03:48+0000\n" +"PO-Revision-Date: 2018-03-03 03:48+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: French (Belgium) (https://www.transifex.com/oca/teams/23907/" +"fr_BE/)\n" +"Language: fr_BE\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Commande fournisseur" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/gl.po b/purchase_fop_shipping/i18n/gl.po new file mode 100644 index 00000000000..fdc91275a3e --- /dev/null +++ b/purchase_fop_shipping/i18n/gl.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Orde de compra" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/hr.po b/purchase_fop_shipping/i18n/hr.po new file mode 100644 index 00000000000..9967e62ed71 --- /dev/null +++ b/purchase_fop_shipping/i18n/hr.po @@ -0,0 +1,86 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-11 12:53+0000\n" +"PO-Revision-Date: 2017-07-11 12:53+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" + +#~ msgid "Partner" +#~ msgstr "Partner" diff --git a/purchase_fop_shipping/i18n/it.po b/purchase_fop_shipping/i18n/it.po new file mode 100644 index 00000000000..94eef1d3933 --- /dev/null +++ b/purchase_fop_shipping/i18n/it.po @@ -0,0 +1,85 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-18 07:33+0000\n" +"PO-Revision-Date: 2024-01-05 10:37+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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" +"X-Generator: Weblate 4.17\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "Conferma con FOP" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "Contatto" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "FOP raggiunto" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "Spedizione FOP" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "Responsabile spedizione FOP" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "Forza conferma ordine acquisto in spedizione Free-Of-Payment" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "Raggiunta spedizione Free-Of-Payment" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "Importo minimo ordine acquisto per spedizione FOP" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "Importo minimo ordine acquisto per spedizione Free-Of-Payment" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Ordine di acquisto" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" +"Non è possibile confermare un ordine di acquisto con un importo inferiore " +"alla spedizione FOP. Per forzare la conferma bisogna essere un \"Responsabile" +" spedizione FOP\"." diff --git a/purchase_fop_shipping/i18n/nl.po b/purchase_fop_shipping/i18n/nl.po new file mode 100644 index 00000000000..bb168fa2b48 --- /dev/null +++ b/purchase_fop_shipping/i18n/nl.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# Erwin van der Ploeg , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-26 00:58+0000\n" +"PO-Revision-Date: 2017-04-26 00:58+0000\n" +"Last-Translator: Erwin van der Ploeg , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/nl_NL.po b/purchase_fop_shipping/i18n/nl_NL.po new file mode 100644 index 00000000000..b14eb87f9db --- /dev/null +++ b/purchase_fop_shipping/i18n/nl_NL.po @@ -0,0 +1,85 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-22 02:44+0000\n" +"PO-Revision-Date: 2017-06-22 02:44+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Inkooporder" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" + +#~ msgid "Partner" +#~ msgstr "Partner" diff --git a/purchase_fop_shipping/i18n/pt_BR.po b/purchase_fop_shipping/i18n/pt_BR.po new file mode 100644 index 00000000000..fee2c5ac57d --- /dev/null +++ b/purchase_fop_shipping/i18n/pt_BR.po @@ -0,0 +1,86 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-24 07:53+0000\n" +"PO-Revision-Date: 2024-05-29 18:37+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" +"Language: pt_BR\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" +"X-Generator: Weblate 4.17\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "Confirme sob FOP" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "Contato" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "FOP alcançado" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "FOP enviado" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "Gerente de remessa FOP" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "Forçar a confirmação do pedido de compra sob frete grátis" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "Envio sem pagamento alcançado" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "Valor mínimo do pedido de compra para remessa FOP" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "Valor mínimo do pedido de compra para remessa sem pagamento" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de Compra" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" +"Você não pode confirmar um pedido de compra com valor sob frete FOP. Para " +"forçar a confirmação você deve pertencer ao \"FOP Shipping Manager\"." diff --git a/purchase_fop_shipping/i18n/purchase_fop_shipping.pot b/purchase_fop_shipping/i18n/purchase_fop_shipping.pot new file mode 100644 index 00000000000..984d68cf8c1 --- /dev/null +++ b/purchase_fop_shipping/i18n/purchase_fop_shipping.pot @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force" +" confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/ro.po b/purchase_fop_shipping/i18n/ro.po new file mode 100644 index 00000000000..32f99e178d8 --- /dev/null +++ b/purchase_fop_shipping/i18n/ro.po @@ -0,0 +1,82 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Comandă achiziție" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/sl.po b/purchase_fop_shipping/i18n/sl.po new file mode 100644 index 00000000000..242ee45d15f --- /dev/null +++ b/purchase_fop_shipping/i18n/sl.po @@ -0,0 +1,82 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-18 07:33+0000\n" +"PO-Revision-Date: 2017-05-18 07:33+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Nabavni nalog" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/i18n/vi_VN.po b/purchase_fop_shipping/i18n/vi_VN.po new file mode 100644 index 00000000000..58189b33fab --- /dev/null +++ b/purchase_fop_shipping/i18n/vi_VN.po @@ -0,0 +1,82 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_fop_shipping +# +# Translators: +# OCA Transbot , 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 , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Confirm under FOP" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_res_partner +msgid "Contact" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "FOP reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_purchase_order__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,field_description:purchase_fop_shipping.field_res_users__fop_shipping +msgid "FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:res.groups,name:purchase_fop_shipping.group_fop_shipping_purchase_manager +msgid "FOP shipping Manager" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__force_order_under_fop +msgid "Force confirm purchase order under Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_reached +msgid "Free-Of-Payment shipping reached" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_partner__fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_res_users__fop_shipping +msgid "Min purchase order amount for FOP shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model.fields,help:purchase_fop_shipping.field_purchase_order__fop_shipping +msgid "Min purchase order amount for Free-Of-Payment shipping" +msgstr "" + +#. module: purchase_fop_shipping +#: model:ir.model,name:purchase_fop_shipping.model_purchase_order +msgid "Purchase Order" +msgstr "Đơn hàng Mua" + +#. module: purchase_fop_shipping +#. odoo-python +#: code:addons/purchase_fop_shipping/models/purchase.py:0 +#, python-format +msgid "" +"You cannot confirm a purchase order with amount under FOP shipping. To force " +"confirm you must belongs to \"FOP shipping Manager\"." +msgstr "" diff --git a/purchase_fop_shipping/models/__init__.py b/purchase_fop_shipping/models/__init__.py new file mode 100644 index 00000000000..bb1e2e8be0c --- /dev/null +++ b/purchase_fop_shipping/models/__init__.py @@ -0,0 +1,2 @@ +from . import partner +from . import purchase diff --git a/purchase_fop_shipping/models/partner.py b/purchase_fop_shipping/models/partner.py new file mode 100644 index 00000000000..54f12154554 --- /dev/null +++ b/purchase_fop_shipping/models/partner.py @@ -0,0 +1,17 @@ +# © 2014-2016 Akretion (http://www.akretion.com) +# @author Mourad EL HADJ MIMOUNE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + + +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + fop_shipping = fields.Float( + string="FOP shipping", + help="Min purchase order amount for FOP shipping", + company_dependent=True, + digits="Account", + ) diff --git a/purchase_fop_shipping/models/purchase.py b/purchase_fop_shipping/models/purchase.py new file mode 100644 index 00000000000..87ab0a35ff6 --- /dev/null +++ b/purchase_fop_shipping/models/purchase.py @@ -0,0 +1,66 @@ +# Copyright 2017 Akretion (http://www.akretion.com) +# @author Mourad EL HADJ MIMOUNE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import _, api, fields, models +from odoo.exceptions import UserError +from odoo.tools import float_compare + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + fop_reached = fields.Boolean( + string="FOP reached", + help="Free-Of-Payment shipping reached", + compute="_compute_fop_shipping_reached", + ) + force_order_under_fop = fields.Boolean( + string="Confirm under FOP", + help="Force confirm purchase order under Free-Of-Payment shipping", + ) + fop_shipping = fields.Float( + string="FOP shipping", + related="partner_id.fop_shipping", + related_sudo=False, + readonly=True, + help="Min purchase order amount for Free-Of-Payment shipping", + ) + + @api.depends( + "amount_total", + "partner_id.fop_shipping", + ) + def _compute_fop_shipping_reached(self): + digit_precision = self.env["decimal.precision"].precision_get("Account") + for record in self: + if ( + float_compare(record.amount_total, 0, precision_digits=digit_precision) + < 0 + ): + record.fop_reached = True + continue + record.fop_reached = ( + float_compare( + record.amount_total, + record.partner_id.fop_shipping, + precision_digits=digit_precision, + ) + >= 0 + ) + + def button_approve(self, force=False): + self._check_fop_shipping() + result = super().button_approve(force=force) + return result + + def _check_fop_shipping(self): + for po in self: + if not po.force_order_under_fop and not po.fop_reached: + raise UserError( + _( + "You cannot confirm a purchase order with amount under " + 'FOP shipping. To force confirm you must belongs to "FOP' + ' shipping Manager".' + ) + ) diff --git a/purchase_fop_shipping/pyproject.toml b/purchase_fop_shipping/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/purchase_fop_shipping/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/purchase_fop_shipping/security/res_groups.xml b/purchase_fop_shipping/security/res_groups.xml new file mode 100644 index 00000000000..057e9e7bdb9 --- /dev/null +++ b/purchase_fop_shipping/security/res_groups.xml @@ -0,0 +1,8 @@ + + + + FOP shipping Manager + + + + diff --git a/purchase_fop_shipping/static/description/icon.png b/purchase_fop_shipping/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/purchase_fop_shipping/static/description/icon.png differ diff --git a/purchase_fop_shipping/tests/__init__.py b/purchase_fop_shipping/tests/__init__.py new file mode 100644 index 00000000000..dbcde39c549 --- /dev/null +++ b/purchase_fop_shipping/tests/__init__.py @@ -0,0 +1 @@ +from . import test_fop_shipping diff --git a/purchase_fop_shipping/tests/test_fop_shipping.py b/purchase_fop_shipping/tests/test_fop_shipping.py new file mode 100644 index 00000000000..eb230c9b095 --- /dev/null +++ b/purchase_fop_shipping/tests/test_fop_shipping.py @@ -0,0 +1,87 @@ +# © 2017 Akretion (http://www.akretion.com) +# @author Mourad EL HADJ MIMOUNE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields +from odoo.exceptions import UserError +from odoo.tests import tagged +from odoo.tests.common import TransactionCase + + +@tagged("post_install", "-at_install") +class TestPurchaseOrder(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.Product = cls.env["product.product"] + cls.Purchase = cls.env["purchase.order"] + cls.PurchaseLine = cls.env["purchase.order.line"] + + cls.product_1 = cls.Product.create({"name": "Product", "type": "consu"}) + + cls.partner_3 = cls.env.ref("base.res_partner_3") + cls.partner_3.fop_shipping = 250 + + def test_fop_shipping_reached1(self): + po = self.Purchase.create({"partner_id": self.partner_3.id}) + self.PurchaseLine.create( + { + "order_id": po.id, + "product_id": self.product_1.id, + "date_planned": fields.Datetime.now(), + "name": "Test", + "product_qty": 1.0, + "product_uom": self.product_1.uom_id.id, + "price_unit": 100.0, + } + ) + + self.assertFalse(po.fop_reached) + + with self.assertRaises(UserError) as e, self.env.cr.savepoint(): + po.button_approve() + self.assertTrue( + "You cannot confirm a purchase order with amount under " + "FOP shipping" in e.exception.args[0] + ) + + po.force_order_under_fop = True + po.button_approve() + self.assertEqual(po.state, "purchase") + + def test_fop_shipping_reached2(self): + po = self.Purchase.create({"partner_id": self.partner_3.id}) + self.PurchaseLine.create( + { + "order_id": po.id, + "product_id": self.product_1.id, + "date_planned": fields.Datetime.now(), + "name": "Test", + "product_qty": 10, + "product_uom": self.product_1.uom_id.id, + "price_unit": 45, + } + ) + + self.assertTrue(po.fop_reached) + po.button_approve() + self.assertEqual(po.state, "purchase") + + def test_fop_shipping_negative(self): + po = self.Purchase.create({"partner_id": self.partner_3.id}) + self.PurchaseLine.create( + { + "order_id": po.id, + "product_id": self.product_1.id, + "date_planned": fields.Datetime.now(), + "name": "Test", + "product_qty": 1.0, + "product_uom": self.product_1.uom_id.id, + "price_unit": -100.0, + } + ) + + self.assertTrue(po.fop_reached) + + po.button_approve() + self.assertEqual(po.state, "purchase") diff --git a/purchase_fop_shipping/views/purchase_order.xml b/purchase_fop_shipping/views/purchase_order.xml new file mode 100644 index 00000000000..c2214486e48 --- /dev/null +++ b/purchase_fop_shipping/views/purchase_order.xml @@ -0,0 +1,66 @@ + + + + purchase.order + list + + + + fop_reached == False + + + + + + + + + purchase.order + list + + + + fop_reached == False + + + + + + + + + purchase.order + list + + + + fop_reached == False + + + + + + + + purchase.order + + form + + + + + + + + + + diff --git a/purchase_fop_shipping/views/res_partner.xml b/purchase_fop_shipping/views/res_partner.xml new file mode 100644 index 00000000000..e84ca2d76f6 --- /dev/null +++ b/purchase_fop_shipping/views/res_partner.xml @@ -0,0 +1,16 @@ + + + + res.partner + form + + + + + + + +