Skip to Content
Menu
This question has been flagged
1 Reply
4682 Views

for example, fields created using python and xml is saved in record. How can I save text field value(created in js) in js in odoo 12? 

Avatar
Discard
Best Answer

Hi,

this is for version 10.

var Model = require('web.Model');

new Model('custom.model').call('write', [[self.id], { 'invoiced_target': value }]).done(function() {

                   

});

call 'write' or other function which exist. 

so whatever value you pass in '{ 'invoiced_target': value }' value you will be able to get in python  method of  'custom.model'.

so you will be able to get value from  python function and write the value in the field.


Regards,

Silvestar

Avatar
Discard
Related Posts Replies Views Activity
1
May 21
14557
1
Apr 21
3178
1
Apr 20
2134
0
Mar 20
1360
1
Feb 20
2828