Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

I want to delete all records for a class from anonther class, how can i do this using odoo8, Thank you in advance.

By
abderrahmen
on 2/26/15, 3:45 PM 489 views

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

Akhil P Sivan
on 2/27/15, 1:08 AM
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/
abderrahmen
on 2/27/15, 1:42 AM
0

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 2/27/15, 5:55 AM

Try this:

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

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 2/26/15, 3:45 PM
Seen: 489 times
Last updated: 3/16/15, 8:10 AM