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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 21
|
14557 | ||
|
1
Apr 21
|
3178 | ||
|
1
Apr 20
|
2134 | ||
|
0
Mar 20
|
1360 | ||
Creation of DOM from XML
Solved
|
|
1
Feb 20
|
2828 |