development:override_an_existing_record_rules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:override_an_existing_record_rules [2022/03/07 09:33] – [3- A record rule has:] azizdevelopment:override_an_existing_record_rules [2022/03/07 09:46] (current) – [Examples:] aziz
Line 1: Line 1:
-:todo: Giving context and examples 
- 
  
 <code xml> <code xml>
Line 54: Line 52:
 <field name="domain_force">here add your new domain</field> <field name="domain_force">here add your new domain</field>
 </code> </code>
-===== Examples: =====+===== Domain examples: =====
  
 Group : Sales / User: Own Documents Only Group : Sales / User: Own Documents Only
  
 +<code>
 ['|', ['|',
   ('user_id','=',user.id),   ('user_id','=',user.id),
   ('user_id','=',False)   ('user_id','=',False)
  
 +</code>
 +
 This mean:   This mean:  
 - user can access just to his own orders / quotations . - user can access just to his own orders / quotations .
Line 68: Line 69:
 Group : Sales / User: All Documents Group : Sales / User: All Documents
  
-[(1,'=',1)]+''[(1,'=',1)]''
 This will grant access to ALL Sales Orders / Quotations. This will grant access to ALL Sales Orders / Quotations.
  
  
  • development/override_an_existing_record_rules.1646645610.txt.gz
  • Last modified: 2022/03/07 09:33
  • by aziz