button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
            
                2
                
                    Cevaplar
                
            
        
        
            
                6777
                
                    Görünümler
                
            
        
    Hi,
There's a disabled class which lets you disable the button in odoo. So, change the code to:
<button id="is_approved" name="button_approved" class="oe_highlight disabled" string="Aprobar" type="object" groups="sales_team.group_sale_manager"/>
Regards
 attrs="{'readonly': [('state', '=', 'disabled')]
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|  | 1 Nis 24  | 2030 | ||
|  | 1 Eyl 23  | 2459 | ||
|  | 5 Tem 25  | 8566 | ||
|  | 3 Oca 24  | 14934 | ||
|  | 1 Nis 23  | 227 | 
