Hi,
I have form of One2many field and when entered values in it and click on Save then windows going to loading/Refresh and then values disappeared. I enter values for 10 record in same time.But if I entered for 3 or 5 or 8 then this was save and showed successfully. What is the issue here? I am using Odoo V9 and linux mint 17.
Thanks in advance for any help.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
could you please mension the code you tried ..
I have override the write method. There is no issue in code.
@api.multi
def write(self, values):
result_val_dict = {}
upadte_values_dict = {}
for record in self:
if values.get("Results", None):
#some adding in other model fields
.....
values.update(upadte_values_dict)
res = super(MyModel, self).write(values)
return res
I have use print statements and loggrer method execute successfully.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
write method in odoo 12
Rozwiązane
|
|
1
lip 19
|
4470 | |
|
1
cze 23
|
1867 | ||
|
2
kwi 19
|
2678 | ||
|
1
kwi 22
|
4668 | ||
|
1
kwi 20
|
7211 |
For adding values I use tab or enter key to move in next field. When I typed slow it saved on speedy typing its not saved.
I found the problem. When entering values fast, response of request for "search-read" send by browser are not return back by the server and by click "Save" button request for "write" also is in pending so that’s why my changes are not save. What is solution about that server response problem?