[SOLVED] How to find modules model_id for access rules?
I just can't find a working external id for the model hr_employee. When I look at the meta data in debug it says "XML ID: /". In the database ir.model.data I have:
I've tried the id 4633, hr.hr_employee, hr_employee, hr.hr.employee, hr.employee, ... nothing works.
All the time I get the error: "External ID not found in the system"
My rule looks like
<data noupdate="1"> <record id="hr_izracun_place.current_company_employee_access_rule" model="ir.rule"> <field name="name">Show employees by company</field> <field name="model_id" ref="hr.hr_employee"/> <field name="domain_force"> [('address_id', 'in' [user.company_id.id])] </field> </record> </data>
I really don't know how to get this working and why it's not working?