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] sale_partner_company_group: Migration to 18.0 #1874

Open
wants to merge 17 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
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"
}
}
89 changes: 89 additions & 0 deletions sale_partner_company_group/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
==========================
Sale Partner Company Group
==========================

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

.. |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/sale_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-sale_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 sale orders. 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:%20sale_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 <[email protected]>
- Yannick Vaucher <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda

- Tharathip Chaweewongphan <[email protected]>

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/sale_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 sale_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 sale_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": "Sale 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", "sale"],
"website": "https://github.com/OCA/partner-contact",
"data": ["views/sale_order_view.xml"],
"installable": True,
}
15 changes: 15 additions & 0 deletions sale_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(

Check warning on line 10 in sale_partner_company_group/hooks.py

View check run for this annotation

Codecov / codecov/patch

sale_partner_company_group/hooks.py#L8-L10

Added lines #L8 - L10 were not covered by tests
"""
ALTER TABLE sale_order
ADD COLUMN IF NOT EXISTS company_group_id integer;
"""
)
52 changes: 52 additions & 0 deletions sale_partner_company_group/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_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 <[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: sale_partner_company_group
#: model:ir.model.fields,field_description:sale_partner_company_group.field_sale_order__company_group_id
#: model_terms:ir.ui.view,arch_db:sale_partner_company_group.view_sales_order_filter
msgid "Company Group"
msgstr "Grupo compañía"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid ""
"The company group %(company_group)s has the pricelist %(pricelist)s, that is "
"different than the pricelist set on this contact"
msgstr ""

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid "Warning"
msgstr "Aviso"

#~ msgid "Company group"
#~ msgstr "Grupo compañía"
54 changes: 54 additions & 0 deletions sale_partner_company_group/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-05-22 10:39+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 4.17\n"

#. module: sale_partner_company_group
#: model:ir.model.fields,field_description:sale_partner_company_group.field_sale_order__company_group_id
#: model_terms:ir.ui.view,arch_db:sale_partner_company_group.view_sales_order_filter
msgid "Company Group"
msgstr "Azienda capogruppo"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_res_partner
msgid "Contact"
msgstr "Contatto"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid ""
"The company group %(company_group)s has the pricelist %(pricelist)s, that is "
"different than the pricelist set on this contact"
msgstr ""
"Il gruppo azienda %(company_group)s ha il listino %(pricelist)s, che è "
"diverso dal listino impostato in questo contatto"

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid "Warning"
msgstr "Attenzione"

#~ msgid "Company group"
#~ msgstr "Azienda capogruppo"
52 changes: 52 additions & 0 deletions sale_partner_company_group/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_partner_company_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-28 23:41+0000\n"
"Last-Translator: Adriano Prado <[email protected]>\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: sale_partner_company_group
#: model:ir.model.fields,field_description:sale_partner_company_group.field_sale_order__company_group_id
#: model_terms:ir.ui.view,arch_db:sale_partner_company_group.view_sales_order_filter
msgid "Company Group"
msgstr "Grupo Empresarial"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_res_partner
msgid "Contact"
msgstr "Contato"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_sale_order
msgid "Sales Order"
msgstr "Pedidos Venda"

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid ""
"The company group %(company_group)s has the pricelist %(pricelist)s, that is "
"different than the pricelist set on this contact"
msgstr ""

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid "Warning"
msgstr "Aviso"

#~ msgid "Company group"
#~ msgstr "Grupo Empresarial"
47 changes: 47 additions & 0 deletions sale_partner_company_group/i18n/sale_partner_company_group.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_partner_company_group
#
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: sale_partner_company_group
#: model:ir.model.fields,field_description:sale_partner_company_group.field_sale_order__company_group_id
#: model_terms:ir.ui.view,arch_db:sale_partner_company_group.view_sales_order_filter
msgid "Company Group"
msgstr ""

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_res_partner
msgid "Contact"
msgstr ""

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid ""
"The company group %(company_group)s has the pricelist %(pricelist)s, that is"
" different than the pricelist set on this contact"
msgstr ""

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid "Warning"
msgstr ""
52 changes: 52 additions & 0 deletions sale_partner_company_group/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_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 <[email protected]>\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: sale_partner_company_group
#: model:ir.model.fields,field_description:sale_partner_company_group.field_sale_order__company_group_id
#: model_terms:ir.ui.view,arch_db:sale_partner_company_group.view_sales_order_filter
msgid "Company Group"
msgstr "集团公司"

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_res_partner
msgid "Contact"
msgstr ""

#. module: sale_partner_company_group
#: model:ir.model,name:sale_partner_company_group.model_sale_order
msgid "Sales Order"
msgstr "销售订单"

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid ""
"The company group %(company_group)s has the pricelist %(pricelist)s, that is "
"different than the pricelist set on this contact"
msgstr ""

#. module: sale_partner_company_group
#. odoo-python
#: code:addons/sale_partner_company_group/models/res_partner.py:0
#, python-format
msgid "Warning"
msgstr ""

#~ msgid "Company group"
#~ msgstr "集团公司"
2 changes: 2 additions & 0 deletions sale_partner_company_group/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import sale_order
from . import res_partner
Loading
Loading