Must
-
[XML]
Usewidth
/height
instead ofimg_width
/img_height
. -
[PY]
New API for on_change: the instance is modified instead of returning a dictionary.
Example: modules/party: 3be0dbb6bf94 -
[SQL]
: Fix amount second currency with:UPDATE account_move_line SET amount_second_currency = (amount_second_currency * -1) WHERE amount_second_currency IS NOT NULL AND SIGN(amount_second_currency) != SIGN(debit - credit);
-
[PY]
: Replacefloat_time
widget byTimeDelta
field. -
[XML]
: Usepyson
for fields that were evaluated using safe_eval.
Example: modules/account: d60176cc48a2 -
[XML]
: There is no more a datetime widget for list/tree, two columns with one widget date and one widget time should be used instead.
Example: trytond: 4a2d1a76de52 -
[PY]
: The API of the Report class has been reworked to improve the customization of the engine. The formatting methods are now more strict to prevent silent failure. -
[PY]
The methods available in the context of the report execution has been renamed: -
setLang(language)
→set_lang(language)
-
formatLang(value, lang, date=True)
→format_date(value, lang)
-
formatLang(value, lang[, grouping=True], currency[, symbol=True])
→format_currency(value, lang, currency[, symbol=True][, grouping=True])
-
formatLang(value, lang[, digits=2][, grouping=True][, monetary=False])
→format_number(value, lang[, digits=2][, grouping=True][, monetary=None])
-
The
datas
dictionary has been renamed todata
-
The
StringIO
andtime
functions are not available anymore by default.
New
-
[PY]
:save
could be used as a class method too.
Example: modules/stock: 4f346cd0dd23 -
[PY]
:restore_history_before
class method added. -
[PY]
:ModuleTestCase
is added so it’s simpler to implement modules test cases.
Example: modules/account: f9840513b549