first push message
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
Survey Multi-Company (Odoo 19)
|
||||
==============================
|
||||
|
||||
Adds multi-company support to the **Survey** module in Odoo 19 Community Edition.
|
||||
|
||||
What this module does
|
||||
---------------------
|
||||
* Adds a **Company** field (``company_id``) to ``survey.survey``.
|
||||
* Shows the field on the survey form view only when multi-company mode is
|
||||
active (``base.group_multi_company``).
|
||||
* Applies an ``ir.rule`` so that each internal user can only see surveys
|
||||
that belong to their allowed companies (or surveys with no company set).
|
||||
* Patches the survey web controller so that public/portal users who access
|
||||
a survey via a token are automatically switched to the correct company
|
||||
context, preventing wrong fiscal-position, currency, or sequence
|
||||
resolution.
|
||||
|
||||
Installation
|
||||
------------
|
||||
Copy this folder into your Odoo ``custom_addons`` directory and add it to
|
||||
``addons_path`` in your ``odoo.conf``, then install via
|
||||
**Settings → Apps → search "Survey company rules"**.
|
||||
|
||||
Upgrade notes from 15.0
|
||||
------------------------
|
||||
* Version bumped from ``15.0.1.0.1`` → ``19.0.1.0.0``.
|
||||
* ``company_id`` field now carries a ``default`` pointing to ``env.company``
|
||||
so new surveys are pre-assigned to the current company.
|
||||
* Security rule is now scoped to ``base.group_user`` (internal users only).
|
||||
Portal/public access is handled by the controller, not the rule.
|
||||
* View record given an explicit ``name`` attribute to avoid conflicts with
|
||||
other modules that also inherit the survey form.
|
||||
|
||||
License
|
||||
-------
|
||||
AGPL-3 — see https://www.gnu.org/licenses/agpl
|
||||
Reference in New Issue
Block a user