1
votes

I want to change the tabindex in a form in opererp how can I change it in the xml file or the python code I am using openerp 6.1

example to what I need in sales order form ,user want to change the focus of the element using tab button he need to write first the order reference field then go to customer service field using a tab button,but when I press tab I go to the date button not the custom service even that the date button has a default value

Thanks

2
have you clear idea, what you want to do?Kala Halbierd

2 Answers

0
votes

You can inherit and change both the models (defined in python files) and views (defined in xml files). More details about inheritance can be found here Object Inheritance and Inheritance in Views

0
votes

you can overwrite the original xml arch in your view and change the sequence of pages as per your requirement

like:

<record id="**account.invoice_supplier_form**" model="ir.ui.view">
            <field name="name">account.invoice.supplier.form</field>
            <field name="model">account.invoice</field>
            <field name="priority">2</field>
            <field name="arch" type="xml">
                <form string="Supplier Invoice" version="7.0">

as shown above you can write the same xml arch as define in account for supplier invoice,

and you can now change sequence of pages

hope this help