diff --git a/contract_update_last_date_invoiced/README.rst b/contract_update_last_date_invoiced/README.rst new file mode 100644 index 0000000000..05b78b094f --- /dev/null +++ b/contract_update_last_date_invoiced/README.rst @@ -0,0 +1,98 @@ +========================= +Contract Last Date Update +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:10e7abcafff97b614d8cb69abc55c3809b1e55ec60e793841ff247950bc2d7ec + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcontract-lightgray.png?logo=github + :target: https://github.com/OCA/contract/tree/16.0/contract_update_last_date_invoiced + :alt: OCA/contract +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract_update_last_date_invoiced + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows users to update the last date invoiced +(e.g.: deletion of invoices). + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +* Go to Invoicing > Customers > Customer Contracts +* Select a contract and click on Update Last Date Invoiced +* Fill in the last date invoiced with the desired value + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ACSONE SA/NV + +Contributors +~~~~~~~~~~~~ + +* Souheil Bejaoui +* Denis Roussel +* `Moduon `_: + * `Eduardo López` + +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-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px + :target: https://github.com/rafaelbn + :alt: rafaelbn +.. |maintainer-edlopen| image:: https://github.com/edlopen.png?size=40px + :target: https://github.com/edlopen + :alt: edlopen + +Current `maintainers `__: + +|maintainer-rafaelbn| |maintainer-edlopen| + +This module is part of the `OCA/contract `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/contract_update_last_date_invoiced/__init__.py b/contract_update_last_date_invoiced/__init__.py new file mode 100644 index 0000000000..aee8895e7a --- /dev/null +++ b/contract_update_last_date_invoiced/__init__.py @@ -0,0 +1,2 @@ +from . import models +from . import wizards diff --git a/contract_update_last_date_invoiced/__manifest__.py b/contract_update_last_date_invoiced/__manifest__.py new file mode 100644 index 0000000000..b5dadfc216 --- /dev/null +++ b/contract_update_last_date_invoiced/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2022 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Contract Last Date Update", + "summary": """ + This module allows to update the last date invoiced if invoices are deleted.""", + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/contract", + "depends": ["contract"], + "data": [ + "security/security.xml", + "views/contract_views.xml", + "views/contract_line.xml", + "wizards/update_last_date_invoiced.xml", + ], + "maintainers": ["rafaelbn", "edlopen"], +} diff --git a/contract_update_last_date_invoiced/i18n/contract_update_last_date_invoiced.pot b/contract_update_last_date_invoiced/i18n/contract_update_last_date_invoiced.pot new file mode 100644 index 0000000000..656df52ee8 --- /dev/null +++ b/contract_update_last_date_invoiced/i18n/contract_update_last_date_invoiced.pot @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_update_last_date_invoiced +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: contract_update_last_date_invoiced +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +msgid "Cancel" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_line +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__contract_line_id +msgid "Contract Line" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:res.groups,name:contract_update_last_date_invoiced.group_contract_line_update_last_date_invoiced +msgid "Contract: Can update last date invoiced" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_uid +msgid "Created by" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_date +msgid "Created on" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__display_name +msgid "Display Name" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__id +msgid "ID" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__last_date_invoiced +msgid "Last Date Invoiced" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced____last_update +msgid "Last Modified on" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_date +msgid "Last Updated on" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__recurring_next_date +msgid "Recurring Next Date" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_update_last_date_invoiced +msgid "Update Contract Last Date Invoiced Wizard" +msgstr "" + +#. module: contract_update_last_date_invoiced +#. odoo-python +#: code:addons/contract_update_last_date_invoiced/models/contract_line.py:0 +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_line_form_view +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +#, python-format +msgid "Update Last Date Invoiced" +msgstr "" diff --git a/contract_update_last_date_invoiced/i18n/es.po b/contract_update_last_date_invoiced/i18n/es.po new file mode 100644 index 0000000000..0d287a8721 --- /dev/null +++ b/contract_update_last_date_invoiced/i18n/es.po @@ -0,0 +1,93 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_update_last_date_invoiced +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-12-19 10:35+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: contract_update_last_date_invoiced +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +msgid "Cancel" +msgstr "Cancelar" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_line +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__contract_line_id +msgid "Contract Line" +msgstr "Línea Contrato" + +#. module: contract_update_last_date_invoiced +#: model:res.groups,name:contract_update_last_date_invoiced.group_contract_line_update_last_date_invoiced +msgid "Contract: Can update last date invoiced" +msgstr "Contrato: Puede actualizar la última fecha facturada" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__last_date_invoiced +msgid "Last Date Invoiced" +msgstr "Última Fecha Facturada" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_uid +msgid "Last Updated by" +msgstr "Última Actualización por" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_date +msgid "Last Updated on" +msgstr "Última Actualización el" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__recurring_next_date +msgid "Recurring Next Date" +msgstr "Próxima Fecha Recurrente" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_update_last_date_invoiced +msgid "Update Contract Last Date Invoiced Wizard" +msgstr "" +"Asistente de Actualización de la Última Fecha de Facturación del Contrato" + +#. module: contract_update_last_date_invoiced +#. odoo-python +#: code:addons/contract_update_last_date_invoiced/models/contract_line.py:0 +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_line_form_view +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +#, python-format +msgid "Update Last Date Invoiced" +msgstr "Actualizar la Última Fecha de Facturación" diff --git a/contract_update_last_date_invoiced/i18n/fr.po b/contract_update_last_date_invoiced/i18n/fr.po new file mode 100644 index 0000000000..48f875a669 --- /dev/null +++ b/contract_update_last_date_invoiced/i18n/fr.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_update_last_date_invoiced +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-11-04 16:45+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: none\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.14.1\n" + +#. module: contract_update_last_date_invoiced +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +msgid "Cancel" +msgstr "Annuler" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_line +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__contract_line_id +msgid "Contract Line" +msgstr "Ligne de contrat" + +#. module: contract_update_last_date_invoiced +#: model:res.groups,name:contract_update_last_date_invoiced.group_contract_line_update_last_date_invoiced +msgid "Contract: Can update last date invoiced" +msgstr "Contrat: Peut mettre à jour la dernière date facturée" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__id +msgid "ID" +msgstr "" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__last_date_invoiced +msgid "Last Date Invoiced" +msgstr "Dernière date facturée" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_date +msgid "Last Updated on" +msgstr "Mis à jour le" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__recurring_next_date +msgid "Recurring Next Date" +msgstr "Date de la prochaine facture" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_update_last_date_invoiced +msgid "Update Contract Last Date Invoiced Wizard" +msgstr "Assistant de mise à jour de la dernière date facturée" + +#. module: contract_update_last_date_invoiced +#. odoo-python +#: code:addons/contract_update_last_date_invoiced/models/contract_line.py:0 +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_line_form_view +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +#, python-format +msgid "Update Last Date Invoiced" +msgstr "Mettre à jour la dernière date facturée" diff --git a/contract_update_last_date_invoiced/i18n/it.po b/contract_update_last_date_invoiced/i18n/it.po new file mode 100644 index 0000000000..8ebfbef5c1 --- /dev/null +++ b/contract_update_last_date_invoiced/i18n/it.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_update_last_date_invoiced +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-12-21 14:06+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\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 5.6.2\n" + +#. module: contract_update_last_date_invoiced +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +msgid "Cancel" +msgstr "Annulla" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_line +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__contract_line_id +msgid "Contract Line" +msgstr "Riga contratto" + +#. module: contract_update_last_date_invoiced +#: model:res.groups,name:contract_update_last_date_invoiced.group_contract_line_update_last_date_invoiced +msgid "Contract: Can update last date invoiced" +msgstr "Contratto: si può aggiornare l'ultima data fatturata" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__id +msgid "ID" +msgstr "ID" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__last_date_invoiced +msgid "Last Date Invoiced" +msgstr "Ultima data fatturata" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: contract_update_last_date_invoiced +#: model:ir.model.fields,field_description:contract_update_last_date_invoiced.field_contract_update_last_date_invoiced__recurring_next_date +msgid "Recurring Next Date" +msgstr "Data ricorrente successiva" + +#. module: contract_update_last_date_invoiced +#: model:ir.model,name:contract_update_last_date_invoiced.model_contract_update_last_date_invoiced +msgid "Update Contract Last Date Invoiced Wizard" +msgstr "Procedura guidata aggiornamento ultima data contratto fatturata" + +#. module: contract_update_last_date_invoiced +#. odoo-python +#: code:addons/contract_update_last_date_invoiced/models/contract_line.py:0 +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_line_form_view +#: model_terms:ir.ui.view,arch_db:contract_update_last_date_invoiced.contract_update_last_date_invoiced_wizard_form_view +#, python-format +msgid "Update Last Date Invoiced" +msgstr "Aggiorna ultima data fatturata" diff --git a/contract_update_last_date_invoiced/models/__init__.py b/contract_update_last_date_invoiced/models/__init__.py new file mode 100644 index 0000000000..6143a36501 --- /dev/null +++ b/contract_update_last_date_invoiced/models/__init__.py @@ -0,0 +1 @@ +from . import contract_line diff --git a/contract_update_last_date_invoiced/models/contract_line.py b/contract_update_last_date_invoiced/models/contract_line.py new file mode 100644 index 0000000000..6d2b7de7a5 --- /dev/null +++ b/contract_update_last_date_invoiced/models/contract_line.py @@ -0,0 +1,35 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import _, models + + +class ContractLine(models.Model): + + _inherit = "contract.line" + + def action_update_last_date_invoiced(self): + self.ensure_one() + context = { + "default_contract_line_id": self.id, + "default_last_date_invoiced": self.last_date_invoiced, + "default_recurring_next_date": self.recurring_next_date, + } + context.update(self.env.context) + return { + "type": "ir.actions.act_window", + "name": _("Update Last Date Invoiced"), + "res_model": "contract.update.last.date.invoiced", + "view_type": "form", + "view_mode": "form", + "target": "new", + "context": context, + } + + def _update_last_date_invoiced(self, last_date_invoiced, recurring_next_date): + self.write( + { + "last_date_invoiced": last_date_invoiced, + "recurring_next_date": recurring_next_date, + } + ) diff --git a/contract_update_last_date_invoiced/readme/CONFIGURATION.rst b/contract_update_last_date_invoiced/readme/CONFIGURATION.rst new file mode 100644 index 0000000000..2ea54f3d50 --- /dev/null +++ b/contract_update_last_date_invoiced/readme/CONFIGURATION.rst @@ -0,0 +1,4 @@ +- Access in development mode +- Go to Settings > Users & Companies > Users +- Select the user you want to configure +- Give the user "Contract: Can update last date invoiced?" permission diff --git a/contract_update_last_date_invoiced/readme/CONTRIBUTORS.rst b/contract_update_last_date_invoiced/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..534d03789e --- /dev/null +++ b/contract_update_last_date_invoiced/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Souheil Bejaoui +* Denis Roussel +* `Moduon `_: + * `Eduardo López` diff --git a/contract_update_last_date_invoiced/readme/DESCRIPTION.rst b/contract_update_last_date_invoiced/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..825121d9b7 --- /dev/null +++ b/contract_update_last_date_invoiced/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows users to update the last date invoiced +(e.g.: deletion of invoices). diff --git a/contract_update_last_date_invoiced/readme/USAGE.rst b/contract_update_last_date_invoiced/readme/USAGE.rst new file mode 100644 index 0000000000..043be5ead0 --- /dev/null +++ b/contract_update_last_date_invoiced/readme/USAGE.rst @@ -0,0 +1,3 @@ +* Go to Invoicing > Customers > Customer Contracts +* Select a contract and click on Update Last Date Invoiced +* Fill in the last date invoiced with the desired value diff --git a/contract_update_last_date_invoiced/security/security.xml b/contract_update_last_date_invoiced/security/security.xml new file mode 100644 index 0000000000..4c7d531eca --- /dev/null +++ b/contract_update_last_date_invoiced/security/security.xml @@ -0,0 +1,11 @@ + + + + + + Contract: Can update last date invoiced + + + + diff --git a/contract_update_last_date_invoiced/static/description/icon.png b/contract_update_last_date_invoiced/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/contract_update_last_date_invoiced/static/description/icon.png differ diff --git a/contract_update_last_date_invoiced/static/description/index.html b/contract_update_last_date_invoiced/static/description/index.html new file mode 100644 index 0000000000..7f7efceca2 --- /dev/null +++ b/contract_update_last_date_invoiced/static/description/index.html @@ -0,0 +1,438 @@ + + + + + +Contract Last Date Update + + + +
+

Contract Last Date Update

+ + +

Beta License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

+

This module allows users to update the last date invoiced +(e.g.: deletion of invoices).

+

Table of contents

+ +
+

Usage

+
    +
  • Go to Invoicing > Customers > Customer Contracts
  • +
  • Select a contract and click on Update Last Date Invoiced
  • +
  • Fill in the last date invoiced with the desired value
  • +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

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 maintainers:

+

rafaelbn edlopen

+

This module is part of the OCA/contract project on GitHub.

+

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

+
+
+
+ + diff --git a/contract_update_last_date_invoiced/views/contract_line.xml b/contract_update_last_date_invoiced/views/contract_line.xml new file mode 100644 index 0000000000..886e7f2f26 --- /dev/null +++ b/contract_update_last_date_invoiced/views/contract_line.xml @@ -0,0 +1,26 @@ + + + + + + contract.line + contract.line.form (in contract_update_last_date_invoiced) + + + +