Skip to content

Commit 854696e

Browse files
committed
Merge PR #42 into 17.0
Signed-off-by rousseldenis
2 parents 56ee96d + 9d7ec14 commit 854696e

19 files changed

+1010
-0
lines changed

agreement_account/README.rst

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
=================
2+
Agreement Account
3+
=================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:d458d0727ff574f7c7eed6da2751d9674f63580d2b2c0b737234b7caff1a8a4a
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fagreement-lightgray.png?logo=github
20+
:target: https://github.com/OCA/agreement/tree/17.0/agreement_account
21+
:alt: OCA/agreement
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_account
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/agreement&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module adds *Agreement* field on invoices.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Bug Tracker
39+
===========
40+
41+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/agreement/issues>`_.
42+
In case of trouble, please check there if your issue has already been reported.
43+
If you spotted it first, help us to smash it by providing a detailed and welcomed
44+
`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**>`_.
45+
46+
Do not contact contributors directly about support or help with technical issues.
47+
48+
Credits
49+
=======
50+
51+
Authors
52+
-------
53+
54+
* Akretion
55+
56+
Contributors
57+
------------
58+
59+
- Alexis de Lattre <[email protected]>
60+
- Italo LOPES <[email protected]>
61+
62+
Maintainers
63+
-----------
64+
65+
This module is maintained by the OCA.
66+
67+
.. image:: https://odoo-community.org/logo.png
68+
:alt: Odoo Community Association
69+
:target: https://odoo-community.org
70+
71+
OCA, or the Odoo Community Association, is a nonprofit organization whose
72+
mission is to support the collaborative development of Odoo features and
73+
promote its widespread use.
74+
75+
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
76+
:target: https://github.com/alexis-via
77+
:alt: alexis-via
78+
.. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px
79+
:target: https://github.com/bealdav
80+
:alt: bealdav
81+
82+
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
83+
84+
|maintainer-alexis-via| |maintainer-bealdav|
85+
86+
This module is part of the `OCA/agreement <https://github.com/OCA/agreement/tree/17.0/agreement_account>`_ project on GitHub.
87+
88+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

agreement_account/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

agreement_account/__manifest__.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
2+
# @author: Alexis de Lattre <[email protected]>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Agreement Account",
7+
"summary": "Agreement on invoices",
8+
"version": "17.0.1.0.0",
9+
"category": "Contract",
10+
"author": "Akretion, Odoo Community Association (OCA)",
11+
"website": "https://github.com/OCA/agreement",
12+
"license": "AGPL-3",
13+
"depends": [
14+
"agreement",
15+
"account",
16+
],
17+
"data": [
18+
"security/ir.model.access.csv",
19+
"views/agreement.xml",
20+
"views/account_move.xml",
21+
],
22+
"development_status": "Beta",
23+
"maintainers": [
24+
"alexis-via",
25+
"bealdav",
26+
],
27+
"installable": True,
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * agreement_account
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: agreement_account
17+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
18+
msgid "# of Customer Invoices"
19+
msgstr ""
20+
21+
#. module: agreement_account
22+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__in_invoice_count
23+
msgid "# of Vendor Bills"
24+
msgstr ""
25+
26+
#. module: agreement_account
27+
#: model:ir.model,name:agreement_account.model_agreement
28+
#: model:ir.model.fields,field_description:agreement_account.field_account_bank_statement_line__agreement_id
29+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__agreement_id
30+
#: model:ir.model.fields,field_description:agreement_account.field_account_payment__agreement_id
31+
#: model_terms:ir.ui.view,arch_db:agreement_account.view_account_invoice_filter
32+
msgid "Agreement"
33+
msgstr ""
34+
35+
#. module: agreement_account
36+
#: model:ir.ui.menu,name:agreement_account.agreement_type_menu
37+
msgid "Agreement Types"
38+
msgstr ""
39+
40+
#. module: agreement_account
41+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__display_name
42+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__display_name
43+
msgid "Display Name"
44+
msgstr ""
45+
46+
#. module: agreement_account
47+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__id
48+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__id
49+
msgid "ID"
50+
msgstr ""
51+
52+
#. module: agreement_account
53+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__invoice_ids
54+
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
55+
msgid "Invoices"
56+
msgstr ""
57+
58+
#. module: agreement_account
59+
#: model:ir.model,name:agreement_account.model_account_move
60+
msgid "Journal Entry"
61+
msgstr ""
62+
63+
#. module: agreement_account
64+
#: model:ir.model.fields,field_description:agreement_account.field_account_move____last_update
65+
#: model:ir.model.fields,field_description:agreement_account.field_agreement____last_update
66+
msgid "Last Modified on"
67+
msgstr ""
68+
69+
#. module: agreement_account
70+
#: model:ir.actions.act_window,name:agreement_account.account_invoice_in_invoice_refund_action
71+
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
72+
msgid "Vendor Bills"
73+
msgstr ""

agreement_account/i18n/es.po

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * agreement_account
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-12-19 13:33+0000\n"
10+
"Last-Translator: Ivorra78 <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: es\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: agreement_account
20+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
21+
msgid "# of Customer Invoices"
22+
msgstr "# de Facturas de Cliente"
23+
24+
#. module: agreement_account
25+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__in_invoice_count
26+
msgid "# of Vendor Bills"
27+
msgstr "# de Facturas de Proveedores"
28+
29+
#. module: agreement_account
30+
#: model:ir.model,name:agreement_account.model_agreement
31+
#: model:ir.model.fields,field_description:agreement_account.field_account_bank_statement_line__agreement_id
32+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__agreement_id
33+
#: model:ir.model.fields,field_description:agreement_account.field_account_payment__agreement_id
34+
#: model_terms:ir.ui.view,arch_db:agreement_account.view_account_invoice_filter
35+
msgid "Agreement"
36+
msgstr "Acuerdo"
37+
38+
#. module: agreement_account
39+
#: model:ir.ui.menu,name:agreement_account.agreement_type_menu
40+
msgid "Agreement Types"
41+
msgstr "Tipos de Acuerdo"
42+
43+
#. module: agreement_account
44+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__display_name
45+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__display_name
46+
msgid "Display Name"
47+
msgstr "Mostrar Nombre"
48+
49+
#. module: agreement_account
50+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__id
51+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__id
52+
msgid "ID"
53+
msgstr "ID (identificación)"
54+
55+
#. module: agreement_account
56+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__invoice_ids
57+
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
58+
msgid "Invoices"
59+
msgstr "Facturas"
60+
61+
#. module: agreement_account
62+
#: model:ir.model,name:agreement_account.model_account_move
63+
msgid "Journal Entry"
64+
msgstr "Entrada en Diario"
65+
66+
#. module: agreement_account
67+
#: model:ir.model.fields,field_description:agreement_account.field_account_move____last_update
68+
#: model:ir.model.fields,field_description:agreement_account.field_agreement____last_update
69+
msgid "Last Modified on"
70+
msgstr "Última Modificación el"
71+
72+
#. module: agreement_account
73+
#: model:ir.actions.act_window,name:agreement_account.account_invoice_in_invoice_refund_action
74+
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
75+
msgid "Vendor Bills"
76+
msgstr "Facturas de Vendedor"

agreement_account/i18n/es_AR.po

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * agreement_account
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2022-02-06 20:59+0000\n"
10+
"Last-Translator: Ignacio Buioli <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: es_AR\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: agreement_account
20+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__out_invoice_count
21+
msgid "# of Customer Invoices"
22+
msgstr "# de Facturas de Cliente"
23+
24+
#. module: agreement_account
25+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__in_invoice_count
26+
msgid "# of Vendor Bills"
27+
msgstr "# de Facturas de Proveedores"
28+
29+
#. module: agreement_account
30+
#: model:ir.model,name:agreement_account.model_agreement
31+
#: model:ir.model.fields,field_description:agreement_account.field_account_bank_statement_line__agreement_id
32+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__agreement_id
33+
#: model:ir.model.fields,field_description:agreement_account.field_account_payment__agreement_id
34+
#: model_terms:ir.ui.view,arch_db:agreement_account.view_account_invoice_filter
35+
msgid "Agreement"
36+
msgstr "Acuerdo"
37+
38+
#. module: agreement_account
39+
#: model:ir.ui.menu,name:agreement_account.agreement_type_menu
40+
msgid "Agreement Types"
41+
msgstr "Tipos de Acuerdo"
42+
43+
#. module: agreement_account
44+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__display_name
45+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__display_name
46+
msgid "Display Name"
47+
msgstr "Mostrar Nombre"
48+
49+
#. module: agreement_account
50+
#: model:ir.model.fields,field_description:agreement_account.field_account_move__id
51+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__id
52+
msgid "ID"
53+
msgstr "ID"
54+
55+
#. module: agreement_account
56+
#: model:ir.model.fields,field_description:agreement_account.field_agreement__invoice_ids
57+
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
58+
msgid "Invoices"
59+
msgstr "Facturas"
60+
61+
#. module: agreement_account
62+
#: model:ir.model,name:agreement_account.model_account_move
63+
msgid "Journal Entry"
64+
msgstr "Apunte Contable"
65+
66+
#. module: agreement_account
67+
#: model:ir.model.fields,field_description:agreement_account.field_account_move____last_update
68+
#: model:ir.model.fields,field_description:agreement_account.field_agreement____last_update
69+
msgid "Last Modified on"
70+
msgstr "Última Modificación el"
71+
72+
#. module: agreement_account
73+
#: model:ir.actions.act_window,name:agreement_account.account_invoice_in_invoice_refund_action
74+
#: model_terms:ir.ui.view,arch_db:agreement_account.agreement_form
75+
msgid "Vendor Bills"
76+
msgstr "Facturas de Proveedores"

agreement_account/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import account_move
2+
from . import agreement
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
2+
# @author: Alexis de Lattre <[email protected]>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
6+
from odoo import fields, models
7+
8+
9+
class AccountMove(models.Model):
10+
_inherit = "account.move"
11+
12+
agreement_id = fields.Many2one(
13+
comodel_name="agreement",
14+
string="Agreement",
15+
ondelete="restrict",
16+
tracking=True,
17+
copy=False,
18+
)

0 commit comments

Comments
 (0)