diff --git a/account_invoice_start_end_dates/README.rst b/account_invoice_start_end_dates/README.rst new file mode 100644 index 00000000000..6415d290991 --- /dev/null +++ b/account_invoice_start_end_dates/README.rst @@ -0,0 +1,90 @@ +=============================== +Account Invoice Start End Dates +=============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Faccount--closing-lightgray.png?logo=github + :target: https://github.com/OCA/account-closing/tree/15.0/account_invoice_start_end_dates + :alt: OCA/account-closing +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-closing-15-0/account-closing-15-0-account_invoice_start_end_dates + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/89/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the fields *Start Date* and *End Date* on invoice/move lines. + +It also adds an option *Must Have Start/End Dates* on the product form (in the *Accounting* tab) ; if you enable this option, you will get an error message if you try to post an invoice/move that constains such a product on one of its lines and doesn't have start/end dates on that line. + +If you use this module, you may also be interested in several other modules: + +* the module *sale_start_end_dates* from the `sale-workflow OCA project `_: this module adds the fields *Start Date* and *End Date* on sale order lines and copies the information from sale order lines to invoice/move lines. + +* the modules *account_cutoff_prepaid* and *account_cutoff_accrual_dates* in the `account-closing OCA projct `_: these modules allow easy computation of prepaid expenses, prepaid revenues, accrued expense and accrued revenue using start/end dates. + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Jeroen Evens + +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. + +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +This module is part of the `OCA/account-closing `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_invoice_start_end_dates/__init__.py b/account_invoice_start_end_dates/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/account_invoice_start_end_dates/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_invoice_start_end_dates/__manifest__.py b/account_invoice_start_end_dates/__manifest__.py new file mode 100644 index 00000000000..5606f215586 --- /dev/null +++ b/account_invoice_start_end_dates/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2016-2021 Akretion France (http://www.akretion.com/) +# Copyright 2018-2021 Camptocamp +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Invoice Start End Dates", + "version": "16.0.1.0.0", + "category": "Accounting & Finance", + "license": "AGPL-3", + "summary": "Adds start/end dates on invoice/move lines", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/account-closing", + "depends": ["account"], + "data": ["views/account_move.xml", "views/product_template.xml"], + "demo": ["demo/product_demo.xml"], + "installable": True, +} diff --git a/account_invoice_start_end_dates/demo/product_demo.xml b/account_invoice_start_end_dates/demo/product_demo.xml new file mode 100644 index 00000000000..71d1b849670 --- /dev/null +++ b/account_invoice_start_end_dates/demo/product_demo.xml @@ -0,0 +1,26 @@ + + + + + Car Insurance + CARINSUR + service + + + + + + + Maintenance contract + MAINTENANCE + service + + + + + + diff --git a/account_invoice_start_end_dates/i18n/account_invoice_start_end_dates.pot b/account_invoice_start_end_dates/i18n/account_invoice_start_end_dates.pot new file mode 100644 index 00000000000..c12efc983a4 --- /dev/null +++ b/account_invoice_start_end_dates/i18n/account_invoice_start_end_dates.pot @@ -0,0 +1,103 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +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: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice/move lines that have this product." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has" +" the property 'Must Have Start/End Dates'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "" +"Start Date ({start_date}) should be before End Date ({end_date}) for move " +"line with Name '{name}'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "" diff --git a/account_invoice_start_end_dates/i18n/fr.po b/account_invoice_start_end_dates/i18n/fr.po new file mode 100644 index 00000000000..53f2ccee120 --- /dev/null +++ b/account_invoice_start_end_dates/i18n/fr.po @@ -0,0 +1,136 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +# Translators: +# Quentin THEURET , 2018 +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-27 03:39+0000\n" +"PO-Revision-Date: 2022-07-04 15:05+0000\n" +"Last-Translator: Grégory Moka Tourisme \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: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Assurance voiture" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Date de fin" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Si cette option est activée, l'utilisateur aura à entrer une date de " +"démarrage et une date de fin sur les lignes de facture qui ont ce produit." + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entries" +msgstr "Écritures comptables" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "Écritures comptables" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "Contrat de maintenance" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "Date de fin manquante pour les écritures avec le nom '%s'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has " +"the property 'Must Have Start and End Dates'." +msgstr "" +"Date de début et de fin manquantes pour les lignes de facture avec le " +"produit '%s' qui ont la propriété 'Doit avoir des dates de début et de fin'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "Date de début manquante pour les écritures avec le nom '%s'." + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start and End Dates" +msgstr "Doit avoir des dates de début et de fin" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "Modèle de produit" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "Date de début" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" +"La date de début doit être antérieure à la date de fin pour les écritures " +"avec le nom '%s'." + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "Unité(s)" + +#~ msgid "Invoice" +#~ msgstr "Facture" + +#~ msgid "Invoice Line" +#~ msgstr "Ligne de facture" + +#~ msgid "Missing End Date for invoice line with Description '%s'." +#~ msgstr "" +#~ "Date de fin manquante pour les lignes de facture avec la description '%s'." + +#~ msgid "Missing Start Date for invoice line with Description '%s'." +#~ msgstr "" +#~ "Date de début manquante pour les lignes de facture avec la description " +#~ "'%s'." + +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for invoice line " +#~ "with Description '%s'." +#~ msgstr "" +#~ "La date de début doit être antérieure ou la même que la date de fin pour " +#~ "les lignes de facture avec la description '%s'." diff --git a/account_invoice_start_end_dates/i18n/fr_FR.po b/account_invoice_start_end_dates/i18n/fr_FR.po new file mode 100644 index 00000000000..fc640f2f57a --- /dev/null +++ b/account_invoice_start_end_dates/i18n/fr_FR.po @@ -0,0 +1,131 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-04-10 15:46+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: none\n" +"Language: fr_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: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Assurance voiture" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move__display_name +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__display_name +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__display_name +msgid "Display Name" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Date de fin" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move__id +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__id +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__id +msgid "ID" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice/move lines that have this product." +msgstr "" +"Si cette option est activée, l'utilisateur aura à entrer une date de " +"démarrage et une date de fin sur les lignes de facture qui ont ce produit." + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entry" +msgstr "Ecriture comptable" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "Écritures comptables" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move____last_update +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line____last_update +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template____last_update +msgid "Last Modified on" +msgstr "Dernière modification" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "Contrat de maintenance" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "Date de fin manquante pour les écritures avec le nom '%s'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has" +" the property 'Must Have Start/End Dates'." +msgstr "" +"Date de début et date de fin manquantes pour la ligne de facture avec le " +"produit '%s' qui a la propriété 'Must Have Start/End Dates'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "Date de début manquante pour les écritures avec le nom '%s'." + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "Les dates de début et de fin doivent être indiquées" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "Modèle de produit" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "Date de début" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" +"La date de début doit être antérieure à la date de fin pour les écritures " +"avec le nom '%s'." + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "Unités" diff --git a/account_invoice_start_end_dates/i18n/hr.po b/account_invoice_start_end_dates/i18n/hr.po new file mode 100644 index 00000000000..51555a01402 --- /dev/null +++ b/account_invoice_start_end_dates/i18n/hr.po @@ -0,0 +1,114 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-30 22:21+0000\n" +"PO-Revision-Date: 2017-06-30 22:21+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: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Osiguranje automobila" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Završni datum" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +#, fuzzy +msgid "Journal Entries" +msgstr "Stavka dnevnika" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "Stavka dnevnika" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "Ugovor o održavanju" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has " +"the property 'Must Have Start and End Dates'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start and End Dates" +msgstr "Mora imati početni i završni datum" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "Predložak proizvoda" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "Početni datum" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Račun" + +#~ msgid "Invoice Line" +#~ msgstr "Stavka računa" diff --git a/account_invoice_start_end_dates/i18n/hr_HR.po b/account_invoice_start_end_dates/i18n/hr_HR.po new file mode 100644 index 00000000000..df55d3220ce --- /dev/null +++ b/account_invoice_start_end_dates/i18n/hr_HR.po @@ -0,0 +1,112 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +# 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-04-29 10:40+0000\n" +"PO-Revision-Date: 2017-04-29 10:40+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: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Osiguranje vozila" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Datum završetka" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entries" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has " +"the property 'Must Have Start and End Dates'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start and End Dates" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Račun" diff --git a/account_invoice_start_end_dates/i18n/it.po b/account_invoice_start_end_dates/i18n/it.po new file mode 100644 index 00000000000..c5f21b6a68a --- /dev/null +++ b/account_invoice_start_end_dates/i18n/it.po @@ -0,0 +1,116 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +# Translators: +# Stefano , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-15 23:09+0000\n" +"PO-Revision-Date: 2021-12-03 12:36+0000\n" +"Last-Translator: Samuele Mariani \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.3.2\n" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Assicurazione auto" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Data Fine" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Se questa opzione è attiva, l'utente dovrà inserire data inizio e data fine " +"nelle righe fattura che contengono questo prodotto." + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entries" +msgstr "Scritture Contabili" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "Movimento contabile" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "Contratto di manutenzione" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "Data fine mancante per il movimento contabile con nome '%s'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has " +"the property 'Must Have Start and End Dates'." +msgstr "" +"Data inizio e data fine mancanti per la riga fattura con prodotto '%s' che " +"la proprietà 'Deve avere date inizio e fine'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "Data inizio mancante per il movimento contabile con nome '%s'." + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start and End Dates" +msgstr "Deve avere date inizio e fine" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "Modello Prodotto" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "Data Inizio" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" +"Data inizio dovrebbe essere prima di data fine per il movimento contabile " +"con nome '%s'." + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "Unità" + +#~ msgid "Invoice" +#~ msgstr "Fattura" diff --git a/account_invoice_start_end_dates/i18n/nl_NL.po b/account_invoice_start_end_dates/i18n/nl_NL.po new file mode 100644 index 00000000000..898b4ccde52 --- /dev/null +++ b/account_invoice_start_end_dates/i18n/nl_NL.po @@ -0,0 +1,113 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-19 22:06+0000\n" +"PO-Revision-Date: 2017-05-19 22:06+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: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Autoverzekering" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Einddatum" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entries" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "Onderhoudscontract" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has " +"the property 'Must Have Start and End Dates'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start and End Dates" +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "Productsjabloon" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "Startdatum" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "" + +#~ msgid "Invoice" +#~ msgstr "Factuur" + +#~ msgid "Invoice Line" +#~ msgstr "Factuurregel" diff --git a/account_invoice_start_end_dates/i18n/pt.po b/account_invoice_start_end_dates/i18n/pt.po new file mode 100644 index 00000000000..2a9045c89ee --- /dev/null +++ b/account_invoice_start_end_dates/i18n/pt.po @@ -0,0 +1,133 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_start_end_dates +# +# Translators: +# Pedro Castro Silva , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-23 23:20+0000\n" +"PO-Revision-Date: 2021-07-02 22:50+0000\n" +"Last-Translator: Pedro Castro Silva \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" +"X-Generator: Weblate 4.3.2\n" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +msgid "Car Insurance" +msgstr "Seguro automóvel" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__end_date +msgid "End Date" +msgstr "Data Final" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,help:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Se esta opção está ativa, o utilizador terá que introduzir uma data inicial " +"e final nas linhas da fatura que contenham este produto." + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move +msgid "Journal Entries" +msgstr "Itens de Diário" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_account_move_line +msgid "Journal Item" +msgstr "Item de Diário" + +#. module: account_invoice_start_end_dates +#: model:product.product,name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Maintenance contract" +msgstr "Contrato de manutenção" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing End Date for move line with Name '%s'." +msgstr "Falta de data de fim para a linha de diário com o Nome '%s'." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move.py:0 +#, python-format +msgid "" +"Missing Start Date and End Date for invoice line with Product '%s' which has " +"the property 'Must Have Start and End Dates'." +msgstr "" +"Falta de data de inicio e de fim para a linha da fatura com a Descrição '%s' " +"que tem a propriedade 'Deve ter data de início e fim' ativada." + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Missing Start Date for move line with Name '%s'." +msgstr "Falta de data de início para a linha de diário com o Nome '%s'." + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_product__must_have_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_product_template__must_have_dates +msgid "Must Have Start and End Dates" +msgstr "Deve ter data de início e fim" + +#. module: account_invoice_start_end_dates +#: model:ir.model,name:account_invoice_start_end_dates.model_product_template +msgid "Product Template" +msgstr "Modelo de Produto" + +#. module: account_invoice_start_end_dates +#: model:ir.model.fields,field_description:account_invoice_start_end_dates.field_account_move_line__start_date +msgid "Start Date" +msgstr "Data de Início" + +#. module: account_invoice_start_end_dates +#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:0 +#, python-format +msgid "Start Date should be before End Date for move line with Name '%s'." +msgstr "" +"Data de início deve ser anterior a da data de fim para a linha de diário com " +"o Nome '%s'." + +#. module: account_invoice_start_end_dates +#: model:product.product,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo +#: model:product.product,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo +#: model:product.template,uom_name:account_invoice_start_end_dates.product_insurance_contract_demo_product_template +#: model:product.template,uom_name:account_invoice_start_end_dates.product_maintenance_contract_demo_product_template +msgid "Units" +msgstr "Unidades" + +#~ msgid "Invoice" +#~ msgstr "Fatura" + +#~ msgid "Invoice Line" +#~ msgstr "Linha de Fatura" + +#~ msgid "Missing End Date for invoice line with Description '%s'." +#~ msgstr "Falta de data de fim para a linha da fatura com a Descrição '%s'." + +#~ msgid "Missing Start Date for invoice line with Description '%s'." +#~ msgstr "" +#~ "Falta de data de início para a linha de fatura com a Descrição '%s'." + +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for invoice line " +#~ "with Description '%s'." +#~ msgstr "" +#~ "Data de início deve ser anterior a da data de fim para a linha de fatura " +#~ "com a Descrição '%s'." diff --git a/account_invoice_start_end_dates/models/__init__.py b/account_invoice_start_end_dates/models/__init__.py new file mode 100644 index 00000000000..45b5c099d77 --- /dev/null +++ b/account_invoice_start_end_dates/models/__init__.py @@ -0,0 +1,3 @@ +from . import product_template +from . import account_move +from . import account_move_line diff --git a/account_invoice_start_end_dates/models/account_move.py b/account_invoice_start_end_dates/models/account_move.py new file mode 100644 index 00000000000..bbf4fdfa049 --- /dev/null +++ b/account_invoice_start_end_dates/models/account_move.py @@ -0,0 +1,28 @@ +# Copyright 2019-2021 Akretion France (https://akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import _, models +from odoo.exceptions import UserError + + +class AccountMove(models.Model): + _inherit = "account.move" + + def _post(self, soft=True): + for move in self: + for line in move.line_ids: + if ( + line.product_id + and line.product_id.must_have_dates + and (not line.start_date or not line.end_date) + ): + raise UserError( + _( + "Missing Start Date and End Date for invoice " + "line with Product '%s' which has the " + "property 'Must Have Start/End Dates'." + ) + % (line.product_id.display_name) + ) + return super()._post(soft=soft) diff --git a/account_invoice_start_end_dates/models/account_move_line.py b/account_invoice_start_end_dates/models/account_move_line.py new file mode 100644 index 00000000000..c79b4884db7 --- /dev/null +++ b/account_invoice_start_end_dates/models/account_move_line.py @@ -0,0 +1,44 @@ +# Copyright 2013-2021 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError +from odoo.tools.misc import format_date + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + start_date = fields.Date(index=True) + end_date = fields.Date(index=True) + must_have_dates = fields.Boolean(related="product_id.must_have_dates") + + @api.constrains("start_date", "end_date") + def _check_start_end_dates(self): + for moveline in self: + if moveline.start_date and not moveline.end_date: + raise ValidationError( + _("Missing End Date for move line with Name '%s'.") + % (moveline.name) + ) + if moveline.end_date and not moveline.start_date: + raise ValidationError( + _("Missing Start Date for move line with Name '%s'.") + % (moveline.name) + ) + if ( + moveline.end_date + and moveline.start_date + and moveline.start_date > moveline.end_date + ): + raise ValidationError( + _( + "Start Date ({start_date}) should be before End Date " + "({end_date}) for move line with Name '{name}'." + ).format( + start_date=format_date(self.env, moveline.start_date), + end_date=format_date(self.env, moveline.end_date), + name=moveline.name, + ) + ) diff --git a/account_invoice_start_end_dates/models/product_template.py b/account_invoice_start_end_dates/models/product_template.py new file mode 100644 index 00000000000..2d32dc86bd8 --- /dev/null +++ b/account_invoice_start_end_dates/models/product_template.py @@ -0,0 +1,16 @@ +# Copyright 2013-2021 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + must_have_dates = fields.Boolean( + string="Must Have Start/End Dates", + help="If this option is active, the user will have to enter " + "a Start Date and an End Date on the invoice/move lines that have " + "this product.", + ) diff --git a/account_invoice_start_end_dates/readme/CONTRIBUTORS.rst b/account_invoice_start_end_dates/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..551dbe6c590 --- /dev/null +++ b/account_invoice_start_end_dates/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Alexis de Lattre +* Jeroen Evens diff --git a/account_invoice_start_end_dates/readme/DESCRIPTION.rst b/account_invoice_start_end_dates/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..b44e9874c52 --- /dev/null +++ b/account_invoice_start_end_dates/readme/DESCRIPTION.rst @@ -0,0 +1,9 @@ +This module adds the fields *Start Date* and *End Date* on invoice/move lines. + +It also adds an option *Must Have Start/End Dates* on the product form (in the *Accounting* tab) ; if you enable this option, you will get an error message if you try to post an invoice/move that constains such a product on one of its lines and doesn't have start/end dates on that line. + +If you use this module, you may also be interested in several other modules: + +* the module *sale_start_end_dates* from the `sale-workflow OCA project `_: this module adds the fields *Start Date* and *End Date* on sale order lines and copies the information from sale order lines to invoice/move lines. + +* the modules *account_cutoff_prepaid* and *account_cutoff_accrual_dates* in the `account-closing OCA projct `_: these modules allow easy computation of prepaid expenses, prepaid revenues, accrued expense and accrued revenue using start/end dates. diff --git a/account_invoice_start_end_dates/static/description/icon.png b/account_invoice_start_end_dates/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/account_invoice_start_end_dates/static/description/icon.png differ diff --git a/account_invoice_start_end_dates/static/description/index.html b/account_invoice_start_end_dates/static/description/index.html new file mode 100644 index 00000000000..295d17459e5 --- /dev/null +++ b/account_invoice_start_end_dates/static/description/index.html @@ -0,0 +1,428 @@ + + + + + + +Account Invoice Start End Dates + + + +
+

Account Invoice Start End Dates

+ + +

Beta License: AGPL-3 OCA/account-closing Translate me on Weblate Try me on Runbot

+

This module adds the fields Start Date and End Date on invoice/move lines.

+

It also adds an option Must Have Start/End Dates on the product form (in the Accounting tab) ; if you enable this option, you will get an error message if you try to post an invoice/move that constains such a product on one of its lines and doesn’t have start/end dates on that line.

+

If you use this module, you may also be interested in several other modules:

+
    +
  • the module sale_start_end_dates from the sale-workflow OCA project: this module adds the fields Start Date and End Date on sale order lines and copies the information from sale order lines to invoice/move lines.
  • +
  • the modules account_cutoff_prepaid and account_cutoff_accrual_dates in the account-closing OCA projct: these modules allow easy computation of prepaid expenses, prepaid revenues, accrued expense and accrued revenue using start/end dates.
  • +
+

Table of contents

+ +
+

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

+
    +
  • Akretion
  • +
+
+
+

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.

+

Current maintainer:

+

alexis-via

+

This module is part of the OCA/account-closing project on GitHub.

+

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

+
+
+
+ + diff --git a/account_invoice_start_end_dates/tests/__init__.py b/account_invoice_start_end_dates/tests/__init__.py new file mode 100644 index 00000000000..b0bdb68db83 --- /dev/null +++ b/account_invoice_start_end_dates/tests/__init__.py @@ -0,0 +1,3 @@ +# Copyright 2013-2016 Akretion, Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from . import test_invoice_start_end_dates diff --git a/account_invoice_start_end_dates/tests/test_invoice_start_end_dates.py b/account_invoice_start_end_dates/tests/test_invoice_start_end_dates.py new file mode 100644 index 00000000000..f143df56ea8 --- /dev/null +++ b/account_invoice_start_end_dates/tests/test_invoice_start_end_dates.py @@ -0,0 +1,94 @@ +# Copyright 2016-2020 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import time + +from odoo.tests import tagged +from odoo.tests.common import TransactionCase + + +@tagged("-at_install", "post_install") +class TestInvoiceStartEndDates(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.move_model = cls.env["account.move"] + cls.account_model = cls.env["account.account"] + cls.journal_model = cls.env["account.journal"] + cls.account_revenue = cls.env["account.chart.template"]._get_demo_account( + "income", + "income", + cls.env.company, + ) + cls.sale_journal = cls.journal_model.search([("type", "=", "sale")], limit=1) + cls.maint_product = cls.env.ref( + "account_invoice_start_end_dates.product_maintenance_contract_demo" + ) + + def _date(self, date): + """convert MM-DD to current year date YYYY-MM-DD""" + return time.strftime("%Y-" + date) + + def test_invoice(self): + invoice = self.move_model.create( + { + "date": self._date("01-01"), + "partner_id": self.env.ref("base.res_partner_2").id, + "journal_id": self.sale_journal.id, + "move_type": "out_invoice", + "invoice_line_ids": [ + ( + 0, + 0, + { + "product_id": self.maint_product.id, + "name": "Maintenance IPBX 12 mois", + "price_unit": 2400, + "quantity": 1, + "account_id": self.account_revenue.id, + "start_date": self._date("01-01"), + "end_date": self._date("12-31"), + }, + ), + ( + 0, + 0, + { + "product_id": self.maint_product.id, + "name": "Maintenance téléphones 12 mois", + "price_unit": 12, + "quantity": 10, + "account_id": self.account_revenue.id, + "start_date": self._date("01-01"), + "end_date": self._date("12-31"), + }, + ), + ( + 0, + 0, + { + "product_id": self.maint_product.id, + "name": "Maintenance Fax 6 mois", + "price_unit": 120.75, + "quantity": 1, + "account_id": self.account_revenue.id, + "start_date": self._date("01-01"), + "end_date": self._date("06-30"), + }, + ), + ( + 0, + 0, + { + "product_id": self.env.ref("product.product_product_5").id, + "name": "HD IPBX", + "price_unit": 215.5, + "quantity": 1, + "account_id": self.account_revenue.id, + }, + ), + ], + } + ) + invoice.action_post() diff --git a/account_invoice_start_end_dates/views/account_move.xml b/account_invoice_start_end_dates/views/account_move.xml new file mode 100644 index 00000000000..ae8dcc1891d --- /dev/null +++ b/account_invoice_start_end_dates/views/account_move.xml @@ -0,0 +1,70 @@ + + + + + start_end_dates.view_move_line_form + account.move.line + + + + + + + + + + + start_end_dates.view_move_form + account.move + + + + + + + + + + + + + + + + + + + diff --git a/account_invoice_start_end_dates/views/product_template.xml b/account_invoice_start_end_dates/views/product_template.xml new file mode 100644 index 00000000000..110edd842ff --- /dev/null +++ b/account_invoice_start_end_dates/views/product_template.xml @@ -0,0 +1,18 @@ + + + + + add.must.have.dates.on.product.template.form + product.template + + + + + + + + diff --git a/setup/account_invoice_start_end_dates/odoo/addons/account_invoice_start_end_dates b/setup/account_invoice_start_end_dates/odoo/addons/account_invoice_start_end_dates new file mode 120000 index 00000000000..a086a01de89 --- /dev/null +++ b/setup/account_invoice_start_end_dates/odoo/addons/account_invoice_start_end_dates @@ -0,0 +1 @@ +../../../../account_invoice_start_end_dates \ No newline at end of file diff --git a/setup/account_invoice_start_end_dates/setup.py b/setup/account_invoice_start_end_dates/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/account_invoice_start_end_dates/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)