Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude public users from restricted users v.14 #152

Open
killday opened this issue Jan 3, 2024 · 1 comment
Open

Exclude public users from restricted users v.14 #152

killday opened this issue Jan 3, 2024 · 1 comment

Comments

@killday
Copy link

killday commented Jan 3, 2024

The limiting number of user module do not exlude public users which cousing website users unable to register.

@killday
Copy link
Author

killday commented Jan 25, 2024

I have made this change and it is working properlly but when creating the new technical template it doesn't update/evaluate the max_records correctlly, it's assigning the value of 0 for some reason.

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2020 Eugene Molotov <https://it-projects.info/team/em230418>
     License MIT (https://opensource.org/licenses/MIT). -->
<odoo>
    <record id="max_users_limit" model="base.limit.records_number">
        <field name="name">Limit number of users</field>
        <field name="model_id" ref="base.model_res_users" />
        <field name="max_records" eval="1" />
        <field name="domain">[('is_excluded_from_limiting', '=', True), ('groups_id', 'not in', [9,10])]
        </field>
    </record>
</odoo>

@em230418 can you please help?

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

No branches or pull requests

1 participant