{ "info": { "author": "LasLabs, Tecnativa, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Programming Language :: Python" ], "description": "==================\nMulti Company Base\n==================\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n :target: https://odoo-community.org/page/development-status\n :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png\n :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html\n :alt: License: LGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmulti--company-lightgray.png?logo=github\n :target: https://github.com/OCA/multi-company/tree/12.0/base_multi_company\n :alt: OCA/multi-company\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/multi-company-12-0/multi-company-12-0-base_multi_company\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png\n :target: https://runbot.odoo-community.org/runbot/133/12.0\n :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module provides an abstract model to be inherited by models that need\nto implement multi-company functionality.\n\nNo direct functionality is provided by this module.\n\n**Table of contents**\n\n.. contents::\n :local:\n\nUsage\n=====\n\nImplementation\n~~~~~~~~~~~~~~\n\nMulti Company Abstract\n----------------------\n\nThe `multi.company.abstract` model is meant to be inherited by any model that\nwants to implement multi-company functionality. The logic does not require a\npre-existing company field on the inheriting model, but will not be affected\nif one does exist.\n\nWhen inheriting the `multi.company.abstract` model, you must take care that\nit is the first model listed in the `_inherit` array\n\n.. code-block:: python\n\n class ProductTemplate(models.Model):\n _inherit = [\"multi.company.abstract\", \"product.template\"]\n _name = \"product.template\"\n _description = \"Product Template (Multi-Company)\"\n\nThe following fields are provided by `multi.company.abstract`:\n\n* `company_ids` - All of the companies that this record belongs to. This is a\n special `res.company.assignment` view, which allows for the circumvention of\n standard cross-company security policies. These policies would normally\n restrict a user from seeing another company unless it is currently operating\n under that company. Be aware of apples to oranges issues when comparing the\n records from this field against actual company records.\n* `company_id` - Passes through a singleton company based on the current user,\n and the allowed companies for the record.\n\nHooks\n-----\n\nA generic `post_init_hook` and `uninstall_hook` is provided, which will alter\na pre-existing single-company security rule to be multi-company aware.\n\nThese hooks will unfortunately not work in every circumstance, but they cut out\nsignificant boilerplate when relevant.\n\n.. code-block:: python\n\n import logging\n\n _logger = logging.getLogger(__name__)\n\n try:\n from odoo.addons.base_multi_company import hooks\n except ImportError:\n _logger.info('Cannot find `base_multi_company` module in addons path.')\n\n\n def post_init_hook(cr, registry):\n hooks.post_init_hook(\n cr,\n 'product.product_comp_rule',\n 'product.template',\n )\n\n\n def uninstall_hook(cr, registry):\n hooks.uninstall_hook(\n cr,\n 'product.product_comp_rule',\n )\n\nA module implementing these hooks would need to first identify the proper rule\nfor the record (`product.product_comp_rule` in the above example).\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback `_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* LasLabs\n* Tecnativa\n\nContributors\n~~~~~~~~~~~~\n\n* Dave Lasley \n* Pedro M. Baeza \n* Laurent Mignon \n* C\u00e9dric Pigeon \n* Rodrigo Ferreira \n* Florian da Costa \n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nThis module is part of the `OCA/multi-company `_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OCA/multi-company", "keywords": "", "license": "LGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo12-addon-base-multi-company", "package_url": "https://pypi.org/project/odoo12-addon-base-multi-company/", "platform": "", "project_url": "https://pypi.org/project/odoo12-addon-base-multi-company/", "project_urls": { "Homepage": "https://github.com/OCA/multi-company" }, "release_url": "https://pypi.org/project/odoo12-addon-base-multi-company/12.0.1.0.0.99.dev8/", "requires_dist": [ "odoo (<12.1dev,>=12.0a)" ], "requires_python": ">=3.5", "summary": "Provides a base for adding multi-company support to models.", "version": "12.0.1.0.0.99.dev8" }, "last_serial": 5877491, "releases": { "12.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "16229573daf6fee49385dee5ad50a195", "sha256": "f7bb28b2a7f60989c076419d0aeb4ad9c7989902c688e9477667387a7db46a5b" }, "downloads": -1, "filename": "odoo12_addon_base_multi_company-12.0.1.0.0.99.dev4-py3-none-any.whl", "has_sig": false, "md5_digest": "16229573daf6fee49385dee5ad50a195", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 36659, "upload_time": "2019-09-21T04:39:56", "url": "https://files.pythonhosted.org/packages/58/c8/bbc50f8bd1266b495b0aebab83de0b3b19ba7fd12e3e08069a98369acb24/odoo12_addon_base_multi_company-12.0.1.0.0.99.dev4-py3-none-any.whl" } ], "12.0.1.0.0.99.dev8": [ { "comment_text": "", "digests": { "md5": "6178ef3b3f71b03032b1d9f23ad336ac", "sha256": "eaf63e7b224c00efc000941279bdc2567097782ddc6e802d5da6d9eb93f18424" }, "downloads": -1, "filename": "odoo12_addon_base_multi_company-12.0.1.0.0.99.dev8-py3-none-any.whl", "has_sig": false, "md5_digest": "6178ef3b3f71b03032b1d9f23ad336ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 37697, "upload_time": "2019-09-24T04:39:44", "url": "https://files.pythonhosted.org/packages/c3/46/a6d2c9a801f5c12afb685d43747936ded9d4dfc8ea1a81d6c0c3e9a3dcfc/odoo12_addon_base_multi_company-12.0.1.0.0.99.dev8-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6178ef3b3f71b03032b1d9f23ad336ac", "sha256": "eaf63e7b224c00efc000941279bdc2567097782ddc6e802d5da6d9eb93f18424" }, "downloads": -1, "filename": "odoo12_addon_base_multi_company-12.0.1.0.0.99.dev8-py3-none-any.whl", "has_sig": false, "md5_digest": "6178ef3b3f71b03032b1d9f23ad336ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 37697, "upload_time": "2019-09-24T04:39:44", "url": "https://files.pythonhosted.org/packages/c3/46/a6d2c9a801f5c12afb685d43747936ded9d4dfc8ea1a81d6c0c3e9a3dcfc/odoo12_addon_base_multi_company-12.0.1.0.0.99.dev8-py3-none-any.whl" } ] }