? how can i hide report actions and make it appears just in work flow specific state
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
Hi,
Try this code
<record id="view_custom_model_form" model="ir.ui.view">
<field name="name">custom.model.form<
<field name="model">custom.model</
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<!-- Modify the existing report actions -->
<xpath expr="//button[@name='action_
<attribute name="groups">module.group_
<attribute name="attrs">{"invisible": [["state", "!=", "specific_state"]]}</
<!-- You can add your own domains and default conditions under the attribute -->
</xpath>
</field>
</record>
Hope it helps
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
0
out. 25
|
3 | ||
|
|
0
out. 25
|
166 | ||
|
|
2
out. 25
|
326 | ||
|
Odoo + amazon connector
Resolvido
|
|
2
set. 25
|
700 | |
|
|
1
set. 25
|
919 |