Tryton - Issues

 

Issue9023

Title Incoherent context between direct creation and from search
Priority bug Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type behavior Components sao, tryton
Assigned To ced Keywords review
Reviews 282871003
View: 282871003

Created on 2020-01-30.11:54:20 by ced, last changed by roundup-bot.

Messages
New changeset 6f4679a3cd3a by Cédric Krier in branch 'default':
Always use search_context for creation from Many2One
https://hg.tryton.org/tryton-env/rev/6f4679a3cd3a
New changeset 45b1602967e5 by Cédric Krier in branch 'default':
Always use search_context for creation from Many2One
https://hg.tryton.org/tryton/rev/45b1602967e5
New changeset 3c6123efde15 by Cédric Krier in branch 'default':
Always use search_context for creation from Many2One
https://hg.tryton.org/sao/rev/3c6123efde15
New review282871003 at https://codereview.tryton.org/282871003/#ps284751003
msg55128 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-01-30.11:54:19
When creating a new record from a Many2One, the context used is not the same if it is done via completion menu or F3 and via the search window.
From the first, it is the standard context of the field and from the search window it is the enhanced with the search_context of the field.
I think we should use in each case the search_context because:

- it will be complex from the WinSearch to get the straight context
- it will allow to customize the default value via the search_context without killing performance on browsing server-side.

This does not apply on One2Many because we use a single screen and in some point the customization can be done using the on_change parent.
History
Date User Action Args
2020-02-19 22:54:54roundup-botsetmessages: + msg55475
2020-02-19 22:54:45roundup-botsetmessages: + msg55474
2020-02-19 22:54:35roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg55473
2020-02-10 23:42:17cedsetstatus: in-progress -> testing
2020-01-30 12:26:04cedlinkissue9025 superseder
2020-01-30 12:23:01reviewbotsetnosy: + reviewbot
messages: + msg55130
2020-01-30 12:23:00reviewbotsetreviews: 282871003
keyword: + review
2020-01-30 11:54:20cedcreate

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