콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Working on a new acquirer, I used this views/payment_acqurier.xml

        <record id="acquirer_form_bank" model="ir.ui.view">
            <field name="name">acquirer.form.bank</field>
            <field name="model">payment.acquirer</field>
            <field name="inherit_id" ref="payment.acquirer_form"/>
            <field name="arch" type="xml">
                <xpath expr='//group[@name="acquirer_display"]' position='after'>
                    <group attrs="{'invisible': [('provider', '!=', 'bank')]}">
                        <group>
                            <group>
                                <field name="merchantid"/>
                             </group>
                         </group>
                    </group>
                </xpath>
            </field>
        </record>

Please note the three group containers. If I remove two of them, the views/bank.xml cannot access the field marchantid anymore:

<input type="hidden" name="merchantid" t-att-value="tx_values['merchantid']"/>

So, where do I tell odoo to not travese the xml tree two groups-containers deeper?

아바타
취소
관련 게시물 답글 화면 활동
7
9월 17
10827
3
11월 24
1339
3
2월 24
3298
1
11월 20
10434
1
9월 20
3269