how to pass value to boolean field based on button click in js?
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
1
Reply
1242
Views
You can use rpc to write record.
return this._rpc({
model: 'MODEL NAME',
method: 'write',
args: [[id], {
your_boolen_field_name: true,
}]
});
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 | |
---|---|---|---|---|
|
0
Nov 23
|
451 | ||
|
0
Feb 23
|
1221 | ||
Create order_line from code
Solved
|
|
1
Nov 22
|
1936 | |
|
0
Aug 22
|
2959 | ||
|
2
Jul 22
|
3017 |