I'm a newbie in Odoo, and my mother tongue isn't English, so sorry if my question isn't understandable.
I have some problems with search() function:
I'm trying to set a conditions to check automical name what I compute for a model. It's not something like _sql_constraints and @api.constrains. And I write function below to check all exist names in my DB to know wheather the automatical computed name is exist. And it works, but...
self.env["lop_hanh_chinh"].search([("ten_lop_hanh_chinh", "ilike", temp)])
When I login a Administrator account, I can find the record I need.
But when I login a Officer account (have access to a subset of records), I can not find what I need.
I have faced to this problem once, and I think it's related to self.env['lop_hanh_chinh'], but I have record rules for Officer!!!
Thanks!
Can you share the record rule set for officer