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

[17.0][MIG] agreement_account: Migration to 17.0 #42

Open
wants to merge 12 commits into
base: 17.0
Choose a base branch
from
Open
88 changes: 88 additions & 0 deletions agreement_account/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
=================
Agreement Account
=================

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

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

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

This module adds *Agreement* field on invoices.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/agreement/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/agreement/issues/new?body=module:%20agreement_account%0Aversion:%2017.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 <alexis.delattre@akretion.com>
- Italo LOPES <italo.lopes@camptocamp.com>

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

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

|maintainer-alexis-via| |maintainer-bealdav|

This module is part of the `OCA/agreement <https://github.com/OCA/agreement/tree/17.0/agreement_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 agreement_account/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
28 changes: 28 additions & 0 deletions agreement_account/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Agreement Account",
"summary": "Agreement on invoices",
"version": "17.0.1.0.0",
"category": "Contract",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/agreement",
"license": "AGPL-3",
"depends": [
"agreement",
"account",
],
"data": [
"security/ir.model.access.csv",
"views/agreement.xml",
"views/account_move.xml",
],
"development_status": "Beta",
"maintainers": [
"alexis-via",
"bealdav",
],
"installable": True,
}
73 changes: 73 additions & 0 deletions agreement_account/i18n/agreement_account.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
msgid "# of Customer Invoices"
msgstr ""

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__in_invoice_count
msgid "# of Vendor Bills"
msgstr ""

#. module: agreement_account
#: model:ir.model,name:agreement_account.model_agreement
#: model:ir.model.fields,field_description:agreement_account.field_account_bank_statement_line__agreement_id
#: model:ir.model.fields,field_description:agreement_account.field_account_move__agreement_id
#: model:ir.model.fields,field_description:agreement_account.field_account_payment__agreement_id
#: model_terms:ir.ui.view,arch_db:agreement_account.view_account_invoice_filter
msgid "Agreement"
msgstr ""

#. module: agreement_account
#: model:ir.ui.menu,name:agreement_account.agreement_type_menu
msgid "Agreement Types"
msgstr ""

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

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

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__invoice_ids
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
msgid "Invoices"
msgstr ""

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

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_account_move____last_update
#: model:ir.model.fields,field_description:agreement_account.field_agreement____last_update
msgid "Last Modified on"
msgstr ""

#. module: agreement_account
#: model:ir.actions.act_window,name:agreement_account.account_invoice_in_invoice_refund_action
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
msgid "Vendor Bills"
msgstr ""
76 changes: 76 additions & 0 deletions agreement_account/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-19 13:33+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
msgid "# of Customer Invoices"
msgstr "# de Facturas de Cliente"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__in_invoice_count
msgid "# of Vendor Bills"
msgstr "# de Facturas de Proveedores"

#. module: agreement_account
#: model:ir.model,name:agreement_account.model_agreement
#: model:ir.model.fields,field_description:agreement_account.field_account_bank_statement_line__agreement_id
#: model:ir.model.fields,field_description:agreement_account.field_account_move__agreement_id
#: model:ir.model.fields,field_description:agreement_account.field_account_payment__agreement_id
#: model_terms:ir.ui.view,arch_db:agreement_account.view_account_invoice_filter
msgid "Agreement"
msgstr "Acuerdo"

#. module: agreement_account
#: model:ir.ui.menu,name:agreement_account.agreement_type_menu
msgid "Agreement Types"
msgstr "Tipos de Acuerdo"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_account_move__display_name
#: model:ir.model.fields,field_description:agreement_account.field_agreement__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_account_move__id
#: model:ir.model.fields,field_description:agreement_account.field_agreement__id
msgid "ID"
msgstr "ID (identificación)"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__invoice_ids
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
msgid "Invoices"
msgstr "Facturas"

#. module: agreement_account
#: model:ir.model,name:agreement_account.model_account_move
msgid "Journal Entry"
msgstr "Entrada en Diario"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_account_move____last_update
#: model:ir.model.fields,field_description:agreement_account.field_agreement____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: agreement_account
#: model:ir.actions.act_window,name:agreement_account.account_invoice_in_invoice_refund_action
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
msgid "Vendor Bills"
msgstr "Facturas de Vendedor"
76 changes: 76 additions & 0 deletions agreement_account/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-02-06 20:59+0000\n"
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n"
"Language-Team: none\n"
"Language: es_AR\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: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
msgid "# of Customer Invoices"
msgstr "# de Facturas de Cliente"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__in_invoice_count
msgid "# of Vendor Bills"
msgstr "# de Facturas de Proveedores"

#. module: agreement_account
#: model:ir.model,name:agreement_account.model_agreement
#: model:ir.model.fields,field_description:agreement_account.field_account_bank_statement_line__agreement_id
#: model:ir.model.fields,field_description:agreement_account.field_account_move__agreement_id
#: model:ir.model.fields,field_description:agreement_account.field_account_payment__agreement_id
#: model_terms:ir.ui.view,arch_db:agreement_account.view_account_invoice_filter
msgid "Agreement"
msgstr "Acuerdo"

#. module: agreement_account
#: model:ir.ui.menu,name:agreement_account.agreement_type_menu
msgid "Agreement Types"
msgstr "Tipos de Acuerdo"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_account_move__display_name
#: model:ir.model.fields,field_description:agreement_account.field_agreement__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

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

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__invoice_ids
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
msgid "Invoices"
msgstr "Facturas"

#. module: agreement_account
#: model:ir.model,name:agreement_account.model_account_move
msgid "Journal Entry"
msgstr "Apunte Contable"

#. module: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_account_move____last_update
#: model:ir.model.fields,field_description:agreement_account.field_agreement____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: agreement_account
#: model:ir.actions.act_window,name:agreement_account.account_invoice_in_invoice_refund_action
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
msgid "Vendor Bills"
msgstr "Facturas de Proveedores"
2 changes: 2 additions & 0 deletions agreement_account/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import account_move
from . import agreement
18 changes: 18 additions & 0 deletions agreement_account/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


from odoo import fields, models


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

agreement_id = fields.Many2one(
comodel_name="agreement",
string="Agreement",
ondelete="restrict",
tracking=True,
copy=False,
)
Loading
Loading