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

[17.0] [MIG] product_multi_company: Migration to 17.0 #625

Merged
merged 43 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
00b7694
product_multi_company
pedrobaeza Nov 28, 2015
dd567ff
product_multi_company: Migration to 9.0
pedrobaeza Dec 6, 2016
53353ac
OCA Transbot updated translations from Transifex
oca-transbot Dec 10, 2016
ad9cc89
[MIG] product_multi_company: Upgrade to v10
lasley Dec 26, 2016
00fbe5c
OCA Transbot updated translations from Transifex
oca-transbot Jun 17, 2017
fdd74c2
[MIG] *_multi_company: OpenUpgrade migration scripts
pedrobaeza Dec 15, 2017
d476c8f
OCA Transbot updated translations from Transifex
oca-transbot Dec 30, 2017
fdc6a88
[MIG] product_multi_company: Migration to 11.0
cubells Nov 16, 2018
c77b5d6
[MIG] product_multi_company: Remove migration scripts
pedrobaeza Jan 18, 2019
48c3db1
Migrate product_multi_company to version 12
florian-dacosta May 4, 2019
73db3ee
Fix product_multi_company description
florian-dacosta Jan 20, 2020
517def6
[IMP] product_multi_company: black, isort, prettier
JoanSForgeFlow Mar 30, 2020
a03d641
[MIG] product_multi_company: Migration to 13.0
JoanSForgeFlow Mar 30, 2020
ffe1db1
[MIG]product_multi_company: Migration to 13.0 (continue)
AaronHForgeFlow Jun 23, 2020
5cd0811
[FIX] product_multi_company: integrate tests with product_variant_con…
Jan 12, 2021
a73e5af
product_multi_company 13.0.1.0.1
OCA-git-bot Jan 12, 2021
eb9faaf
Translated using Weblate (Spanish)
anasuarez1 Mar 9, 2021
d9492e6
[IMP] product_multi_company: black, isort, prettier
rousseldenis Mar 9, 2021
23f947a
[14.0][MIG] product_multi_company
rousseldenis Mar 9, 2021
39f9cf9
[14.0][IMP] product_multi_company: Add tests common class
rousseldenis Jun 23, 2021
0c2856d
[14.0][IMP] product_multi_company: Create products not shared in corr…
rousseldenis Jun 23, 2021
e983c28
[14.0][FIX] product_multi_company: Add no_company_ids field
rousseldenis Jul 6, 2021
f6e2be1
[14.0][FIX] product_multi_company: Remove migration script
rousseldenis Jul 6, 2021
c8154cf
[40.0][IMP] product_multi_company: Add methods helpers for tests
rousseldenis Jul 7, 2021
146057c
[MIG] product_multi_company: Migration to 15.0
JasminSForgeFlow Feb 21, 2022
8fa5763
Update translation files
weblate Oct 9, 2023
6fad3ae
Translated using Weblate (Spanish)
Ivorra78 Oct 20, 2023
ec7b432
[MIG] product_multi_company: Migration to 16.0
Sep 26, 2023
ac431be
[MIG] product_multi_company: Continue migration to version 16.0
pilarvargas-tecnativa May 23, 2024
9ce0dc3
[IMP-FIX] product_multi_company: Remove dependency to stock
pilarvargas-tecnativa May 29, 2024
903329d
[UPD] Update product_multi_company.pot
May 29, 2024
ec36531
[BOT] post-merge updates
OCA-git-bot May 29, 2024
b314bb4
Update translation files
weblate May 29, 2024
db7033e
[FIX] product_multi_company: Don't change model description
pedrobaeza May 29, 2024
ece3f2c
[UPD] README.rst
OCA-git-bot May 29, 2024
979a242
[UPD] Update product_multi_company.pot
May 29, 2024
2463a60
Update translation files
weblate May 29, 2024
e2ad9c8
Added translation using Weblate (Italian)
mymage May 30, 2024
bd7ac0b
Translated using Weblate (Italian)
mymage May 30, 2024
61f2bdf
[FIX] product_multi_company: search in False
chienandalu Nov 19, 2024
722a41b
[BOT] post-merge updates
OCA-git-bot Nov 20, 2024
60c0991
[IMP] product_multi_company: pre-commit stuff
Nov 20, 2024
31991f8
[MIG] product_multi_company: Migration to 17.0
Nov 20, 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
104 changes: 104 additions & 0 deletions product_multi_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
=====================
Product multi-company
=====================

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

.. |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%2Fmulti--company-lightgray.png?logo=github
:target: https://github.com/OCA/multi-company/tree/17.0/product_multi_company
:alt: OCA/multi-company
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/multi-company-17-0/multi-company-17-0-product_multi_company
: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/multi-company&target_branch=17.0
:alt: Try me on Runboat

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

This modules allows to select in which of the companies you want to use
each of the product templates.

**Table of contents**

.. contents::
:local:

Installation
============

This module uses the post and uninstall hooks for updating default
product template security rule. This only means that updating the module
will not restore the security rule this module changes. Only a complete
removal and reinstallation will serve.

Usage
=====

On the product form view, go to the "General Information" tab, and put
the companies in which you want to use that product. If none is
selected, the product will be visible in all of them. The default value
is the current one.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/multi-company/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/multi-company/issues/new?body=module:%20product_multi_company%0Aversion:%2017.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
-------

* Tecnativa

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

- Pedro M. Baeza <[email protected]>
- Dave Lasley <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Vicent Cubells <[email protected]>
- Pilar Vargas

- Denis Roussel <[email protected]>
- `Sodexis <https://sodexis.com>`__:

- Prabakaran <[email protected]>
- Karthik <[email protected]>

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/multi-company <https://github.com/OCA/multi-company/tree/17.0/product_multi_company>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions product_multi_company/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from .hooks import post_init_hook
from .hooks import uninstall_hook
16 changes: 16 additions & 0 deletions product_multi_company/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2015-2016 Pedro M. Baeza <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Product multi-company",
"summary": "Select individually the product template visibility on each " "company",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/multi-company",
"category": "Product Management",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["base_multi_company", "product"],
"data": ["views/product_template_view.xml"],
"post_init_hook": "post_init_hook",
"uninstall_hook": "uninstall_hook",
}
37 changes: 37 additions & 0 deletions product_multi_company/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2015-2016 Pedro M. Baeza <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

import logging

_logger = logging.getLogger(__name__)

try:
from odoo.addons.base_multi_company import hooks
except ImportError:
_logger.info("Cannot find `base_multi_company` module in addons path.")

Check warning on line 11 in product_multi_company/hooks.py

View check run for this annotation

Codecov / codecov/patch

product_multi_company/hooks.py#L10-L11

Added lines #L10 - L11 were not covered by tests


def post_init_hook(env):
hooks.post_init_hook(
env,
"product.product_comp_rule",
"product.template",
)


def uninstall_hook(env):
"""Restore product rule to base value.

Args:
env (Environment): Environment to use for operation.
"""
rule = env.ref("product.product_comp_rule")
if rule: # safeguard if it's deleted
rule.write(
{
"domain_force": (
" ['|', ('company_id', 'parent_of', company_ids),"
" ('company_id', '=', False)]"
),
}
)
56 changes: 56 additions & 0 deletions product_multi_company/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_multi_company
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-15 16:43+0000\n"
"PO-Revision-Date: 2023-10-28 16:01+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_product__company_ids
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_ids
msgid "Companies"
msgstr "Compañías"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_id
msgid "Company"
msgstr "Compañía"

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_template
msgid "Product"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_product
msgid "Product Variant"
msgstr ""

#~ msgid "Product Template (Multi-Company)"
#~ msgstr "Plantilla de producto (multi-compañía)"

#~ msgid "No Companies"
#~ msgstr "No Compañías"

#~ msgid "Product Category"
#~ msgstr "Categoría de producto"

#~ msgid "Routes"
#~ msgstr "Rutas"

#~ msgid "Total routes"
#~ msgstr "Total de rutas"
40 changes: 40 additions & 0 deletions product_multi_company/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_multi_company
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-15 16:43+0000\n"
"PO-Revision-Date: 2017-06-15 16:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_product__company_ids
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_ids
msgid "Companies"
msgstr "Sociétés"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_id
msgid "Company"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_template
msgid "Product"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_product
msgid "Product Variant"
msgstr ""
44 changes: 44 additions & 0 deletions product_multi_company/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_multi_company
#
# Translators:
# Bole <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-27 07:37+0000\n"
"PO-Revision-Date: 2018-01-27 07:37+0000\n"
"Last-Translator: Bole <[email protected]>, 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_product__company_ids
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_ids
msgid "Companies"
msgstr "Tvrtke"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_id
msgid "Company"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_template
msgid "Product"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_product
msgid "Product Variant"
msgstr ""

#~ msgid "Product Template (Multi-Company)"
#~ msgstr "Predložak proizvoda ( više tvrtki)"
38 changes: 38 additions & 0 deletions product_multi_company/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_multi_company
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-05-30 13:37+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: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_product__company_ids
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_ids
msgid "Companies"
msgstr "Aziende"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_id
msgid "Company"
msgstr "Azienda"

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_template
msgid "Product"
msgstr "Prodotto"

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_product
msgid "Product Variant"
msgstr "Variante prodotto"
44 changes: 44 additions & 0 deletions product_multi_company/i18n/nl_NL.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_multi_company
#
# Translators:
# Peter Hageman <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-15 16:43+0000\n"
"PO-Revision-Date: 2017-06-15 16:43+0000\n"
"Last-Translator: Peter Hageman <[email protected]>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\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"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_product__company_ids
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_ids
msgid "Companies"
msgstr "Bedrijven"

#. module: product_multi_company
#: model:ir.model.fields,field_description:product_multi_company.field_product_template__company_id
msgid "Company"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_template
msgid "Product"
msgstr ""

#. module: product_multi_company
#: model:ir.model,name:product_multi_company.model_product_product
msgid "Product Variant"
msgstr ""

#~ msgid "Product Template (Multi-Company)"
#~ msgstr "Productsjabloon (Meerdere Bedrijven)"
Loading
Loading