In develop mode I can set default values for the fields I want. I works like a charm when I press Create. But if we start with the button / Function Upload, where you upload a receipt, the defaults are not used.
Any tricsk we can do ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
In develop mode I can set default values for the fields I want. I works like a charm when I press Create. But if we start with the button / Function Upload, where you upload a receipt, the defaults are not used.
Any tricsk we can do ?
hi not sure it can work, but i suggest to try with automated actions.
https://odootricks.tips/about/automated-actions/
I did test Automatic actions. Set value on Create. I did work for function Upload. But a big disadvantage: If user use Create, and the changes values - since he want to register something different - the automatic action go active when you save. Quite logic, since records are created when you save.
So we need something that fill the values when you open the form view. And do not overwrite if you change. Like how the default values.
Some Phyton code to set default values on open form?
try to make another with condition-on updated and something like that
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Nov 24
|
1485 | ||
|
1
Nov 24
|
1193 | ||
Expense Categories
Solved
|
|
1
Oct 24
|
149 | |
|
2
Sep 24
|
1047 | ||
Update stock quantity
Solved
|
|
1
Aug 24
|
2454 |
Find video on Twitter
https://twitter.com/mihranthalhath/status/1550477424688713729?t=N3ACVIwypWlZ7deI9EYFBg&s=19