Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
009b79b6 by Cédric Krier at 2024-12-22T17:24:22+01:00
Do not compute record name for negative id

With ba6b8ce0e692 the record name of default values are also computed for
one2one and reference but reference fields can have a default value with only
the model part by using a negative id. In this case we should not compute a
record name.
- - - - -
e738ae05 by Cédric Krier at 2024-12-22T17:25:46+01:00
Test default_get with instance value and rec_name
- - - - -


3 changed files:

- trytond/trytond/model/model.py
- trytond/trytond/tests/model.py
- trytond/trytond/tests/test_model.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/28418d98effc1c206374f5a6d9b6ee426ede9a6a...e738ae058fc77e835504f19e483ed78ac019a815

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/28418d98effc1c206374f5a6d9b6ee426ede9a6a...e738ae058fc77e835504f19e483ed78ac019a815
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to