Community mailing list archives


Re: Javacsript code on form open

Vauxoo S.A. de C.V., Nhomar Hernandez
- 04/05/2016 04:53:41

On Wed, May 4, 2016 at 3:37 AM, vak0160 <> wrote:

Thank you for your reply.

Here what I get from that tutorial (please correct me if I’m wrong):

  1. Create a custom FormWidget and put it on my form
  2. Put my javascript code on start
  3. Set value on field using this.field_manager.set_values({"field1": ...});

Yes. You need a little ore of that but basically yes.

Do not forget read some examples in the core:

I did not studied yet v9 (it is different) but that's for 8

Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942