Cédric Krier pushed to branch branch/6.0 at Tryton / Tryton
Commits: 78358ae9 by Nicolas Évrard at 2024-12-16T10:29:26+01:00 Do not set the Group's context when setting a default group on xxx2Many The context of the field is dynamic so evaluating it only once when creating the group make it static. Also the group is already evaluating the parent field context on the fly when its context is retrieved. Closes #13726 (grafted from b21813a75b5beeb625b1e9533cbc498b7872555f) - - - - - 7c79e098 by Cédric Krier at 2024-12-05T16:25:16+01:00 Include the depends of the getter function when depending on a Function field Since c47b3642f1a6, the getter of a Function field may be called if there is no value set for it on the instance. In the on_change context, this may set the missing fields to None if they were not defined in the depends of the method called. In addition to compute a wrong value, those fields are then returned as modified. Closes #13735 (grafted from 1b815539165a1212fc5c415c8920d8f5f0c55236) - - - - - 7d9dc431 by Cédric Krier at 2024-12-17T16:00:31+01:00 Use TMPDIR for CI jobs (grafted from 6ecbe34f6bfcf0c46f3fc0218a50a46354ff0af7) - - - - - bacea448 by Nicolas Évrard at 2024-12-19T17:08:28+01:00 Add missing dot on the form-binary class selector Closes #13766 (grafted from 8a7c5c41b20355d416c55cecc210f479883699c6) - - - - - 0252b5b6 by Cédric Krier at 2024-12-16T16:55:06+01:00 Test if contextual company id is positive before using it to get the timezone Closes #13702 (grafted from fc47e80f9d10faaca8d4704f5a0c5b6765f5d9aa) - - - - - 5bd37c4c by Cédric Krier at 2024-12-18T17:54:06+01:00 Set screen to ScreenContainer at instantiation Many methods of ScreenContainer relies on the screen being set. And there is no reason to not set the screen at instantiation as long as show filter refresh the bookmarks. Closes #13757 (grafted from 16f208d5248b270306edee488d913c65924dd727) - - - - - fc5d1ebc by Cédric Krier at 2024-12-12T23:39:43+01:00 Return the attachment promise in attach callback This way the button stays disabled until the drop down menu is filled. Closes #13755 (grafted from d7e6a9ed2b9979edbae45789d1daf0c2a2351bac) - - - - - 32ad3c54 by Cristina Sangrador at 2024-12-28T14:00:38+01:00 Do not try to create periods when renewing a fiscal year without periods The computation of interval raises a ZeroDivisionError because the length of periods is 0. Closes #13671 (grafted from baf0a88808a8c5e85116ebbc7cf5f414b6bd95fc) - - - - - 5f86b941 by Cédric Krier at 2024-12-21T18:12:09+01:00 Do not select current record if it is no more in the group on_change calls may remove the current record without updating the screen such that it is not possible to compute a selection path. Closes #13770 (grafted from ceb83d197bfcced51643cb723590cd97127eda86) - - - - - ee7de812 by Cédric Krier at 2024-12-20T11:48:10+01:00 Read only cost price from the history product when computing cost value Closes #13767 (grafted from dc91e07427dec54b2dfcd323dd444e00ef92d313) - - - - - 14 changed files: - .gitlab-ci.yml - modules/account/fiscalyear.py - modules/company/ir.py - modules/stock/product.py - sao/src/model.js - sao/src/sao.less - sao/src/screen.js - sao/src/tab.js - tryton/tryton/gui/window/view_form/model/field.py - tryton/tryton/gui/window/view_form/screen/screen.py - tryton/tryton/gui/window/view_form/view/list.py - tryton/tryton/gui/window/view_form/view/screen_container.py - trytond/trytond/model/modelview.py - trytond/trytond/tests/test_field_depends.py View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/compare/fd5b605a3fd10a2489904e3e74b193ff614f3b92...ee7de812cc58f879e6609708e7928f78995d925b -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/compare/fd5b605a3fd10a2489904e3e74b193ff614f3b92...ee7de812cc58f879e6609708e7928f78995d925b You're receiving this email because of your account on foss.heptapod.net.
