Skip to Content
Menú
This question has been flagged
1 Respondre
3753 Vistes
Hi there,

I'm using Odoo 13 on Odoo.sh

I'm testing to build some website forms that can interact with the Odoo database and ran into this issue.

As an example, let's say I have two fields:
  • Customer
  • Sales order item
The requirement is:
  1. I want the "sales order item" field to be invisible until the Customer field is filled in. 
  2. Once the customer field is completed, the sales order field should appear and be filtered to sales orders that are linked to the customer (partner) record. 
Does anyone know how to accomplish this?
Avatar
Descartar
Best Answer

You cannot achieve this with a form builder. You will have to apply the JS for this.

Just google it or check in the addons, and you will find lots of examples regarding this.

1) https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
2) https://www.geeksforgeeks.org/hide-or-show-elements-in-html-using-display-property/

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
de maig 25
1786
2
de gen. 25
1853
4
de gen. 25
3841
0
de nov. 24
1264
1
de nov. 24
2015