Issue 11074

Title
Actually support domain on Reference field
Priority
feature
Status
testing
Nosy list
albertca, ced, nicoe, pokoli, reviewbot
Assigned to
ced
Keywords
review

Created on 2021-12-19.13:09:27 by ced, last changed 2 days ago by reviewbot.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-12-19.13:09:27

Currently the domain on reference fields are not enforced on server-side. But also it mainly does not work because it is not possible to setup a domain for different target model.
I propose to use as domain a dictionary with as key the target model name and as value the domain to apply.
The validation on server side will create a single OR-ed domain out of the dictionary with a last clause which match all target without keys.
The client which only need the domain for a specific target will just take it from the key of the attribute.

History
Date User Action Args
2022-01-21 00:22:33reviewbotsetmessages: + msg73369
2021-12-25 01:48:16reviewbotsetmessages: + msg72942
nosy: + reviewbot
2021-12-25 01:47:38cedsetkeyword: + review
reviews: 383911002
status: in-progress -> testing
2021-12-20 12:44:47nicoesetnosy: + nicoe
2021-12-20 09:56:28pokolisetnosy: + pokoli
2021-12-20 01:13:34albertcasetnosy: + albertca
2021-12-19 13:10:34cedlinkissue6854 superseder
2021-12-19 13:09:27cedcreate

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