Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3758 Zobrazení
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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 25
1809
2
led 25
1883
4
led 25
3865
0
lis 24
1275
1
lis 24
2026