If you want to prevent users from creating new records from a relational field
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
            
                1
                
                    회신
                
            
        
        
            
                5232
                
                    화면
                
            
        
    If you want to prevent users from creating new records from a relational field (just like the country_id field on the res.partner model), just add this in the xml view: options="{"no_open": True, "no_create": True}".
For example:
.
will prevent users from creating new roles from the x_role_id field.
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|  | 1 1월 25  | 11079 | ||
|  | 1 5월 21  | 2879 | ||
|  | 1 4월 21  | 9455 | ||
|  | 2 10월 25  | 32881 | ||
|  | 2 1월 25  | 6741 | 
 
                        
You can do it dynamically based on each model and its fields (relational fields) in v16 and v17: https://apps.odoo.com/apps/modules/17.0/mh_dynamic_many2one_field_options