I have seen domain_force in xml file. What is difference between domain and domain_force ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
domain_force is used if you want to create ir.rule, the domain is the filter for records in action call
thank you
Hi,
domain
Odoo domain is used to select records from a model or database table. It is a very common use case when you need to display a subset of all available records from an action, or to allow only a subset of possible records to be the target of a Many2one relation.
domain_force
domain_force acts as a filter for the records where the rule is applied
<field name = "domain_force"> [('driver_id', '=', user.partner_id.id)] </field>
Here the filter is applied as the definition of the rule, driver_id is equal to the user's partner_id.id
One can also apply for complete records, then domain_force is as follows,
<field name = "domain_force"> [(1, '=', 1)] </field>
Regards
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
يناير 25
|
1225 | ||
|
1
نوفمبر 24
|
2086 | ||
|
1
مارس 25
|
652 | ||
|
1
سبتمبر 23
|
2360 | ||
Favorite filter Odoo 10
تم الحل
|
|
2
أغسطس 22
|
7615 |