Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] account_invoice_start_end_dates: Migration to 16.0 #206

Merged
merged 37 commits into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7be8c37
Port account_cutoff_base and account_cutoff_prepaid to Odoo v9
alexis-via Jul 24, 2016
a44dbc0
Migration of account_cutoff modules to 10.0
adrienpeiffer Oct 17, 2016
3cc3842
account_invoice_start_end_dates: Migration to 11.0
Jan 3, 2018
e5e1783
Savepoint tests invoice_start
Jan 17, 2018
acf0443
OCA Transbot updated translations from Transifex
oca-transbot Feb 2, 2018
49094a7
account_invoice_start_end_dates: Migration to 12.0 account_invoice_st…
Dec 6, 2018
d591544
README.rst
OCA-git-bot Apr 26, 2019
f4c5aa3
icon.png
OCA-git-bot Apr 26, 2019
7836c4c
Update account_invoice_start_end_dates.pot
oca-travis Apr 26, 2019
3cb344b
Update translation files
oca-transbot May 20, 2019
c709dab
README.rst
OCA-git-bot Jul 29, 2019
54286d2
[MIG] account_invoice_start_end_dates to v13
alexis-via Dec 5, 2019
0cceded
Black
alexis-via Apr 23, 2020
2021a95
Use super() instead of super(classname, self)
alexis-via Apr 23, 2020
9b79add
[UPD] README.rst
OCA-git-bot Apr 23, 2020
e925a1f
Black and other pre-commit stuff
alexis-via Apr 23, 2020
636a349
FIX visibility of forecast button
alexis-via Apr 23, 2020
0de2fed
[UPD] README.rst
OCA-git-bot Apr 24, 2020
e9be18e
[UPD] README.rst
OCA-git-bot Apr 28, 2020
427371b
[FIX] lint issues
sbidoul May 13, 2020
fb91198
[UPD] Update account_invoice_start_end_dates.pot
oca-travis May 13, 2020
d2fa76d
Update translation files
oca-transbot May 13, 2020
5dd8710
Update translation files
oca-transbot Aug 16, 2020
cd3c858
[MIG] account_invoice_start_end_dates from 13 to 14
alexis-via Oct 15, 2020
c26aa01
[UPD] Update account_invoice_start_end_dates.pot
oca-travis Oct 16, 2020
00614f8
[UPD] README.rst
OCA-git-bot Oct 16, 2020
7578641
account_invoice_start_end_dates 14.0.1.0.1
OCA-git-bot Oct 16, 2020
b84ad5d
Added translation using Weblate (French (France))
Yvesldff Apr 10, 2021
5b22b09
Translated using Weblate (French (France))
Yvesldff Apr 10, 2021
b2c8bd9
Translated using Weblate (Portuguese)
pedrocs-exo Jul 2, 2021
dc83602
Translated using Weblate (Italian)
SicurSam Dec 3, 2021
510faf4
[MIG] account_invoice_start_end_dates to v15
alexis-via Dec 7, 2021
b7c02cf
[UPD] Update account_invoice_start_end_dates.pot
Jan 27, 2022
7600df0
[UPD] README.rst
OCA-git-bot Jan 27, 2022
65a1923
Translated using Weblate (French)
gregory-moka Jul 4, 2022
6c86f95
[IMP] account_invoice_start_end_dates: pre-commit execution
FrancoMaxime Oct 10, 2022
2e53b7e
[MIG] account_invoice_start_end_dates: Migration to 16.0
FrancoMaxime Oct 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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