Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3352 Lượt xem

Cheers!

Here's what I'm trying to do: when a user is creating timesheet records (Human resources/Timesheet activities), I want him to see only the accounts related to the projects he's a member of.

I've created a field in account_analytic_account to save the project_id but, then, when it comes to the domain, I can't do something like

domain="[(uid,'in','project_id.members')]"

Any ideas?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Try the other way around: [('project_id.members', 'in', uid)] (or user.id, if you're creating record access rules).

Ảnh đại diện
Huỷ bỏ