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

Syncing from upstream OCA/partner-contact (18.0) #1320

Merged
merged 39 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
baee0d9
[ADD] account_partner_company_group
yankinmax Mar 24, 2022
ae42c03
[MIG] account_partner_company_group: Migration to 16.0
Highcooley May 10, 2023
f6e67de
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Jul 14, 2023
d04512b
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
a62ecbc
Added translation using Weblate (Italian)
mymage Dec 27, 2023
11d6aa7
[IMP] account_partner_company_group: black, isort, prettier
May 6, 2024
5d76665
[MIG] account_partner_company_group: Migration to 17.0
May 13, 2024
026a15b
[UPD] Update account_partner_company_group.pot
May 21, 2024
d2ba787
[BOT] post-merge updates
OCA-git-bot May 21, 2024
62570d9
Update translation files
weblate May 21, 2024
3ba42f1
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
14c37db
[MIG] account_partner_company_group: Migration to 18.0
nguyenminhchien Oct 9, 2024
dabe6ab
[ADD] sale_partner_company_group
yankinmax Mar 24, 2022
af2ff93
[FIX] partner_company_group: avoid non-deterministic error
MiquelRForgeFlow Jan 9, 2023
e39b230
[MIG] sale_partner_company_group: Migration to 16.0
Highcooley May 10, 2023
c258d4a
Update translation files
weblate Aug 8, 2023
7c9d2ee
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
ed65380
Added translation using Weblate (Italian)
mymage Dec 27, 2023
256fc04
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Dec 28, 2023
6d4772f
[IMP] sale_partner_company_group: black, isort, prettier
Apr 2, 2024
259fe49
[MIG] sale_partner_company_group: Migration to 17.0
May 13, 2024
4b902eb
[UPD] Update sale_partner_company_group.pot
May 21, 2024
deae776
[BOT] post-merge updates
OCA-git-bot May 21, 2024
cb25abf
Update translation files
weblate May 21, 2024
8b6fae2
Translated using Weblate (Italian)
mymage May 22, 2024
9e051bc
[IMP] partner_contact_role: pre-commit execution
jdidderen-nsi Aug 7, 2024
ec61911
[IMP] sale_partner_company_group: test performance improvement
josep-tecnativa Oct 23, 2023
05a5a9b
oca-port: blacklist PR(s) 1247 for sale_partner_company_group
nguyenminhchien Oct 9, 2024
408a154
[MIG] sale_partner_company_group: Migration to 18.0
nguyenminhchien Oct 9, 2024
23901a2
Merge PR #1874 into 18.0
OCA-git-bot Dec 2, 2024
d1ed205
[UPD] Update partner_identification.pot
Dec 2, 2024
3c351b8
[UPD] Update sale_partner_company_group.pot
Dec 2, 2024
fc04219
[BOT] post-merge updates
OCA-git-bot Dec 2, 2024
cd46027
Update translation files
weblate Dec 2, 2024
0a5b3f7
Update translation files
weblate Dec 2, 2024
c205bfc
Merge PR #1872 into 18.0
OCA-git-bot Dec 2, 2024
6173ecc
[UPD] Update account_partner_company_group.pot
Dec 2, 2024
1eedfe9
[BOT] post-merge updates
OCA-git-bot Dec 2, 2024
053437f
Update translation files
weblate Dec 2, 2024
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
5 changes: 5 additions & 0 deletions .oca/oca-port/blacklist/sale_partner_company_group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"pull_requests": {
"1247": "(auto) Nothing to port from PR #1247"
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_partner_company_group](account_partner_company_group/) | 18.0.1.0.0 | | Adds the possibility to add a company group to a company
[base_location](base_location/) | 18.0.1.0.0 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) | Enhanced zip/npa management system
[base_partner_company_group](base_partner_company_group/) | 18.0.1.0.0 | | Adds the possibility to add a company group to a company
[base_partner_sequence](base_partner_sequence/) | 18.0.1.0.0 | | Sets customer's code from a sequence
Expand All @@ -30,6 +31,7 @@ addon | version | maintainers | summary
[partner_pricelist_search](partner_pricelist_search/) | 18.0.1.0.0 | | Partner pricelist search
[partner_ref_unique](partner_ref_unique/) | 18.0.1.0.0 | | Add an unique constraint to partner ref field
[partner_tz](partner_tz/) | 18.0.1.0.0 | | Remove partner timezone default value and display on form
[sale_partner_company_group](sale_partner_company_group/) | 18.0.1.0.0 | | Adds the possibility to add a company group to a company

[//]: # (end addons)

Expand Down
89 changes: 89 additions & 0 deletions account_partner_company_group/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
=============================
Account Partner Company Group
=============================

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

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

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

This Module adds a company group field to invoices. For more details
investigate in base_partner_company_group.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/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/partner-contact/issues/new?body=module:%20account_partner_company_group%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
-------

* Camptocamp SA

Contributors
------------

- Timon Tschanz <timon.tschanz@camptocamp.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda

- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

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.

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/account_partner_company_group>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions account_partner_company_group/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import pre_init_hook
14 changes: 14 additions & 0 deletions account_partner_company_group/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Account Partner Company Group",
"summary": "Adds the possibility to add a company group to a company",
"version": "18.0.1.0.0",
"category": "Sales",
"author": "Camptocamp SA, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["base_partner_company_group", "account"],
"website": "https://github.com/OCA/partner-contact",
"data": ["views/account_move_views.xml"],
"installable": True,
}
15 changes: 15 additions & 0 deletions account_partner_company_group/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging


def pre_init_hook(env):
"""Prepopulate stored related fields for faster installation"""
logger = logging.getLogger(__name__)
logger.info("Prepopulating stored related fields")
env.execute(
"""
ALTER TABLE account_move
ADD COLUMN IF NOT EXISTS company_group_id integer;
"""
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_bank_statement_line__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move__company_group_id
#: model_terms:ir.ui.view,arch_db:account_partner_company_group.view_account_invoice_filter
msgid "Company Group"
msgstr ""

#. module: account_partner_company_group
#: model:ir.model,name:account_partner_company_group.model_account_move
msgid "Journal Entry"
msgstr ""
32 changes: 32 additions & 0 deletions account_partner_company_group/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-31 08:13+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: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_bank_statement_line__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move__company_group_id
#: model_terms:ir.ui.view,arch_db:account_partner_company_group.view_account_invoice_filter
msgid "Company Group"
msgstr "Grupo compañía"

#. module: account_partner_company_group
#: model:ir.model,name:account_partner_company_group.model_account_move
msgid "Journal Entry"
msgstr "Entrada diaria"

#~ msgid "Company group"
#~ msgstr "Grupo compañía"
32 changes: 32 additions & 0 deletions account_partner_company_group/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-27 11:42+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: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_bank_statement_line__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move__company_group_id
#: model_terms:ir.ui.view,arch_db:account_partner_company_group.view_account_invoice_filter
msgid "Company Group"
msgstr "Azienda capogruppo"

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

#~ msgid "Company group"
#~ msgstr "Azienda capogruppo"
46 changes: 46 additions & 0 deletions account_partner_company_group/i18n/partner_company_group.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_company_group
#
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: account_partner_company_group
#: model_terms:ir.ui.view,arch_db:account_partner_company_group.view_account_invoice_filter
msgid "Company Group"
msgstr ""

#. module: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_bank_statement_line__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_payment__company_group_id
msgid "Company group"
msgstr ""

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

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

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

#. module: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move____last_update
msgid "Last Modified on"
msgstr ""
32 changes: 32 additions & 0 deletions account_partner_company_group/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-14 03:12+0000\n"
"Last-Translator: Adriano Prado <adrianojprado@gmail.com>\n"
"Language-Team: none\n"
"Language: pt_BR\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: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_bank_statement_line__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move__company_group_id
#: model_terms:ir.ui.view,arch_db:account_partner_company_group.view_account_invoice_filter
msgid "Company Group"
msgstr "Grupo de Empresas"

#. module: account_partner_company_group
#: model:ir.model,name:account_partner_company_group.model_account_move
msgid "Journal Entry"
msgstr "Entrada de Diário"

#~ msgid "Company group"
#~ msgstr "Grupo de Empresas"
33 changes: 33 additions & 0 deletions account_partner_company_group/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-03-21 14:13+0000\n"
"Last-Translator: Dong <dong@freshoo.cn>\n"
"Language-Team: none\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.10\n"

#. module: account_partner_company_group
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_bank_statement_line__company_group_id
#: model:ir.model.fields,field_description:account_partner_company_group.field_account_move__company_group_id
#: model_terms:ir.ui.view,arch_db:account_partner_company_group.view_account_invoice_filter
msgid "Company Group"
msgstr "集团公司"

#. module: account_partner_company_group
#: model:ir.model,name:account_partner_company_group.model_account_move
#, fuzzy
msgid "Journal Entry"
msgstr "会计分录"

#~ msgid "Company group"
#~ msgstr "集团公司"
1 change: 1 addition & 0 deletions account_partner_company_group/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
12 changes: 12 additions & 0 deletions account_partner_company_group/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


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

company_group_id = fields.Many2one(
related="partner_id.company_group_id", store=True
)
3 changes: 3 additions & 0 deletions account_partner_company_group/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
5 changes: 5 additions & 0 deletions account_partner_company_group/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Timon Tschanz \<<timon.tschanz@camptocamp.com>\>
- Yannick Vaucher \<<yannick.vaucher@camptocamp.com>\>
- [Tecnativa](https://www.tecnativa.com):
- Ernesto Tejeda
- Tharathip Chaweewongphan \<<tharathipc@ecosoft.co.th>\>
1 change: 1 addition & 0 deletions account_partner_company_group/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.
2 changes: 2 additions & 0 deletions account_partner_company_group/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This Module adds a company group field to invoices. For more details
investigate in base_partner_company_group.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading