Skip to content

Commit

Permalink
Merge PR #206 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Oct 16, 2022
2 parents 8f7193d + 2e53b7e commit 439cf79
Show file tree
Hide file tree
Showing 26 changed files with 1,816 additions and 0 deletions.
90 changes: 90 additions & 0 deletions account_invoice_start_end_dates/README.rst
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/OCA/sale-workflow>`_: 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 <https://github.com/OCA/account-closing>`_: 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 <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:%2015.0%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 <[email protected]>
* Jeroen Evens <[email protected]>

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 <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via|

This module is part of the `OCA/account-closing <https://github.com/OCA/account-closing/tree/15.0/account_invoice_start_end_dates>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_invoice_start_end_dates/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions account_invoice_start_end_dates/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2016-2021 Akretion France (http://www.akretion.com/)
# Copyright 2018-2021 Camptocamp
# @author: Alexis de Lattre <[email protected]>
# 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,
}
26 changes: 26 additions & 0 deletions account_invoice_start_end_dates/demo/product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2013-2020 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
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="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="list_price" eval="2400.0" />
<field name="standard_price" eval="1200.0" />
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -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 ""
136 changes: 136 additions & 0 deletions account_invoice_start_end_dates/i18n/fr.po
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 <[email protected]>, 2018
# OCA Transbot <[email protected]>, 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 <[email protected]>\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'."
Loading

0 comments on commit 439cf79

Please sign in to comment.