Tryton - Issues



Title Allow to delete with a domain
Priority feature Status unread
Superseder Nosy List bell, ced, pokoli
Type performance Components trytond
Assigned To Keywords

Created on 2016-10-04.11:48:12 by ced, last changed by bell.

msg29156 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2016-10-04.11:48:12
The ModelStorage.delete could be improved to allow to delete with a domain instead of a list of ids.
So to keep the backward compatible behaviour here is my proposal.
We change the API for: delete(cls, records, domain=None)
The behaviour of delete will be to use construct a where clause with this semantic: WHERE id IN <records> OR <domain>
This will allow to keep the same behaviour when called with a list of records or an empty list.
But also works with an empty list and a domain.
Date User Action Args
2019-10-04 15:49:25bellsetnosy: + bell
2016-10-06 10:36:42pokolisetnosy: + pokoli
2016-10-04 11:48:13cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)