diff --git a/sale_force_invoiced/README.rst b/sale_force_invoiced/README.rst new file mode 100644 index 00000000000..e5765c99fe1 --- /dev/null +++ b/sale_force_invoiced/README.rst @@ -0,0 +1,95 @@ +=================== +Sale Force Invoiced +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/15.0/sale_force_invoiced + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_force_invoiced + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/167/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the possibility for users to force the invoice status of the +sales orders to 'Invoiced', even when not all the quantities ordered or +delivered have been invoiced. + +This feature useful in the following scenario: + +* The customer disputes the quantities to be invoiced for, after the + products have been delivered to her/him, and you agree to reduce the + quantity to invoice (without sending a refund). + +* When migrating from a previous Odoo version, in some cases there is less + quantity invoiced to what was delivered, and you don't want these old sales + orders to appear in your 'To Invoice' list. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. Create a sales order and confirm it. +#. Deliver the products/services. +#. Create an invoice and reduce the invoiced quantity. The sales order + invoicing status is 'To Invoice'. +#. Check the field 'Force Invoiced'. The sales order invoicing status will be + 'Invoiced'. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ForgeFlow + +Contributors +~~~~~~~~~~~~ + +* Jordi Ballester + +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/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_force_invoiced/__init__.py b/sale_force_invoiced/__init__.py new file mode 100644 index 00000000000..33345644c62 --- /dev/null +++ b/sale_force_invoiced/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import model diff --git a/sale_force_invoiced/__manifest__.py b/sale_force_invoiced/__manifest__.py new file mode 100644 index 00000000000..b736e0701c3 --- /dev/null +++ b/sale_force_invoiced/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2017 ForgeFlow S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "Sale Force Invoiced", + "summary": "Allows to force the invoice status of the sales order to Invoiced", + "version": "16.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "category": "sale", + "license": "AGPL-3", + "website": "https://github.com/OCA/sale-workflow", + "depends": ["sale"], + "data": ["view/sale_order.xml"], + "installable": True, +} diff --git a/sale_force_invoiced/i18n/ca.po b/sale_force_invoiced/i18n/ca.po new file mode 100644 index 00000000000..5ce7011e774 --- /dev/null +++ b/sale_force_invoiced/i18n/ca.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2020-11-06 13:08+0000\n" +"Last-Translator: brendapaniagua \n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\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 3.10\n" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "Forçar facturat" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +msgid "Sales Order" +msgstr "Comanda de venda" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" +"Quan configureu aquest camp, la comanda de venda es considerarà totalment " +"facturada, fins i tot quan es puguin demanar o lliurar quantitats pendents " +"de facturar." diff --git a/sale_force_invoiced/i18n/de.po b/sale_force_invoiced/i18n/de.po new file mode 100644 index 00000000000..87964ffd7ac --- /dev/null +++ b/sale_force_invoiced/i18n/de.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2019-07-15 13:43+0000\n" +"Last-Translator: Maria Sparenberg \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" +"X-Generator: Weblate 3.7.1\n" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "als abgerechnet markieren" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Verkaufsauftrag" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" +"Wenn der Haken gesetzt ist, wird der Verkaufsauftrag als vollständig " +"abgerechnet interpretiert, auch wenn es noch abzurechende Mengen geben " +"sollte." diff --git a/sale_force_invoiced/i18n/el_GR.po b/sale_force_invoiced/i18n/el_GR.po new file mode 100644 index 00000000000..bff00fd9f00 --- /dev/null +++ b/sale_force_invoiced/i18n/el_GR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# Kostas Goutoudis , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: Kostas Goutoudis , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Εντολή Πώλησης" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/es.po b/sale_force_invoiced/i18n/es.po new file mode 100644 index 00000000000..f55abb6fc22 --- /dev/null +++ b/sale_force_invoiced/i18n/es.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2022-05-23 09:01+0000\n" +"Last-Translator: Pedro M. Baeza \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.3.2\n" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "Forzar a facturado" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +msgid "Sales Order" +msgstr "Pedido de venta" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" +"Cuando establezca este campo, el pedido de cliente se considerará como " +"totalmente facturado, incluso cuando pueda haber cantidades pedidas o " +"entregadas pendientes de facturar." diff --git a/sale_force_invoiced/i18n/es_ES.po b/sale_force_invoiced/i18n/es_ES.po new file mode 100644 index 00000000000..f6c5884c4aa --- /dev/null +++ b/sale_force_invoiced/i18n/es_ES.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" +"es_ES/)\n" +"Language: es_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" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Pedido de venta" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/es_VE.po b/sale_force_invoiced/i18n/es_VE.po new file mode 100644 index 00000000000..133cac90489 --- /dev/null +++ b/sale_force_invoiced/i18n/es_VE.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/" +"teams/23907/es_VE/)\n" +"Language: es_VE\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Pedidos de venta" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/fi.po b/sale_force_invoiced/i18n/fi.po new file mode 100644 index 00000000000..cb5ba829de3 --- /dev/null +++ b/sale_force_invoiced/i18n/fi.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Myyntitilaus" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/fr.po b/sale_force_invoiced/i18n/fr.po new file mode 100644 index 00000000000..0f4881d4e29 --- /dev/null +++ b/sale_force_invoiced/i18n/fr.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2021-05-14 18:47+0000\n" +"Last-Translator: Yves Le Doeuff \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" +"X-Generator: Weblate 4.3.2\n" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "Facturation forcée" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +msgid "Sales Order" +msgstr "Bon de commande" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" +"Lorsque vous définissez ce champ, la commande client sera considérée comme " +"entièrement facturée, même s'il reste des quantités commandées ou livrées à " +"facturer." diff --git a/sale_force_invoiced/i18n/hr.po b/sale_force_invoiced/i18n/hr.po new file mode 100644 index 00000000000..45f1ca7100b --- /dev/null +++ b/sale_force_invoiced/i18n/hr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Prodajni nalog" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/hr_HR.po b/sale_force_invoiced/i18n/hr_HR.po new file mode 100644 index 00000000000..d47c7b49a1f --- /dev/null +++ b/sale_force_invoiced/i18n/hr_HR.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Prodjani nalog" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/hu.po b/sale_force_invoiced/i18n/hu.po new file mode 100644 index 00000000000..989abab7939 --- /dev/null +++ b/sale_force_invoiced/i18n/hu.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"Language: hu\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Vevői megrendelés" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/it.po b/sale_force_invoiced/i18n/it.po new file mode 100644 index 00000000000..05a19caa846 --- /dev/null +++ b/sale_force_invoiced/i18n/it.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\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" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Ordini vendita" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/nl.po b/sale_force_invoiced/i18n/nl.po new file mode 100644 index 00000000000..4a796b5af1e --- /dev/null +++ b/sale_force_invoiced/i18n/nl.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Verkooporder" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/nl_NL.po b/sale_force_invoiced/i18n/nl_NL.po new file mode 100644 index 00000000000..b13ab59f147 --- /dev/null +++ b/sale_force_invoiced/i18n/nl_NL.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:28+0000\n" +"PO-Revision-Date: 2017-08-29 03:28+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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Verkooporder" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/pt.po b/sale_force_invoiced/i18n/pt.po new file mode 100644 index 00000000000..3867800c38e --- /dev/null +++ b/sale_force_invoiced/i18n/pt.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# Pedro Castro Silva , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-28 01:48+0000\n" +"PO-Revision-Date: 2018-02-28 01:48+0000\n" +"Last-Translator: Pedro Castro Silva , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "Forçar Faturada" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Encomenda de Venda" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" +"Quando assinala este campo, a encomenda de venda será considerada como " +"completamente faturada mesmo que haja quantidades encomendadas ou entregues " +"pendentes para faturar." diff --git a/sale_force_invoiced/i18n/pt_BR.po b/sale_force_invoiced/i18n/pt_BR.po new file mode 100644 index 00000000000..b2702ae33cb --- /dev/null +++ b/sale_force_invoiced/i18n/pt_BR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\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" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Pedido de Venda" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/ro.po b/sale_force_invoiced/i18n/ro.po new file mode 100644 index 00000000000..a4da4595778 --- /dev/null +++ b/sale_force_invoiced/i18n/ro.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# Dorin Hongu , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: Dorin Hongu , 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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Comandă vânzare" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/sale_force_invoiced.pot b/sale_force_invoiced/i18n/sale_force_invoiced.pot new file mode 100644 index 00000000000..f44e9a577cf --- /dev/null +++ b/sale_force_invoiced/i18n/sale_force_invoiced.pot @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force Invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/sk.po b/sale_force_invoiced/i18n/sk.po new file mode 100644 index 00000000000..fb8282ab2d2 --- /dev/null +++ b/sale_force_invoiced/i18n/sk.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-27 03:52+0000\n" +"PO-Revision-Date: 2018-01-27 03:52+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\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>=2 && n<=4) ? 1 : 2;\n" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Objednávka predaja" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/sl.po b/sale_force_invoiced/i18n/sl.po new file mode 100644 index 00000000000..088c226299d --- /dev/null +++ b/sale_force_invoiced/i18n/sl.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Prodajni nalog" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/tr.po b/sale_force_invoiced/i18n/tr.po new file mode 100644 index 00000000000..1711a7d4cf7 --- /dev/null +++ b/sale_force_invoiced/i18n/tr.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Sipariş Emri" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/tr_TR.po b/sale_force_invoiced/i18n/tr_TR.po new file mode 100644 index 00000000000..cacf6788d18 --- /dev/null +++ b/sale_force_invoiced/i18n/tr_TR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Satış emri" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/vi_VN.po b/sale_force_invoiced/i18n/vi_VN.po new file mode 100644 index 00000000000..6cdd0efb638 --- /dev/null +++ b/sale_force_invoiced/i18n/vi_VN.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2017-05-31 04:21+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: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Đơn hàng Bán" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" diff --git a/sale_force_invoiced/i18n/zh_CN.po b/sale_force_invoiced/i18n/zh_CN.po new file mode 100644 index 00000000000..b8c222d2de6 --- /dev/null +++ b/sale_force_invoiced/i18n/zh_CN.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_force_invoiced +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-31 04:21+0000\n" +"PO-Revision-Date: 2019-09-01 09:03+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\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" +"X-Generator: Weblate 3.8\n" + +#. module: sale_force_invoiced +#: model:ir.model.fields,field_description:sale_force_invoiced.field_sale_order__force_invoiced +msgid "Force invoiced" +msgstr "强制开具发票" + +#. module: sale_force_invoiced +#: model:ir.model,name:sale_force_invoiced.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "销售订单" + +#. module: sale_force_invoiced +#: model:ir.model.fields,help:sale_force_invoiced.field_sale_order__force_invoiced +msgid "" +"When you set this field, the sales order will be considered as fully " +"invoiced, even when there may be ordered or delivered quantities pending to " +"invoice." +msgstr "" +"设置此字段时,即使订单或已交付的数量等待发票,销售订单也将被视为完全开票。" diff --git a/sale_force_invoiced/model/__init__.py b/sale_force_invoiced/model/__init__.py new file mode 100644 index 00000000000..b1ad204bdec --- /dev/null +++ b/sale_force_invoiced/model/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import sale_order diff --git a/sale_force_invoiced/model/sale_order.py b/sale_force_invoiced/model/sale_order.py new file mode 100644 index 00000000000..c3ce8262f79 --- /dev/null +++ b/sale_force_invoiced/model/sale_order.py @@ -0,0 +1,26 @@ +# Copyright 2017 ForgeFlow S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + force_invoiced = fields.Boolean( + help="When you set this field, the sales order will be considered as " + "fully invoiced, even when there may be ordered or delivered " + "quantities pending to invoice.", + readonly=True, + states={"done": [("readonly", False)], "sale": [("readonly", False)]}, + tracking=20, + copy=False, + ) + + @api.depends("force_invoiced") + def _compute_invoice_status(self): + res = super()._compute_invoice_status() + self.filtered( + lambda so: so.force_invoiced and so.state in ("sale", "done") + ).update({"invoice_status": "invoiced"}) + return res diff --git a/sale_force_invoiced/readme/CONTRIBUTORS.rst b/sale_force_invoiced/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..047e4ee7302 --- /dev/null +++ b/sale_force_invoiced/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Jordi Ballester diff --git a/sale_force_invoiced/readme/DESCRIPTION.rst b/sale_force_invoiced/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..11bc388e3c5 --- /dev/null +++ b/sale_force_invoiced/readme/DESCRIPTION.rst @@ -0,0 +1,13 @@ +This module adds the possibility for users to force the invoice status of the +sales orders to 'Invoiced', even when not all the quantities ordered or +delivered have been invoiced. + +This feature useful in the following scenario: + +* The customer disputes the quantities to be invoiced for, after the + products have been delivered to her/him, and you agree to reduce the + quantity to invoice (without sending a refund). + +* When migrating from a previous Odoo version, in some cases there is less + quantity invoiced to what was delivered, and you don't want these old sales + orders to appear in your 'To Invoice' list. diff --git a/sale_force_invoiced/readme/USAGE.rst b/sale_force_invoiced/readme/USAGE.rst new file mode 100644 index 00000000000..c54e5d7f0ac --- /dev/null +++ b/sale_force_invoiced/readme/USAGE.rst @@ -0,0 +1,6 @@ +#. Create a sales order and confirm it. +#. Deliver the products/services. +#. Create an invoice and reduce the invoiced quantity. The sales order + invoicing status is 'To Invoice'. +#. Check the field 'Force Invoiced'. The sales order invoicing status will be + 'Invoiced'. diff --git a/sale_force_invoiced/static/description/icon.png b/sale_force_invoiced/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_force_invoiced/static/description/icon.png differ diff --git a/sale_force_invoiced/static/description/index.html b/sale_force_invoiced/static/description/index.html new file mode 100644 index 00000000000..6e6a8d182a2 --- /dev/null +++ b/sale_force_invoiced/static/description/index.html @@ -0,0 +1,442 @@ + + + + + + +Sale Force Invoiced + + + +
+

Sale Force Invoiced

+ + +

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runbot

+

This module adds the possibility for users to force the invoice status of the +sales orders to ‘Invoiced’, even when not all the quantities ordered or +delivered have been invoiced.

+

This feature useful in the following scenario:

+
    +
  • The customer disputes the quantities to be invoiced for, after the +products have been delivered to her/him, and you agree to reduce the +quantity to invoice (without sending a refund).
  • +
  • When migrating from a previous Odoo version, in some cases there is less +quantity invoiced to what was delivered, and you don’t want these old sales +orders to appear in your ‘To Invoice’ list.
  • +
+

Table of contents

+ +
+

Usage

+
    +
  1. Create a sales order and confirm it.
  2. +
  3. Deliver the products/services.
  4. +
  5. Create an invoice and reduce the invoiced quantity. The sales order +invoicing status is ‘To Invoice’.
  6. +
  7. Check the field ‘Force Invoiced’. The sales order invoicing status will be +‘Invoiced’.
  8. +
+
+
+

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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/sale-workflow project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/sale_force_invoiced/tests/__init__.py b/sale_force_invoiced/tests/__init__.py new file mode 100644 index 00000000000..b654660277e --- /dev/null +++ b/sale_force_invoiced/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import test_sale_force_invoiced diff --git a/sale_force_invoiced/tests/test_sale_force_invoiced.py b/sale_force_invoiced/tests/test_sale_force_invoiced.py new file mode 100644 index 00000000000..5f198495b8c --- /dev/null +++ b/sale_force_invoiced/tests/test_sale_force_invoiced.py @@ -0,0 +1,81 @@ +# Copyright 2017 ForgeFlow S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class TestSaleForceInvoiced(TransactionCase): + def setUp(self): + super(TestSaleForceInvoiced, self).setUp() + self.sale_order_model = self.env["sale.order"] + self.sale_order_line_model = self.env["sale.order.line"] + + # Data + product_ctg = self._create_product_category() + self.service_1 = self._create_product("test_product1", product_ctg) + self.service_2 = self._create_product("test_product2", product_ctg) + self.customer = self._create_customer("Test Customer") + + def _create_customer(self, name): + """Create a Partner.""" + return self.env["res.partner"].create( + {"name": name, "email": "example@yourcompany.com", "phone": 123456} + ) + + def _create_product_category(self): + product_ctg = self.env["product.category"].create({"name": "test_product_ctg"}) + return product_ctg + + def _create_product(self, name, product_ctg): + product = self.env["product.product"].create( + { + "name": name, + "categ_id": product_ctg.id, + "type": "service", + "invoice_policy": "order", + } + ) + return product + + def test_sales_order(self): + so = self.sale_order_model.create({"partner_id": self.customer.id}) + sol1 = self.sale_order_line_model.create( + {"product_id": self.service_1.id, "product_uom_qty": 1, "order_id": so.id} + ) + sol2 = self.sale_order_line_model.create( + {"product_id": self.service_2.id, "product_uom_qty": 2, "order_id": so.id} + ) + + # confirm quotation + so.action_confirm() + # update quantities delivered + sol1.qty_delivered = 1 + sol2.qty_delivered = 2 + + self.assertEqual( + so.invoice_status, "to invoice", "The invoice status should be To Invoice" + ) + + so._create_invoices() + self.assertEqual( + so.invoice_status, "invoiced", "The invoice status should be Invoiced" + ) + + # Reduce the invoiced qty + for line in sol2.invoice_lines.with_context(check_move_validity=False): + line.quantity = 1 + + self.assertEqual( + so.invoice_status, "to invoice", "The invoice status should be To Invoice" + ) + + so.action_done() + so.force_invoiced = True + self.assertEqual( + so.invoice_status, "invoiced", "The invoice status should be Invoiced" + ) + + so.force_invoiced = False + self.assertEqual( + so.invoice_status, "to invoice", "The invoice status should be To Invoice" + ) diff --git a/sale_force_invoiced/view/sale_order.xml b/sale_force_invoiced/view/sale_order.xml new file mode 100644 index 00000000000..cc87d025a36 --- /dev/null +++ b/sale_force_invoiced/view/sale_order.xml @@ -0,0 +1,18 @@ + + + + sale.order.form + sale.order + + + + + + + + diff --git a/setup/sale_force_invoiced/odoo/addons/sale_force_invoiced b/setup/sale_force_invoiced/odoo/addons/sale_force_invoiced new file mode 120000 index 00000000000..ebdbad1ebfb --- /dev/null +++ b/setup/sale_force_invoiced/odoo/addons/sale_force_invoiced @@ -0,0 +1 @@ +../../../../sale_force_invoiced \ No newline at end of file diff --git a/setup/sale_force_invoiced/setup.py b/setup/sale_force_invoiced/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/sale_force_invoiced/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)