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] product_multi_company: Migration to 18.0 #726

Open
wants to merge 49 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
aa1f4d0
product_multi_company
pedrobaeza Nov 28, 2015
1e244cb
product_multi_company: Migration to 9.0
pedrobaeza Dec 6, 2016
55ccc17
OCA Transbot updated translations from Transifex
oca-transbot Dec 10, 2016
9470a23
[MIG] product_multi_company: Upgrade to v10
lasley Dec 26, 2016
c495e45
OCA Transbot updated translations from Transifex
oca-transbot Jun 17, 2017
02da3f8
[MIG] *_multi_company: OpenUpgrade migration scripts
pedrobaeza Dec 15, 2017
37b228b
OCA Transbot updated translations from Transifex
oca-transbot Dec 30, 2017
4ecfa55
[MIG] product_multi_company: Migration to 11.0
cubells Nov 16, 2018
711aa9a
[MIG] product_multi_company: Remove migration scripts
pedrobaeza Jan 18, 2019
603dde9
Migrate product_multi_company to version 12
florian-dacosta May 4, 2019
51337ae
Fix product_multi_company description
florian-dacosta Jan 20, 2020
6c58469
[IMP] product_multi_company: black, isort, prettier
JoanSForgeFlow Mar 30, 2020
8653d5a
[MIG] product_multi_company: Migration to 13.0
JoanSForgeFlow Mar 30, 2020
1c7babd
[MIG]product_multi_company: Migration to 13.0 (continue)
AaronHForgeFlow Jun 23, 2020
a3efb61
[FIX] product_multi_company: integrate tests with product_variant_con…
Jan 12, 2021
1168db1
product_multi_company 13.0.1.0.1
OCA-git-bot Jan 12, 2021
85dcf62
Translated using Weblate (Spanish)
anasuarez1 Mar 9, 2021
5d1847b
[IMP] product_multi_company: black, isort, prettier
rousseldenis Mar 9, 2021
d9d9df2
[14.0][MIG] product_multi_company
rousseldenis Mar 9, 2021
212169b
[14.0][IMP] product_multi_company: Add tests common class
rousseldenis Jun 23, 2021
93ded89
[14.0][IMP] product_multi_company: Create products not shared in corr…
rousseldenis Jun 23, 2021
eb27a0b
[14.0][FIX] product_multi_company: Add no_company_ids field
rousseldenis Jul 6, 2021
a72ed66
[14.0][FIX] product_multi_company: Remove migration script
rousseldenis Jul 6, 2021
aa3d6a6
[40.0][IMP] product_multi_company: Add methods helpers for tests
rousseldenis Jul 7, 2021
a5f8909
[MIG] product_multi_company: Migration to 15.0
JasminSForgeFlow Feb 21, 2022
19d40ec
Update translation files
weblate Oct 9, 2023
d30fc74
Translated using Weblate (Spanish)
Ivorra78 Oct 20, 2023
70cc8c0
[MIG] product_multi_company: Migration to 16.0
prabakaran04 Sep 26, 2023
8120766
[MIG] product_multi_company: Continue migration to version 16.0
pilarvargas-tecnativa May 23, 2024
1fdb574
[IMP-FIX] product_multi_company: Remove dependency to stock
pilarvargas-tecnativa May 29, 2024
9bec787
[UPD] Update product_multi_company.pot
May 29, 2024
8910388
[BOT] post-merge updates
OCA-git-bot May 29, 2024
d27c674
Update translation files
weblate May 29, 2024
249a58b
[FIX] product_multi_company: Don't change model description
pedrobaeza May 29, 2024
5df6635
[UPD] README.rst
OCA-git-bot May 29, 2024
6b40c3a
[UPD] Update product_multi_company.pot
May 29, 2024
f033931
Update translation files
weblate May 29, 2024
81085ac
Added translation using Weblate (Italian)
mymage May 30, 2024
2dffeb9
Translated using Weblate (Italian)
mymage May 30, 2024
b240644
[FIX] product_multi_company: search in False
chienandalu Nov 19, 2024
3ff71e6
[BOT] post-merge updates
OCA-git-bot Nov 20, 2024
2eca332
[IMP] product_multi_company: pre-commit stuff
Nov 20, 2024
98b4125
[MIG] product_multi_company: Migration to 17.0
Nov 20, 2024
baa145a
[UPD] Update product_multi_company.pot
Nov 21, 2024
a431e49
[BOT] post-merge updates
OCA-git-bot Nov 21, 2024
9168f74
Update translation files
weblate Nov 21, 2024
4c6184a
[IMP] product_multi_company: pre-commit stuff
BertVGroenendael Nov 26, 2024
4437b25
[18.0][MIG] product_multi_company: Migration to 18.0
BertVGroenendael Nov 26, 2024
e3d09b7
[ADD] test-requirements.txt on PR #708
BertVGroenendael Nov 26, 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
108 changes: 108 additions & 0 deletions product_multi_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=====================
Product multi-company
=====================

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

.. |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/18.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-18-0/multi-company-18-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=18.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:%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
-------

* 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]>

- `Dynapps <https://www.dynapps.eu>`__:

- Bert Van Groenendael <[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/18.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": "18.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.")


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