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

[18.0][MIG] agreement_account: Migration to 18.0 #58

Open
wants to merge 18 commits into
base: 18.0
Choose a base branch
from
Open
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
91 changes: 91 additions & 0 deletions agreement_account/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
=================
Agreement Account
=================

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

.. |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/18.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-18-0/agreement-18-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=18.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:%2018.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]>
- Italo LOPES <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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/18.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 <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Agreement Account",
"summary": "Agreement on invoices",
"version": "18.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,
}
55 changes: 55 additions & 0 deletions agreement_account/i18n/agreement_account.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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_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.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 ""
67 changes: 67 additions & 0 deletions agreement_account/i18n/es.po
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:
# * 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 <[email protected]>\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_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.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"

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID (identificación)"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"
67 changes: 67 additions & 0 deletions agreement_account/i18n/es_AR.po
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:
# * 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 <[email protected]>\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_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.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"

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"
58 changes: 58 additions & 0 deletions agreement_account/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * agreement_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-10-25 20:06+0000\n"
"Last-Translator: mymage <[email protected]>\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: agreement_account
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
msgid "# of Customer Invoices"
msgstr "N° fatture cliente"

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

#. 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 "Contratto"

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

#. 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 "Fatture"

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

#. 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 "Fatture fornitore"
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 <[email protected]>
# 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