Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
2582 Переглядів
Аватар
Відмінити

What is the exact purpose? Whether other class is related to this class as one2many or something?

Hiii,
the purpose is that i have to show some values in a selection field , i get the values from webservice. So after doing some searching i find out that i cannot change the values of a selection field after onchange event so i did change the field for type many2one and save the data to database after calling the webservice in onchange method. for now 50% is ok but i need to delete all record of many2one field before calling the webservice. this is the purpose Mr Akhil, i hope that you didi understand me well.

2015-02-27 7:08 GMT+01:00 Akhil P Sivan <akhilpsivan01@gmail.com>:

What is the exact purpose? Whether other class is related to this class as one2many or something?

--
Akhil P Sivan



--
Cordialement,
Khalledi Abderrahmen
+216 55 521 232
tn.linkedin.com/in/abderrahmenkhalledi/
Найкраща відповідь

Try this:

my = self.env['myclass'].search([])
my.unlink()

 

Аватар
Відмінити