Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to access data in payment acquirer

By
Fnordbedarf
on 11/10/14, 4:21 AM 770 views

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?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/10/14, 4:21 AM
Seen: 770 times
Last updated: 3/16/15, 8:10 AM