Inversion values are not set as readonly on sao
When testing review30431002 I noticed the domain inversion values are not show as readonly and not correctly set when creating new records in sao.
Testing the same review in GTK client works as expected:
1. Template value is enforced and set when creating new records.
2. Template value is readonly for existing records.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Sergi Almacellas Abellana assigned to @pokoli
assigned to @pokoli
- Sergi Almacellas Abellana added sao type::behavior + 1 deleted label
added sao type::behavior + 1 deleted label
- Author Developer
Here is review26581004 which fixes it.
- Sergi Almacellas Abellana added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
New review26581004 at https://codereview.tryton.org/26581004/#ps1
- Owner
I think I have found the problem. It is in the Group.new_ method when calling default_get which is async but Screen.new_ is not waiting for it to call display.
I'm working on a new patch. - Cédric Krier assigned to @ced and unassigned @pokoli
- Cédric Krier added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
- Owner
Here is review32791002
- Cédric Krier added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
review32791002 updated at https://codereview.tryton.org/32791002/#ps10003
- Author Developer
Thanks, review32791002 fixed the bug for newly created records, but the issue is still present when editing existing records. Here are the steps to reproduce:
1. Create a product template with two variants.
2. Open the relate action from the template to the variants.
3. Open one variant form.
The template field is shown as editable, but in should be shown as readonly as in the tryton client. - Owner
Indeed the issue of msg30338 exists also in tryton.
- Cédric Krier added tryton + 1 deleted label and removed 1 deleted label
added tryton + 1 deleted label and removed 1 deleted label
- Owner
Here is review30771002 for tryton.
New review30771002 at https://codereview.tryton.org/30771002/#ps1
- Cédric Krier added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
review30771002 updated at https://codereview.tryton.org/30771002/#ps20001
review32791002 updated at https://codereview.tryton.org/32791002/#ps30001
review30771002 updated at https://codereview.tryton.org/30771002/#ps40001