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:
- CRM
- e-Commerce
- Bogføring
- Lager
- PoS
- Project
- MRP
Dette spørgsmål er blevet anmeldt
            
                2
                
                    Besvarelser
                
            
        
        
            
                6784
                
                    Visninger
                
            
        
    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!
Tilmeld dig| Related Posts | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|  | 1 apr. 24  | 2032 | ||
|  | 1 sep. 23  | 2460 | ||
|  | 5 jul. 25  | 8580 | ||
|  | 3 jan. 24  | 14948 | ||
|  | 1 apr. 23  | 227 | 
