Skip to Content
Menu
This question has been flagged
2 Replies
1199 Views

Hello, Im very new on odoo, and my boss ask me to do something that looks very simple ASAP but Im stuck since Im just starting to learn:


1.  How I can open the view 'website_sale.confirmation' to see the changes Im making?

I have located the view on Settings > Tecnical > Views, and I can see the code, but how I can access the view to see the changes? The only way I have access is by making a purchase, and Im not going to be paying our own product every time I need to test the changes on that view. I have tried to locate the view on the bug button on the toolbar (I dont know how is called) and on the option 'open view' but is not listed.


2. Now the requirement:  I need to add a button that open a link with some info attached as parameter, I have added  the button:

<a role="button" class="btn btn-primary d-none d-md-inline-block"  t-attf-href="https://myportal.net/#/confirmed?email=costumer@foo.org&orderid=xxxxx"  aria-label="Start" title="Start"> Go to your course</a>


But I don't understand very well how to call or add the fields on the url I have tried some examples that I saw on stack overflow or here but gives me an error page or doesn't recognize the fields as fields and the application make me restore the view


Thank you in advance

Avatar
Discard
Author Best Answer

Thank you! I will check it out!

Btw I already could apply the 2nd issue correctly seems I was using the model and fields incorrectly thats why I was having some problems.

Avatar
Discard
Best Answer

Hi,

It seems you are testing in a live database i guess, better you try in a demo instance first and then apply in the production instance, if you need to see corresponding view, ie, website_sale.confirmation , you can go to the below url, ie, the controller /shop/confirmation is rendering this template. Once you go to this page, you will be able to see the changes you have made,




Thanks

Avatar
Discard