I would like to know if it is possible to specify the order of smart buttons on form views. If we use xpath position = inside for any buttons added in custom modules they all seem to appear before (or to the left of) the standard Odoo smart buttons (sales, invoices, vendor bills, etc). To use xpath position=after we have to inherit sale or purchase module which seems like a hack. Is there a better way? I'm using Odoo version 10 Enterprise.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
Hi Garth Mathers,
From your question, what I can understand is, this is the problem in your xpath expression.
If you are given the xpath correctly, then the button will appear where ever you want.
I will give two examples of giving buttons in two different positions in the partner form.
check the code. and correct your code.
1) Position after the name="toggle_active" button.
<record model="ir.ui.view" id="new_id_for_the_form"> |
2) Position after the id="invoice_button". (Note: This is an inherited view. so xpath and inherit_id will be changed)
<record model="ir.ui.view" id="second_id_for_the_form"> |
Thank you.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
4
set 21
|
15875 | ||
|
0
lug 21
|
3391 | ||
|
0
mar 17
|
4013 | ||
|
1
giu 22
|
6094 | ||
|
2
feb 20
|
9949 |