Skip to content

[18.0][FIX] access rights inconsistencies#1336

Open
jans23 wants to merge 2 commits into
OCA:18.0from
Nitrokey:18.0-fix-loyality-access-rights-inconsistency
Open

[18.0][FIX] access rights inconsistencies#1336
jans23 wants to merge 2 commits into
OCA:18.0from
Nitrokey:18.0-fix-loyality-access-rights-inconsistency

Conversation

@jans23
Copy link
Copy Markdown

@jans23 jans23 commented Apr 23, 2026

This PR fixes the following warning (similar ones with different XMLID) which occurred during system update.

WARNING ? odoo.addons.base.models.ir_ui_view: <b>Access Rights Inconsistency</b><br/>This view may not work for all users: some users may have a combination of
 groups where the elements <b><tt>&lt;button&gt;</tt></b> are displayed, but they depend on the field <b><tt>loyalty_card_count</tt></b> that is not accessible. You might fix this by mo
difying user groups to make sure that all users who have access to those elements also have access to the field, typically via group implications. Alternatively, you could adjust the “<
i>groups</i>” or “<i>invisible</i>” attributes for these fields, to make sure they are always available together.<br/>Debugging information:<br/>- field “loyalty_card_count” is accessib
le for groups: &#39;base.group_user&#39;<br/>- element “&lt;button name=&#34;action_view_loyalty_cards&#34; type=&#34;object&#34; class=&#34;oe_stat_button&#34; icon=&#34;fa-money&#34; 
groups=&#34;base.group_system,sales_team.group_sale_salesman&#34; invisible=&#34;loyalty_card_count == 0&#34;/&gt;” is shown in the view for groups: (&#39;base.group_portal&#39; &amp; &
#39;base.group_system&#39;) | (&#39;base.group_public&#39; &amp; &#39;base.group_system&#39;) | (&#39;base.group_system&#39; &amp; &#39;base.group_user&#39;) | (&#39;base.group_system&#
39; &amp; &#39;base.group_partner_manager&#39;) | &#39;sales_team.group_sale_salesman&#39;
View error context:
{'file': '/tmp/addons/account_invoice_import_simple_pdf/views/res_partner.xml',
 'line': 1,
 'name': 'res.partner form',
 'view': ir.ui.view(15203,),
 'view.model': 'res.partner',
 'view.parent': ir.ui.view(15202,),
 'xmlid': 'view_partner_property_form_move'} 

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant