Issue 11074

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

Created on 2021-12-19.13:09:27 by ced, last changed 4 months ago by roundup-bot.

Messages

New changeset 62f017122e6f by Cédric Krier in branch 'default':
Use dictionary as domain for complain origin
https://hg.tryton.org/tryton-env/rev/62f017122e6f
New changeset e9949e3b8ee7 by Cédric Krier in branch 'default':
Use dictionary as domain for complain origin
https://hg.tryton.org/modules/sale_complaint/rev/e9949e3b8ee7
New changeset de703b9fea08 by Cédric Krier in branch 'default':
Do not get domain from empty reference field
https://hg.tryton.org/tryton-env/rev/de703b9fea08
New changeset f72a2a0086fc by Cédric Krier in branch 'default':
Do not get domain from empty reference field
https://hg.tryton.org/trytond/rev/f72a2a0086fc
New changeset 7b65ac0dbfa6 by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/tryton-env/rev/7b65ac0dbfa6
New changeset d01f00e010c3 by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/trytond/rev/d01f00e010c3
New changeset e4a532dba812 by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/tryton/rev/e4a532dba812
New changeset a0e27be9082a by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/sao/rev/a0e27be9082a
New changeset 30ef9b8daf8e by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/modules/stock_quantity_issue/rev/30ef9b8daf8e
New changeset fb0bd2475b32 by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/modules/stock_quantity_early_planning/rev/fb0bd2475b32
New changeset 80bfd2bd5d56 by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/modules/stock_package/rev/80bfd2bd5d56
New changeset b9cc5dff7bf1 by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/modules/stock/rev/b9cc5dff7bf1
New changeset 082a1e62f6be by Cédric Krier in branch 'default':
Use dictionary as domain for Reference field
https://hg.tryton.org/modules/product_classification/rev/082a1e62f6be
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-02-04 10:17:13roundup-botsetmessages: + msg73876
2022-02-04 10:17:08roundup-botsetmessages: + msg73875
2022-02-03 23:21:14roundup-botsetmessages: + msg73866
2022-02-03 23:21:11roundup-botsetmessages: + msg73865
2022-02-03 23:06:43roundup-botsetmessages: + msg73793
2022-02-03 23:06:40roundup-botsetmessages: + msg73792
2022-02-03 23:06:37roundup-botsetmessages: + msg73791
2022-02-03 23:06:34roundup-botsetmessages: + msg73790
2022-02-03 23:06:27roundup-botsetmessages: + msg73789
2022-02-03 23:06:23roundup-botsetmessages: + msg73788

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