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

[14.0][ADD] account_invoice_section_repair_date_done: Put repair dat… #133

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 30 additions & 0 deletions account_invoice_section_repair_date_done/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

========================================
Account invoice section repair date done
========================================

* Put repair date done in the section of the invoice with the repair
information.


Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/mrp-repair-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

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

Credits
=======

Contributors
------------

* Ana Juaristi <anajuaristi@avanzosc.es>
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
1 change: 1 addition & 0 deletions account_invoice_section_repair_date_done/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions account_invoice_section_repair_date_done/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2025 Alfredo de la Fuente - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Account Invoice Section Repair Date Done",
"author": "AvanzOSC",
"website": "https://github.com/avanzosc/mrp-repair-addons",
"category": "Invoices & Payments",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"depends": ["account_invoice_section_repair", "repair_date_done"],
"data": [],
"installable": True,
"auto_install": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_section_repair_date_done
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-31 07:46+0000\n"
"PO-Revision-Date: 2025-01-31 07:46+0000\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_section_repair_date_done
#: code:addons/account_invoice_section_repair_date_done/models/account_move.py:0
#, python-format
msgid "%(super_vals)s, Date Done: %(date_done)s"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move__id
msgid "ID"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model,name:account_invoice_section_repair_date_done.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move____last_update
msgid "Last Modified on"
msgstr ""
42 changes: 42 additions & 0 deletions account_invoice_section_repair_date_done/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_section_repair_date_done
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-31 07:47+0000\n"
"PO-Revision-Date: 2025-01-31 07:47+0000\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_section_repair_date_done
#: code:addons/account_invoice_section_repair_date_done/models/account_move.py:0
#, python-format
msgid "%(super_vals)s, Date Done: %(date_done)s"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move__id
msgid "ID"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model,name:account_invoice_section_repair_date_done.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move____last_update
msgid "Last Modified on"
msgstr ""
42 changes: 42 additions & 0 deletions account_invoice_section_repair_date_done/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_section_repair_date_done
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-31 07:47+0000\n"
"PO-Revision-Date: 2025-01-31 07:47+0000\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_section_repair_date_done
#: code:addons/account_invoice_section_repair_date_done/models/account_move.py:0
#, python-format
msgid "%(super_vals)s, Date Done: %(date_done)s"
msgstr "%(super_vals)s, Fecha fin reparación: %(date_done)s"

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move__id
msgid "ID"
msgstr ""

#. module: account_invoice_section_repair_date_done
#: model:ir.model,name:account_invoice_section_repair_date_done.model_account_move
msgid "Journal Entry"
msgstr "Asiento contable"

#. module: account_invoice_section_repair_date_done
#: model:ir.model.fields,field_description:account_invoice_section_repair_date_done.field_account_move____last_update
msgid "Last Modified on"
msgstr "Última modificación en"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
15 changes: 15 additions & 0 deletions account_invoice_section_repair_date_done/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2025 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, models


class AccountMove(models.Model):
_inherit = "account.move"

def _get_repair_name_for_values(self, repair):
super_vals = super()._get_repair_name_for_values(repair)
vals = _("%(super_vals)s, Date Done: %(date_done)s") % {
"super_vals": super_vals,
"date_done": repair.date_done.strftime("%d-%m-%Y") or "",
}
return vals
6 changes: 6 additions & 0 deletions setup/account_invoice_section_repair_date_done/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading