saas-addons icon indicating copy to clipboard operation
saas-addons copied to clipboard

Exclude public users from restricted users v.14

Open killday opened this issue 1 year ago • 1 comments

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

killday avatar Jan 03 '24 10:01 killday

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?

killday avatar Jan 25 '24 11:01 killday