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] maintenance_account: Migration to 16.0 #381

Merged
merged 12 commits into from
Feb 15, 2024
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
99 changes: 99 additions & 0 deletions maintenance_account/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
===================
Maintenance Account
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dcc1add7dc957ff122be4ff4e3777cad68abf215cc992e2909610be94ef0842a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fmaintenance-lightgray.png?logo=github
:target: https://github.com/OCA/maintenance/tree/16.0/maintenance_account
:alt: OCA/maintenance
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-maintenance_account
: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/maintenance&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module automatically creates the equipment when validating the purchase invoices.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

* Go to *Invoicing > Vendor > Bills* and create a new one with any product with the "Can be Maintenance" field checked.
* Confirm the invoice.
* A new equipment category linked to the product line has been created (if the product category did not already have one linked).
* A smart-button is displayed with the equipments created (as many equipments as the quantity of product lines are created).

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/maintenance/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 <https://github.com/OCA/maintenance/issues/new?body=module:%20maintenance_account%0Aversion:%2016.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* César Fernández Domínguez <cesfernandez@outlook.com>

* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor Martínez
* Pedro M. Baeza

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-victoralmau| image:: https://github.com/victoralmau.png?size=40px
:target: https://github.com/victoralmau
:alt: victoralmau

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-victoralmau|

This module is part of the `OCA/maintenance <https://github.com/OCA/maintenance/tree/16.0/maintenance_account>`_ 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 maintenance_account/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions maintenance_account/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Maintenance Account",
"version": "16.0.1.0.0",
"category": "Maintenance",
"website": "https://github.com/OCA/maintenance",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["maintenance_product", "account"],
"installable": True,
"data": [
"views/maintenance_equipment_view.xml",
"views/account_move_view.xml",
],
"maintainers": ["victoralmau"],
}
71 changes: 71 additions & 0 deletions maintenance_account/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-03-30 07:30+0000\n"
"PO-Revision-Date: 2023-07-06 20:08+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_category_id
msgid "Equipment Category"
msgstr "Categoría de equipo"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_bank_statement_line__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_move__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_payment__equipment_count
msgid "Equipment Count"
msgstr "Total de equipos"

#. module: maintenance_account
#: model_terms:ir.ui.view,arch_db:maintenance_account.view_move_form
msgid "Equipment(s)"
msgstr "Equipo(s)"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_ids
msgid "Equipments"
msgstr "Equipos"

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

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_account_move_line
msgid "Journal Item"
msgstr "Apunte contable"

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_maintenance_equipment
msgid "Maintenance Equipment"
msgstr "Equipo de mantenimiento"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_maintenance_equipment__move_id
msgid "Move"
msgstr "Asiento"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_maintenance_equipment__move_line_id
msgid "Move line"
msgstr "Apunte"

#. module: maintenance_account
#: model:ir.model.fields,help:maintenance_account.field_maintenance_equipment__move_id
msgid "The move of this entry line."
msgstr "El movimiento de esta línea de entrada."
70 changes: 70 additions & 0 deletions maintenance_account/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-12 17:39+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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 4.17\n"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_category_id
msgid "Equipment Category"
msgstr "Categoria attrezzatura"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_bank_statement_line__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_move__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_payment__equipment_count
msgid "Equipment Count"
msgstr "Conteggio attrezzature"

#. module: maintenance_account
#: model_terms:ir.ui.view,arch_db:maintenance_account.view_move_form
msgid "Equipment(s)"
msgstr "Attrezzatura(e)"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_ids
msgid "Equipments"
msgstr "Attrezzature"

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_account_move
msgid "Journal Entry"
msgstr "Registrazione contabile"

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_account_move_line
msgid "Journal Item"
msgstr "Movimento contabile"

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_maintenance_equipment
msgid "Maintenance Equipment"
msgstr "Attrezzatura manutenzione"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_maintenance_equipment__move_id
msgid "Move"
msgstr "Movimento"

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_maintenance_equipment__move_line_id
msgid "Move line"
msgstr "Riga movimento"

#. module: maintenance_account
#: model:ir.model.fields,help:maintenance_account.field_maintenance_equipment__move_id
msgid "The move of this entry line."
msgstr "Il movimento per questa riga di registrazione."
67 changes: 67 additions & 0 deletions maintenance_account/i18n/maintenance_account.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * maintenance_account
#
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: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_category_id
msgid "Equipment Category"
msgstr ""

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_bank_statement_line__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_move__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_count
#: model:ir.model.fields,field_description:maintenance_account.field_account_payment__equipment_count
msgid "Equipment Count"
msgstr ""

#. module: maintenance_account
#: model_terms:ir.ui.view,arch_db:maintenance_account.view_move_form
msgid "Equipment(s)"
msgstr ""

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_account_move_line__equipment_ids
msgid "Equipments"
msgstr ""

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

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: maintenance_account
#: model:ir.model,name:maintenance_account.model_maintenance_equipment
msgid "Maintenance Equipment"
msgstr ""

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_maintenance_equipment__move_id
msgid "Move"
msgstr ""

#. module: maintenance_account
#: model:ir.model.fields,field_description:maintenance_account.field_maintenance_equipment__move_line_id
msgid "Move line"
msgstr ""

#. module: maintenance_account
#: model:ir.model.fields,help:maintenance_account.field_maintenance_equipment__move_id
msgid "The move of this entry line."
msgstr ""
2 changes: 2 additions & 0 deletions maintenance_account/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import account_move
from . import maintenance_equipment
Loading
Loading