Community mailing list archives

community@mail.odoo.com

Re: Javacsript code on form open

by
Andre Kurniawan
- 05/04/2016 05:15:43
Hello Nhomar,

I'm using odoo v8 so it's perfect. Thank you.

On 05/04/2016 03:57 PM, Nhomar Hernandez wrote:

On Wed, May 4, 2016 at 3:37 AM, vak0160 <vak0160.work@gmail.com> 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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


-- 
Regards,
Andre