Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5565 Visualizzazioni

Hi,

I need to refresh or reload my current Purchase order.

When i click the button in Purchase order line i need to reload or refresh the purchase order. So for that i add the reload method on "button click" but its not reload the purchase order

My code:

@api.multi

def button_click(self);

return {

                'type': 'ir.actions.client',

                'tag': 'reload',

                }

when i add this above code under "purchase.order" class its working but i need to write only in "purchase.order.line"

can anyone help me to resolve this.. ASAP

Avatar
Abbandona
Risposta migliore

As it seam you do not process any of the data when you click the button, what about create a javascript function to update your webpage instead of reloading it, or to make javascript reload the page in the browser

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 25
626
0
dic 24
1212
2
ott 24
1355
1
ago 24
2471
2
lug 24
1707