Repository navigation
Conversation
…artner fields The portal only needs the res.partner fields that partner_state reads when the portal layout tracks the partner. Reading the whole table also exposed fields like the AI prompts of ai_fields. Adds a test that opens /my as a portal user, which fails with a 403 without the bridge, and one that checks the portal sees only res.partner fields.
les-adhoc
force-pushed
the
20.0-t-76508-les
branch
from
November 2, 2026 17:27
711c624 to
83f82d3
Compare
Contributor
|
@roboadhoc r+ nobump rebase-ff |
|
Merge method set to rebase and fast-forward. |
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
…artner fields The portal only needs the res.partner fields that partner_state reads when the portal layout tracks the partner. Reading the whole table also exposed fields like the AI prompts of ai_fields. Adds a test that opens /my as a portal user, which fails with a 403 without the bridge, and one that checks the portal sees only res.partner fields. Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
closes #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
roboadhoc
pushed a commit
that referenced
this pull request
Nov 2, 2026
…artner fields The portal only needs the res.partner fields that partner_state reads when the portal layout tracks the partner. Reading the whole table also exposed fields like the AI prompts of ai_fields. Adds a test that opens /my as a portal user, which fails with a 403 without the bridge, and one that checks the portal sees only res.partner fields. Part-of: #155 Signed-off-by: Juan Carreras <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Tarea: https://www.adhoc.inc/odoo/project.task/76508
Migration of
portal_partner_stateto 20.0.upgrade_code19.4-00-ir-access:ir.model.access.csv→ir.access.csv, same xmlids, read-only access for portal users.ir.model.fieldsis now limited tores.partnerfields ([('model', '=', 'res.partner')]). That is whatpartner_statereads when the portal layout tracks the partner; before, portal users could read the whole table, AI prompts included.res.partnerfields, and can open/my(403 without this module).Depends on #154 (
partner_statemigration): this module does not install on 20.0 until #154 is merged, so runbot will fail here until then. The branches have different names and are not built together.Tested on a local 20.0 database with
partner_statefrom #154: installs (auto_install) and its 4 tests pass. Not tested on an upgraded database: runbot does not run the 19.0 → 20.0 upgrade yet.