When I use multi-threaded concurrent submissions account.move action_post ,I got an error :Due to inability to access serial synchronization updates,After my investigation, I found that it is not possible to generate the last_sequence。
how i can do
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
When I use multi-threaded concurrent submissions account.move action_post ,I got an error :Due to inability to access serial synchronization updates,After my investigation, I found that it is not possible to generate the last_sequence。
how i can do
# Unable to generate serial numbers concurrently
class SequenceMixin()
def _get_last_sequence(self, relaxed=False, with_prefix=None): ...
query = """
UPDATE {table} SET write_date = write_date WHERE id = (
SELECT id FROM {table}
{where_string}
AND sequence_prefix = (SELECT sequence_prefix FROM {table} {where_string} ORDER BY id DESC LIMIT 1)
ORDER BY sequence_number DESC
LIMIT 1
)
RETURNING {field};
""".format(
table=self._table,
where_string=where_string,
field=self._sequence_field,
)
...
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Sep 24
|
1464 | ||
|
2
Mar 24
|
3171 | ||
How to select manually a sequence for an invoice?
Diselesaikan
|
|
2
Feb 23
|
3742 | |
Manually set invoice number
Diselesaikan
|
|
6
Okt 20
|
37968 | |
|
1
Sep 20
|
4411 |