To rollback the transaction must be done before the context manager calls stop
on exit.
Closes#13149
(grafted from 02ef3e349808c73a260ab7e83fea4eb66f37bd02)
--HG--
branch : 7.0
Since 8616fb62c5e9 some tests are decorated with transaction so the test case
needs a database to run.
(grafted from b2b78cdd6c19340652eb27ceaac620c940030a5d)
--HG--
branch : 7.0
Decimal may raise an InvalidOperation error if the context does not allow the
needed precision.
But rounding is not necessary for Decimal as we can just test the exponent
from the tuple version.
Closes#13138
(grafted from 776889be97e4c1b8917a9090338511d8008c625b)
--HG--
branch : 7.0
A Pool.refresh may be triggered on Pool.init if a cache listener is started by
the new transaction of load_modules. In such cache the pool is empty just
after the init.
Closes#13101
--HG--
branch : 7.0
The type of value may not correspond with the single_value parameter if the
domain does not apply directly to the field but to a nested field.
Closes#12843
(grafted from 411d5752ff2a1283d65fb457a5c9ac2f399dafb0)
--HG--
branch : 7.0
Since c8771e45b861 TransactionError is raised if a table is not locked at the
transaction start. The decorator must manage such exception in case the
decorated route needs to lock a table.
Closes#12962
(grafted from bced72f6282bbb1ec2c58e7af25ca1e5a941b82f)
--HG--
branch : 7.0
The bound methods are different because they are bounded to different classes.
Closes#12965
(grafted from 6bea752604b46675e2c237485d7b7bec2b09d191)
--HG--
branch : 7.0
For now we rely on the default value set by python-sql but SQL-92 does not
define a default value.
Closes#12933
(grafted from 659160cd1681a6a1bc98d51a97d7765ee8d31714)
--HG--
branch : 7.0
The MemoryCache copy the stored template since 7bbbb91621ab but Genshi
Template clear the filters when copied.
Closes#12963
(grafted from 3111fe5130705da70e46b07e4b7cb47012430964)
--HG--
branch : 7.0
The cached values are copied when set and copied again when returned so the
stored values can never be modified.
Closes#9558
(grafted from 7bbbb91621ab3759dfdc04de3aa1754c89ef145d)
--HG--
branch : 7.0
It is the modification of stored field that must be checked and not the json
version.
Closes#12781
(grafted from 4f04e2409fad82de243439bac3128c1002d540ee)
--HG--
branch : 7.0
Since d142b33fa3ab the on_change_with relies on _changed_value. But for
Function xxx2Many fields if their value is not in the initial value, we should
not retrieve it from the database because the result will be the same as the
one set by on_change_with.
Closes#12836
(grafted from 13d2870d43c833a8629b451edd82ac2efdc27009)
--HG--
branch : 7.0
Quite a few model have states with the same name (e.g. "open",
"close). When creating Workflow Graphs for several of these models at
once, the nodes of these states must be distinguished. Otherwise the
graphs will overlap and eventually even overwrite each other.
Closes#12253
(grafted from 91a09102ec61a08f57868bc9f030fdcb9ab831c8)
--HG--
branch : 7.0
When the transaction fails to start, the log_records may still be None.
Closes#12793
(grafted from 38529e19445ef6520a0e4f442c8bd07acc6d10cc)
--HG--
branch : 7.0
Fields based on multi-value must not be forced to the single value of a list.
Closes#12737
(grafted from c320a786923f19e138459d9a128c7d8cb097f1b1)
--HG--
branch : 7.0
When uwsgi forks workers it can happen that python execute the code from one of
the launched thread (eg: the cache listener or trytond-status). In that case
python will keep executing the thread and never switch to the main thread. Thus
preventing to listen for incoming connections.
Closes#12758
(grafted from d51b0990639d7ca0ac289dc08f56fd84a14e3e89)
--HG--
branch : 7.0
Each backend has their limit. 40 chars is picked as limit to match the size of
mercurial hash.
Closes#12754
(grafted from 3055098129d4afbf82af5fa527e3d3e357ea7021)
--HG--
branch : 7.0
When the create/write/delete methods are extended, we should assume that
developer has implemented such access.
Closes#12757
(grafted from 4aee4ce88b518e2af83ad81cb45284b132157b63)
--HG--
branch : 7.0