? 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
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
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
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
0
11월 25
|
30 | ||
|
|
0
11월 25
|
16 | ||
|
|
2
10월 25
|
631 | ||
|
Odoo + amazon connector
해결 완료
|
|
2
9월 25
|
1002 | |
|
|
1
9월 25
|
1314 |