diff --git a/utm_source_multi_company/README.rst b/utm_source_multi_company/README.rst index 57c7ee6bf65..7cfb0eaf9f3 100644 --- a/utm_source_multi_company/README.rst +++ b/utm_source_multi_company/README.rst @@ -7,7 +7,7 @@ Utm Source Multi Company !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:34671f4e063b60e76b7e690fd205d4b7d1f0c00810febcbc7c623e925cb7eadd + !! source digest: sha256:1e815a3f156ed0e7e1d2a477a1340bb799b67e111ac6e322b868dba102ecc814 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Utm Source Multi Company :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/12.0/utm_source_multi_company + :target: https://github.com/OCA/multi-company/tree/15.0/utm_source_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-12-0/multi-company-12-0-utm_source_multi_company + :target: https://translation.odoo-community.org/projects/multi-company-15-0/multi-company-15-0-utm_source_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=12.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/multi-company&target_branch=15.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -41,7 +41,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -71,6 +71,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/multi-company `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/utm_source_multi_company/__manifest__.py b/utm_source_multi_company/__manifest__.py index 41cda84c08e..4f47c2aa301 100644 --- a/utm_source_multi_company/__manifest__.py +++ b/utm_source_multi_company/__manifest__.py @@ -5,7 +5,7 @@ "name": "Utm Source Multi Company", "summary": """ This module add multi-company management to utm source""", - "version": "12.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/multi-company", diff --git a/utm_source_multi_company/i18n/utm_source_multi_company.pot b/utm_source_multi_company/i18n/utm_source_multi_company.pot index 126c841efbb..2b4856d10da 100644 --- a/utm_source_multi_company/i18n/utm_source_multi_company.pot +++ b/utm_source_multi_company/i18n/utm_source_multi_company.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * utm_source_multi_company +# * utm_source_multi_company # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -22,4 +22,3 @@ msgstr "" #: model:ir.model,name:utm_source_multi_company.model_utm_source msgid "UTM Source" msgstr "" - diff --git a/utm_source_multi_company/models/utm_source.py b/utm_source_multi_company/models/utm_source.py index c3f1f15fe13..c6e8050b7a2 100644 --- a/utm_source_multi_company/models/utm_source.py +++ b/utm_source_multi_company/models/utm_source.py @@ -11,6 +11,6 @@ class UtmSource(models.Model): company_id = fields.Many2one( "res.company", "Company", - default=lambda self: self.env["res.company"]._company_default_get("utm.source"), + default=lambda self: self.env.company, ondelete="cascade", ) diff --git a/utm_source_multi_company/security/utm_source.xml b/utm_source_multi_company/security/utm_source.xml index 64872061e94..5fbb6ea59f6 100644 --- a/utm_source_multi_company/security/utm_source.xml +++ b/utm_source_multi_company/security/utm_source.xml @@ -6,7 +6,7 @@ Utm Source multi company rule - ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + ['|',('company_id','=',False),('company_id','in',company_ids)] diff --git a/utm_source_multi_company/static/description/index.html b/utm_source_multi_company/static/description/index.html index 3c9ac8738e0..65bb6065994 100644 --- a/utm_source_multi_company/static/description/index.html +++ b/utm_source_multi_company/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,9 +366,9 @@

Utm Source Multi Company

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:34671f4e063b60e76b7e690fd205d4b7d1f0c00810febcbc7c623e925cb7eadd +!! source digest: sha256:1e815a3f156ed0e7e1d2a477a1340bb799b67e111ac6e322b868dba102ecc814 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/multi-company Translate me on Weblate Try me on Runboat

This module add multi-company management to utm source

Table of contents

@@ -388,7 +387,7 @@

Bug Tracker

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -412,7 +411,7 @@

Maintainers

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 project on GitHub.

+

This module is part of the OCA/multi-company project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.