Community mailing list archives

community@mail.odoo.com

Re: Javacsript code on form open

by
Andre Kurniawan
- 05/04/2016 04:35:44

Hello Nhomar,

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": ...});

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


On Wed, May 4, 2016 at 2:46 AM, vak0160 <vak0160.work@gmail.com> wrote:

Hello Community,

  1. How to run a javascript code when a form is opened on edit mode?
  2. How to fill some hidden fields using javascript (from the javascript code above)?

Did you check this?:

https://www.odoo.com/documentation/9.0/howtos/web.html


--
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