Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,824 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
=============================== | ||
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/12.0-migration-account_invoice_start_end_dates/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/-12-0-migration-account_invoice_start_end_dates/account-closing/-12-0-migration-account_invoice_start_end_dates-account_invoice_start_end_dates | ||
:alt: Translate me on Weblate | ||
|
||
|badge1| |badge2| |badge3| |badge4| | ||
|
||
This module adds the fields *Start Date* and *End Date* on invoice lines. When you validate the invoice, the information is copied from invoice lines to account move lines (if you enabled the grouping option on the related journal, Odoo will not group invoice lines that have different start/end dates). | ||
|
||
It also adds an option *Must Have Start and 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 validate an invoice 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 2 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 lines. | ||
|
||
* the module *account_cutoff_prepaid* (same repository): this module allows easy computation of prepaid expenses and prepaid revenues. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-closing//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 <https://github.com/OCA/account-closing//issues/new?body=module:%20account_invoice_start_end_dates%0Aversion:%2012.0-migration-account_invoice_start_end_dates%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Akretion | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Alexis de Lattre <alexis.delattre@akretion.com> | ||
* Jeroen Evens <jeroen.evens@dynapps.be> | ||
|
||
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/account-closing/ <https://github.com/OCA/account-closing//tree/12.0-migration-account_invoice_start_end_dates/account_invoice_start_end_dates>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Copyright 2013-2016 Akretion, Alexis de Lattre <alexis.delattre@akretion.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2016 Akretion, Alexis de Lattre <alexis.delattre@akretion.com> | ||
# Copyright 2018 Camptocamp | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': 'Account Invoice Start End Dates', | ||
'version': '12.0.1.0.0', | ||
'category': 'Accounting & Finance', | ||
'license': 'AGPL-3', | ||
'summary': 'Adds start/end dates on invoice lines and move lines', | ||
'author': 'Akretion,Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/account-closing', | ||
'depends': [ | ||
'account', | ||
], | ||
'data': [ | ||
'views/account_invoice.xml', | ||
'views/account_move.xml', | ||
'views/product.xml', | ||
], | ||
'demo': ['demo/product_demo.xml'], | ||
'installable': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright 2013-2016 Akretion, Alexis de Lattre <alexis.delattre@akretion.com> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
--> | ||
<odoo noupdate="1"> | ||
|
||
<record id="product_insurance_contract_demo" model="product.product"> | ||
<field name="name">Car Insurance</field> | ||
<field name="default_code">CARINSUR</field> | ||
<field name="type">service</field> | ||
<field name="categ_id" ref="product.product_category_5"/> | ||
<field name="must_have_dates" eval="True" /> | ||
<field name="sale_ok" eval="True" /> | ||
<field name="list_price" eval="1200.0"/> | ||
<field name="standard_price" eval="600.0"/> | ||
</record> | ||
|
||
<record id="product_maintenance_contract_demo" model="product.product"> | ||
<field name="name">Maintenance contract</field> | ||
<field name="default_code">MAINTENANCE</field> | ||
<field name="type">service</field> | ||
<field name="categ_id" ref="product.product_category_5"/> | ||
<field name="must_have_dates" eval="True" /> | ||
<field name="sale_ok" eval="True" /> | ||
<field name="list_price" eval="2400.0"/> | ||
<field name="standard_price" eval="1200.0"/> | ||
</record> | ||
|
||
</odoo> |
115 changes: 115 additions & 0 deletions
115
account_invoice_start_end_dates/i18n/account_invoice_start_end_dates.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# 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 11.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_contrat | ||
#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contrat_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_invoice_line_end_date | ||
#: 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_invoice_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_invoice | ||
msgid "Invoice" | ||
msgstr "" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: model:ir.model,name:account_invoice_start_end_dates.model_account_invoice_line | ||
msgid "Invoice Line" | ||
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_contrat | ||
#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contrat_product_template | ||
msgid "Maintenance contract" | ||
msgstr "" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_invoice.py:23 | ||
#, python-format | ||
msgid "Missing End Date for invoice line with Description '%s'." | ||
msgstr "" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:20 | ||
#, 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_invoice.py:87 | ||
#, 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_invoice.py:28 | ||
#, python-format | ||
msgid "Missing Start Date for invoice line with Description '%s'." | ||
msgstr "" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:24 | ||
#, 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_invoice_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_invoice_line_start_date | ||
#: 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:28 | ||
#, python-format | ||
msgid "Start Date should be before End Date for move line with Name '%s'." | ||
msgstr "" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_invoice.py:34 | ||
#, python-format | ||
msgid "Start Date should be before or be the same as End Date for invoice line with Description '%s'." | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <odoo@kerpeo.com>, 2018 | ||
# OCA Transbot <transbot@odoo-community.org>, 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: 2018-01-27 03:39+0000\n" | ||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n" | ||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: model:product.product,name:account_invoice_start_end_dates.product_insurance_contrat | ||
#: model:product.template,name:account_invoice_start_end_dates.product_insurance_contrat_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_invoice_line_end_date | ||
#: 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_invoice_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_invoice | ||
msgid "Invoice" | ||
msgstr "Facture" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: model:ir.model,name:account_invoice_start_end_dates.model_account_invoice_line | ||
msgid "Invoice Line" | ||
msgstr "Ligne de facture" | ||
|
||
#. 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_contrat | ||
#: model:product.template,name:account_invoice_start_end_dates.product_maintenance_contrat_product_template | ||
msgid "Maintenance contract" | ||
msgstr "Contrat de maintenance" | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_invoice.py:23 | ||
#, python-format | ||
msgid "Missing End Date for invoice line with Description '%s'." | ||
msgstr "" | ||
"Date de fin manquante pour les lignes de facture avec la description '%s'." | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:20 | ||
#, 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_invoice.py:87 | ||
#, 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_invoice.py:28 | ||
#, python-format | ||
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'." | ||
|
||
#. module: account_invoice_start_end_dates | ||
#: code:addons/account_invoice_start_end_dates/models/account_move_line.py:24 | ||
#, 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_invoice_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_invoice_line_start_date | ||
#: 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:28 | ||
#, 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 | ||
#: code:addons/account_invoice_start_end_dates/models/account_invoice.py:34 | ||
#, python-format | ||
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'." |
Oops, something went wrong.