I need to create a table in a new Odoo Studio module. A new line should be added to calculate the cost of employee meals. I'm trying to make it so when I select the type of meal, the cost changes.
This question has been flagged
66
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
Feb 25
|
1770 | ||
|
|
0
Aug 23
|
3221 | ||
|
|
0
Jul 23
|
1781 | ||
|
|
1
Jul 23
|
3098 | ||
|
Remove (studio) custom field
Solved
|
|
1
Mar 23
|
6573 |
"result" is a local variable so outside the method the value is not available.
You need to assign result to a field, like record['amount'] = result
You also need to loop through all records to support multi editing.
Review the documentation and other forum posts for examples.