Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4891 Zobrazení

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?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
7
zář 17
10477
3
lis 24
1066
3
úno 24
2816
1
lis 20
10086
1
zář 20
3020