How To Delete One2many Lines From Code in Odoo12

How To Delete One2many Lines From Code in Odoo12

Odoo Mates

4 года назад

4,929 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Jonathan ponce jimenez
Jonathan ponce jimenez - 06.08.2020 05:41

Excellent tutorials, thanks to you I am advanced in my wisp system project, my query is I have a client model and installation the relationship between user and installation is one2many, where each client can have several installations but these installations can only belong to that client ( they have a unique relationship) and it is created at the time of selecting the installation model, could you give me some guide or reference to be able to make this relationship, with your guide I can make the relationship when I add the installation to the client, you also see the other installations that They belong to the other clients and I am not able to do what I want. I would appreciate any guidance you could give me. I would really appreciate it.

Ответить
Abdul Gafur
Abdul Gafur - 18.05.2020 22:59

why don't you add a delete icon beside each record so that when click on that icon single record can be deleted

Ответить
Abdelhalim KADDOUR GUETTAOUI
Abdelhalim KADDOUR GUETTAOUI - 07.04.2020 00:34

thanks odoo mates

Ответить
Ibrahim HALOUANE
Ibrahim HALOUANE - 27.03.2020 12:52

It's good to confirm user action, you can add an attribute:
confirm="Do you really want to delete all the lines?"

Ответить
Nadeem Kazi
Nadeem Kazi - 31.12.2019 16:26

Thanks a lot brother..

Ответить
Ralf Vench Billones
Ralf Vench Billones - 09.12.2019 15:36

Hi mate,
How to call a function after I delete (Using the trash icon) a line in the sale order line without saving. (Upon creation)

Ответить
Rishabh Jadia
Rishabh Jadia - 12.10.2019 20:00

I used 5,0,0 but it does delete the record from the database. How can I delete the record of many2many line from the database.

Ответить
MENCO
MENCO - 06.10.2019 09:21

are you on linkedin???

Ответить