I tried to set up a record rule for Invoice model in Odoo and the record rule goes like this:
[('bu','in',[g.name for g in user.employee_ids[0].bus_unit1])]
Record rule works fine. Now some user can duplicate the created records of Invoice model, but for some user's duplication of Invoice record is resulting in Access Denied Error.