Community mailing list archives

community@mail.odoo.com

Re: Odoo 9 website JS help

by
Md. Tanzilul Hasan Khan
- 10/15/2016 07:40:44
I got this with controller.

Regards.





On Sat, Oct 15, 2016 at 11:31 AM, MD Tanzilul Hasan Khan <ponkhi403@gmail.com> wrote:
I am using odoo 9 and have created a module name 'custom_webpage' and inherited 'website' model.

There is a field in 'website' module named 'social_twitter'. I need that value in JS.

Now in my custom module JS file I can't bring the value. 

I tried:

openerp.website.Model

It shows openerp not found error.

I tried:

openerp.website = function(instance) {

};

It shows instance not found error.

Can anyone please tell me how can I get the value of social_twitter in js? I need to take the value from the field, split it and show it on the website with JS.

Regards,
MD. Tanzilul Hasan Khan.







--
MD. Tanzilul Hasan Khan.