Skip to content

Commit f9e8d20

Browse files
committed
Merge PR #2258 into 16.0
Signed-off-by NL66278
2 parents 620a74b + 3a969cd commit f9e8d20

File tree

16 files changed

+708
-0
lines changed

16 files changed

+708
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
=========================
2+
Partner Iterative Archive
3+
=========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:bec101ec929915ec604747a1b0d561b11a74b75d8665df4d6b73630c84124257
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%2Fpartner--contact-lightgray.png?logo=github
20+
:target: https://github.com/OCA/partner-contact/tree/16.0/partner_iterative_archive
21+
:alt: OCA/partner-contact
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_iterative_archive
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/partner-contact&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module automatically archives contacts when their parent is archived.
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/partner-contact/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/partner-contact/issues/new?body=module:%20partner_iterative_archive%0Aversion:%2016.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+
* Onestein
55+
56+
Contributors
57+
~~~~~~~~~~~~
58+
59+
* Antonio Esposito <a.esposito@onestein.nl>
60+
* Andrea Stirpe <a.stirpe@onestein.nl>
61+
* Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
62+
63+
Maintainers
64+
~~~~~~~~~~~
65+
66+
This module is maintained by the OCA.
67+
68+
.. image:: https://odoo-community.org/logo.png
69+
:alt: Odoo Community Association
70+
:target: https://odoo-community.org
71+
72+
OCA, or the Odoo Community Association, is a nonprofit organization whose
73+
mission is to support the collaborative development of Odoo features and
74+
promote its widespread use.
75+
76+
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/16.0/partner_iterative_archive>`_ project on GitHub.
77+
78+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2019-2020 Onestein (<https://www.onestein.eu>)
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Partner Iterative Archive",
6+
"summary": "Archive all contacts when parent is archived",
7+
"author": "Onestein, Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/partner-contact",
9+
"category": "Tools",
10+
"version": "16.0.1.0.0",
11+
"license": "AGPL-3",
12+
"depends": ["base"],
13+
"installable": True,
14+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * partner_iterative_archive
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-01-13 15:36+0000\n"
10+
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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: partner_iterative_archive
20+
#: model:ir.model,name:partner_iterative_archive.model_res_partner
21+
msgid "Contact"
22+
msgstr "Contacto"
23+
24+
#. module: partner_iterative_archive
25+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner__display_name
26+
msgid "Display Name"
27+
msgstr "Mostrar Nombre"
28+
29+
#. module: partner_iterative_archive
30+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner__id
31+
msgid "ID"
32+
msgstr "ID"
33+
34+
#. module: partner_iterative_archive
35+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner____last_update
36+
msgid "Last Modified on"
37+
msgstr "Última Modificación el"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * partner_iterative_archive
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-11-30 23:45+0000\n"
10+
"Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n"
11+
"Language-Team: none\n"
12+
"Language: it\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.14.1\n"
18+
19+
#. module: partner_iterative_archive
20+
#: model:ir.model,name:partner_iterative_archive.model_res_partner
21+
msgid "Contact"
22+
msgstr "Contatto"
23+
24+
#. module: partner_iterative_archive
25+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner__display_name
26+
msgid "Display Name"
27+
msgstr "Nome visualizzato"
28+
29+
#. module: partner_iterative_archive
30+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner__id
31+
msgid "ID"
32+
msgstr "ID"
33+
34+
#. module: partner_iterative_archive
35+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner____last_update
36+
msgid "Last Modified on"
37+
msgstr "Ultima modifica il"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * partner_iterative_archive
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: partner_iterative_archive
17+
#: model:ir.model,name:partner_iterative_archive.model_res_partner
18+
msgid "Contact"
19+
msgstr ""
20+
21+
#. module: partner_iterative_archive
22+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner__display_name
23+
msgid "Display Name"
24+
msgstr ""
25+
26+
#. module: partner_iterative_archive
27+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner__id
28+
msgid "ID"
29+
msgstr ""
30+
31+
#. module: partner_iterative_archive
32+
#: model:ir.model.fields,field_description:partner_iterative_archive.field_res_partner____last_update
33+
msgid "Last Modified on"
34+
msgstr ""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import res_partner
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2019-2020 Onestein (<https://www.onestein.eu>)
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import models
5+
6+
7+
class ResPartner(models.Model):
8+
_inherit = "res.partner"
9+
10+
def toggle_active(self):
11+
res = super().toggle_active()
12+
if self.env.context.get("skip_child_toggle_active"):
13+
return res
14+
for partner in self.filtered(lambda x: not x.active):
15+
partner.child_ids.filtered(lambda x: x.active).toggle_active()
16+
return res
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Antonio Esposito <a.esposito@onestein.nl>
2+
* Andrea Stirpe <a.stirpe@onestein.nl>
3+
* Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module automatically archives contacts when their parent is archived.

0 commit comments

Comments
 (0)