EnderX092

Error factura compra P00165

Oct 9th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.25 KB | None | 0 0
  1. RPC_ERROR
  2. Odoo Server Error
  3. Traceback (most recent call last):
  4. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 4249, in _disable_recursion
  5. yield disabled
  6. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2176, in _sync_dynamic_lines
  7. stack.enter_context(self._sync_dynamic_line(
  8. File "/usr/lib/python3.10/contextlib.py", line 492, in enter_context
  9. result = _cm_type.__enter__(cm)
  10. File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
  11. return next(self.gen)
  12. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2068, in _sync_dynamic_line
  13. needed_before = needed()
  14. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2054, in needed
  15. new_value = field.convert_to_cache(current_value, record)
  16. File "/home/odoo/src/odoo/odoo/fields.py", line 1633, in convert_to_cache
  17. currency = record.sudo().with_context(prefetch_fields=False)[currency_field]
  18. File "/home/odoo/src/odoo/odoo/models.py", line 5308, in with_context
  19. return self.with_env(self.env(context=context))
  20. File "/home/odoo/src/odoo/odoo/api.py", line 585, in __call__
  21. return Environment(cr, uid, context, su, self.uid_origin)
  22. File "/home/odoo/src/odoo/odoo/api.py", line 522, in __new__
  23. for env in transaction.envs:
  24. File "/usr/lib/python3.10/_weakrefset.py", line 64, in __iter__
  25. with _IterationGuard(self):
  26. RecursionError: maximum recursion depth exceeded while calling a Python object
  27.  
  28. During handling of the above exception, another exception occurred:
  29.  
  30. Traceback (most recent call last):
  31. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 4249, in _disable_recursion
  32. yield disabled
  33. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1742, in _check_balanced
  34. yield
  35. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  36. with self.move_id._check_balanced(move_container),\
  37. File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
  38. return next(self.gen)
  39. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 2163, in _sync_dynamic_lines
  40. with self._disable_recursion(container, 'skip_invoice_sync') as disabled:
  41. File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
  42. self.gen.throw(typ, value, traceback)
  43. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 4256, in _disable_recursion
  44. for env in (self.env.transaction.envs - previous_envs):
  45. File "/usr/lib/python3.10/_weakrefset.py", line 132, in difference
  46. newset = self.copy()
  47. File "/usr/lib/python3.10/_weakrefset.py", line 97, in copy
  48. return self.__class__(self)
  49. File "/usr/lib/python3.10/_weakrefset.py", line 51, in __init__
  50. self.update(data)
  51. File "/usr/lib/python3.10/_weakrefset.py", line 124, in update
  52. for element in other:
  53. File "/usr/lib/python3.10/_weakrefset.py", line 64, in __iter__
  54. with _IterationGuard(self):
  55. File "/usr/lib/python3.10/_weakrefset.py", line 33, in __exit__
  56. w._commit_removals()
  57. File "/usr/lib/python3.10/_weakrefset.py", line 58, in _commit_removals
  58. item = pop()
  59. RecursionError: maximum recursion depth exceeded while calling a Python object
  60.  
  61. During handling of the above exception, another exception occurred:
  62.  
  63. Traceback (most recent call last):
  64. File "/home/odoo/src/odoo/odoo/http.py", line 1651, in _serve_db
  65. return service_model.retrying(self._serve_ir_http, self.env)
  66. File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying
  67. result = func()
  68. File "/home/odoo/src/odoo/odoo/http.py", line 1678, in _serve_ir_http
  69. response = self.dispatcher.dispatch(rule.endpoint, args)
  70. File "/home/odoo/src/odoo/odoo/http.py", line 1882, in dispatch
  71. result = self.request.registry['ir.http']._dispatch(endpoint)
  72. File "/home/odoo/src/odoo/addons/website/models/ir_http.py", line 237, in _dispatch
  73. response = super()._dispatch(endpoint)
  74. File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
  75. result = endpoint(**request.params)
  76. File "/home/odoo/src/odoo/odoo/http.py", line 734, in route_wrapper
  77. result = endpoint(self, *args, **params_ok)
  78. File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 46, in call_button
  79. action = self._call_kw(model, method, args, kwargs)
  80. File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
  81. return call_kw(request.env[model], method, args, kwargs)
  82. File "/home/odoo/src/odoo/odoo/api.py", line 468, in call_kw
  83. result = _call_kw_multi(method, model, args, kwargs)
  84. File "/home/odoo/src/odoo/odoo/api.py", line 453, in _call_kw_multi
  85. result = method(recs, *args, **kwargs)
  86. File "/home/odoo/src/user/odoo-mastercore/account-payment/account_payment_group/models/account_move.py", line 82, in action_post
  87. res = super(AccountMove, self).action_post()
  88. File "/home/odoo/src/odoo/addons/sale/models/account_move.py", line 63, in action_post
  89. res = super(AccountMove, self).action_post()
  90. File "/home/odoo/src/user/odoo-mastercore/account-financial-tools/account_ux/models/account_move.py", line 51, in action_post
  91. res = super().action_post()
  92. File "/home/odoo/src/enterprise/account_accountant/models/account_move.py", line 24, in action_post
  93. res = super().action_post()
  94. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 3850, in action_post
  95. other_moves._post(soft=False)
  96. File "/home/odoo/src/user/odoo-mastercore/odoo-venezuela/l10n_ve_withholding/models/account_move.py", line 64, in _post
  97. super(AccountMove, self)._post(soft)
  98. File "/home/odoo/src/odoo/addons/stock_landed_costs/models/account_move.py", line 50, in _post
  99. posted = super()._post(soft)
  100. File "/home/odoo/src/user/odoo-mastercore/odoo_pos/pos_hka_printer/models/account_move.py", line 27, in _post
  101. res = super(AccountMove, self)._post(soft)
  102. File "/home/odoo/src/enterprise/account_asset/models/account_move.py", line 113, in _post
  103. posted = super()._post(soft)
  104. File "/home/odoo/src/odoo/addons/sale/models/account_move.py", line 107, in _post
  105. posted = super()._post(soft)
  106. File "/home/odoo/src/odoo/addons/purchase_stock/models/account_invoice.py", line 159, in _post
  107. svls, _amls = valued_lines._apply_price_difference()
  108. File "/home/odoo/src/odoo/addons/purchase_stock/models/account_move_line.py", line 155, in _apply_price_difference
  109. return self.env['stock.valuation.layer'].sudo().create(svl_vals_list), self.env['account.move.line'].sudo().create(aml_vals_list)
  110. File "<decorator-gen-216>", line 2, in create
  111. File "/home/odoo/src/odoo/odoo/api.py", line 415, in _model_create_multi
  112. return create(self, arg)
  113. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1440, in create
  114. with moves._check_balanced(move_container),\
  115. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  116. next(self.gen)
  117. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  118. unbalanced_moves = self._get_unbalanced_moves(container)
  119. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  120. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  121. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  122. self._recompute_model(fnames)
  123. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  124. self._recompute_field(field)
  125. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  126. field.recompute(records)
  127. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  128. apply_except_missing(self.compute_value, recs)
  129. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  130. func(records)
  131. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  132. records._compute_field_value(self)
  133. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  134. fields.determine(field.compute, self)
  135. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  136. return needle(*args)
  137. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  138. line.foreign_currency_rate = round(rate,4)
  139. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  140. records.write({self.name: write_value})
  141. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  142. with self.move_id._check_balanced(move_container),\
  143. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  144. next(self.gen)
  145. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  146. unbalanced_moves = self._get_unbalanced_moves(container)
  147. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  148. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  149. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  150. self._recompute_model(fnames)
  151. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  152. self._recompute_field(field)
  153. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  154. field.recompute(records)
  155. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  156. apply_except_missing(self.compute_value, recs)
  157. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  158. func(records)
  159. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  160. records._compute_field_value(self)
  161. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  162. fields.determine(field.compute, self)
  163. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  164. return needle(*args)
  165. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  166. line.foreign_currency_rate = round(rate,4)
  167. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  168. records.write({self.name: write_value})
  169. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  170. with self.move_id._check_balanced(move_container),\
  171. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  172. next(self.gen)
  173. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  174. unbalanced_moves = self._get_unbalanced_moves(container)
  175. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  176. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  177. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  178. self._recompute_model(fnames)
  179. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  180. self._recompute_field(field)
  181. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  182. field.recompute(records)
  183. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  184. apply_except_missing(self.compute_value, recs)
  185. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  186. func(records)
  187. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  188. records._compute_field_value(self)
  189. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  190. fields.determine(field.compute, self)
  191. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  192. return needle(*args)
  193. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  194. line.foreign_currency_rate = round(rate,4)
  195. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  196. records.write({self.name: write_value})
  197. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  198. with self.move_id._check_balanced(move_container),\
  199. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  200. next(self.gen)
  201. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  202. unbalanced_moves = self._get_unbalanced_moves(container)
  203. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  204. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  205. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  206. self._recompute_model(fnames)
  207. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  208. self._recompute_field(field)
  209. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  210. field.recompute(records)
  211. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  212. apply_except_missing(self.compute_value, recs)
  213. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  214. func(records)
  215. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  216. records._compute_field_value(self)
  217. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  218. fields.determine(field.compute, self)
  219. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  220. return needle(*args)
  221. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  222. line.foreign_currency_rate = round(rate,4)
  223. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  224. records.write({self.name: write_value})
  225. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  226. with self.move_id._check_balanced(move_container),\
  227. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  228. next(self.gen)
  229. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  230. unbalanced_moves = self._get_unbalanced_moves(container)
  231. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  232. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  233. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  234. self._recompute_model(fnames)
  235. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  236. self._recompute_field(field)
  237. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  238. field.recompute(records)
  239. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  240. apply_except_missing(self.compute_value, recs)
  241. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  242. func(records)
  243. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  244. records._compute_field_value(self)
  245. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  246. fields.determine(field.compute, self)
  247. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  248. return needle(*args)
  249. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  250. line.foreign_currency_rate = round(rate,4)
  251. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  252. records.write({self.name: write_value})
  253. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  254. with self.move_id._check_balanced(move_container),\
  255. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  256. next(self.gen)
  257. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  258. unbalanced_moves = self._get_unbalanced_moves(container)
  259. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  260. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  261. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  262. self._recompute_model(fnames)
  263. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  264. self._recompute_field(field)
  265. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  266. field.recompute(records)
  267. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  268. apply_except_missing(self.compute_value, recs)
  269. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  270. func(records)
  271. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  272. records._compute_field_value(self)
  273. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  274. fields.determine(field.compute, self)
  275. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  276. return needle(*args)
  277. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  278. line.foreign_currency_rate = round(rate,4)
  279. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  280. records.write({self.name: write_value})
  281. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  282. with self.move_id._check_balanced(move_container),\
  283. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  284. next(self.gen)
  285. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  286. unbalanced_moves = self._get_unbalanced_moves(container)
  287. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  288. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  289. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  290. self._recompute_model(fnames)
  291. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  292. self._recompute_field(field)
  293. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  294. field.recompute(records)
  295. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  296. apply_except_missing(self.compute_value, recs)
  297. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  298. func(records)
  299. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  300. records._compute_field_value(self)
  301. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  302. fields.determine(field.compute, self)
  303. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  304. return needle(*args)
  305. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  306. line.foreign_currency_rate = round(rate,4)
  307. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  308. records.write({self.name: write_value})
  309. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  310. with self.move_id._check_balanced(move_container),\
  311. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  312. next(self.gen)
  313. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  314. unbalanced_moves = self._get_unbalanced_moves(container)
  315. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  316. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  317. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  318. self._recompute_model(fnames)
  319. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  320. self._recompute_field(field)
  321. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  322. field.recompute(records)
  323. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  324. apply_except_missing(self.compute_value, recs)
  325. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  326. func(records)
  327. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  328. records._compute_field_value(self)
  329. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  330. fields.determine(field.compute, self)
  331. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  332. return needle(*args)
  333. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  334. line.foreign_currency_rate = round(rate,4)
  335. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  336. records.write({self.name: write_value})
  337. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  338. with self.move_id._check_balanced(move_container),\
  339. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  340. next(self.gen)
  341. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  342. unbalanced_moves = self._get_unbalanced_moves(container)
  343. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  344. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  345. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  346. self._recompute_model(fnames)
  347. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  348. self._recompute_field(field)
  349. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  350. field.recompute(records)
  351. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  352. apply_except_missing(self.compute_value, recs)
  353. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  354. func(records)
  355. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  356. records._compute_field_value(self)
  357. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  358. fields.determine(field.compute, self)
  359. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  360. return needle(*args)
  361. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  362. line.foreign_currency_rate = round(rate,4)
  363. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  364. records.write({self.name: write_value})
  365. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  366. with self.move_id._check_balanced(move_container),\
  367. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  368. next(self.gen)
  369. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  370. unbalanced_moves = self._get_unbalanced_moves(container)
  371. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  372. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  373. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  374. self._recompute_model(fnames)
  375. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  376. self._recompute_field(field)
  377. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  378. field.recompute(records)
  379. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  380. apply_except_missing(self.compute_value, recs)
  381. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  382. func(records)
  383. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  384. records._compute_field_value(self)
  385. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  386. fields.determine(field.compute, self)
  387. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  388. return needle(*args)
  389. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  390. line.foreign_currency_rate = round(rate,4)
  391. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  392. records.write({self.name: write_value})
  393. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  394. with self.move_id._check_balanced(move_container),\
  395. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  396. next(self.gen)
  397. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  398. unbalanced_moves = self._get_unbalanced_moves(container)
  399. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  400. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  401. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  402. self._recompute_model(fnames)
  403. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  404. self._recompute_field(field)
  405. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  406. field.recompute(records)
  407. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  408. apply_except_missing(self.compute_value, recs)
  409. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  410. func(records)
  411. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  412. records._compute_field_value(self)
  413. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  414. fields.determine(field.compute, self)
  415. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  416. return needle(*args)
  417. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  418. line.foreign_currency_rate = round(rate,4)
  419. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  420. records.write({self.name: write_value})
  421. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  422. with self.move_id._check_balanced(move_container),\
  423. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  424. next(self.gen)
  425. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  426. unbalanced_moves = self._get_unbalanced_moves(container)
  427. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  428. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  429. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  430. self._recompute_model(fnames)
  431. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  432. self._recompute_field(field)
  433. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  434. field.recompute(records)
  435. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  436. apply_except_missing(self.compute_value, recs)
  437. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  438. func(records)
  439. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  440. records._compute_field_value(self)
  441. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  442. fields.determine(field.compute, self)
  443. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  444. return needle(*args)
  445. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  446. line.foreign_currency_rate = round(rate,4)
  447. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  448. records.write({self.name: write_value})
  449. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  450. with self.move_id._check_balanced(move_container),\
  451. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  452. next(self.gen)
  453. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  454. unbalanced_moves = self._get_unbalanced_moves(container)
  455. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  456. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  457. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  458. self._recompute_model(fnames)
  459. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  460. self._recompute_field(field)
  461. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  462. field.recompute(records)
  463. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  464. apply_except_missing(self.compute_value, recs)
  465. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  466. func(records)
  467. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  468. records._compute_field_value(self)
  469. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  470. fields.determine(field.compute, self)
  471. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  472. return needle(*args)
  473. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  474. line.foreign_currency_rate = round(rate,4)
  475. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  476. records.write({self.name: write_value})
  477. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  478. with self.move_id._check_balanced(move_container),\
  479. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  480. next(self.gen)
  481. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  482. unbalanced_moves = self._get_unbalanced_moves(container)
  483. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  484. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  485. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  486. self._recompute_model(fnames)
  487. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  488. self._recompute_field(field)
  489. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  490. field.recompute(records)
  491. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  492. apply_except_missing(self.compute_value, recs)
  493. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  494. func(records)
  495. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  496. records._compute_field_value(self)
  497. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  498. fields.determine(field.compute, self)
  499. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  500. return needle(*args)
  501. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  502. line.foreign_currency_rate = round(rate,4)
  503. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  504. records.write({self.name: write_value})
  505. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  506. with self.move_id._check_balanced(move_container),\
  507. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  508. next(self.gen)
  509. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  510. unbalanced_moves = self._get_unbalanced_moves(container)
  511. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  512. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  513. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  514. self._recompute_model(fnames)
  515. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  516. self._recompute_field(field)
  517. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  518. field.recompute(records)
  519. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  520. apply_except_missing(self.compute_value, recs)
  521. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  522. func(records)
  523. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  524. records._compute_field_value(self)
  525. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  526. fields.determine(field.compute, self)
  527. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  528. return needle(*args)
  529. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  530. line.foreign_currency_rate = round(rate,4)
  531. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  532. records.write({self.name: write_value})
  533. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  534. with self.move_id._check_balanced(move_container),\
  535. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  536. next(self.gen)
  537. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  538. unbalanced_moves = self._get_unbalanced_moves(container)
  539. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  540. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  541. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  542. self._recompute_model(fnames)
  543. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  544. self._recompute_field(field)
  545. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  546. field.recompute(records)
  547. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  548. apply_except_missing(self.compute_value, recs)
  549. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  550. func(records)
  551. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  552. records._compute_field_value(self)
  553. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  554. fields.determine(field.compute, self)
  555. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  556. return needle(*args)
  557. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  558. line.foreign_currency_rate = round(rate,4)
  559. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  560. records.write({self.name: write_value})
  561. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  562. with self.move_id._check_balanced(move_container),\
  563. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  564. next(self.gen)
  565. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  566. unbalanced_moves = self._get_unbalanced_moves(container)
  567. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  568. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  569. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  570. self._recompute_model(fnames)
  571. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  572. self._recompute_field(field)
  573. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  574. field.recompute(records)
  575. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  576. apply_except_missing(self.compute_value, recs)
  577. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  578. func(records)
  579. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  580. records._compute_field_value(self)
  581. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  582. fields.determine(field.compute, self)
  583. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  584. return needle(*args)
  585. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  586. line.foreign_currency_rate = round(rate,4)
  587. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  588. records.write({self.name: write_value})
  589. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  590. with self.move_id._check_balanced(move_container),\
  591. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  592. next(self.gen)
  593. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  594. unbalanced_moves = self._get_unbalanced_moves(container)
  595. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  596. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  597. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  598. self._recompute_model(fnames)
  599. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  600. self._recompute_field(field)
  601. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  602. field.recompute(records)
  603. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  604. apply_except_missing(self.compute_value, recs)
  605. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  606. func(records)
  607. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  608. records._compute_field_value(self)
  609. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  610. fields.determine(field.compute, self)
  611. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  612. return needle(*args)
  613. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  614. line.foreign_currency_rate = round(rate,4)
  615. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  616. records.write({self.name: write_value})
  617. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  618. with self.move_id._check_balanced(move_container),\
  619. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  620. next(self.gen)
  621. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  622. unbalanced_moves = self._get_unbalanced_moves(container)
  623. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  624. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  625. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  626. self._recompute_model(fnames)
  627. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  628. self._recompute_field(field)
  629. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  630. field.recompute(records)
  631. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  632. apply_except_missing(self.compute_value, recs)
  633. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  634. func(records)
  635. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  636. records._compute_field_value(self)
  637. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  638. fields.determine(field.compute, self)
  639. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  640. return needle(*args)
  641. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  642. line.foreign_currency_rate = round(rate,4)
  643. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  644. records.write({self.name: write_value})
  645. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  646. with self.move_id._check_balanced(move_container),\
  647. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  648. next(self.gen)
  649. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  650. unbalanced_moves = self._get_unbalanced_moves(container)
  651. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  652. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  653. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  654. self._recompute_model(fnames)
  655. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  656. self._recompute_field(field)
  657. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  658. field.recompute(records)
  659. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  660. apply_except_missing(self.compute_value, recs)
  661. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  662. func(records)
  663. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  664. records._compute_field_value(self)
  665. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  666. fields.determine(field.compute, self)
  667. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  668. return needle(*args)
  669. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  670. line.foreign_currency_rate = round(rate,4)
  671. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  672. records.write({self.name: write_value})
  673. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  674. with self.move_id._check_balanced(move_container),\
  675. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  676. next(self.gen)
  677. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  678. unbalanced_moves = self._get_unbalanced_moves(container)
  679. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  680. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  681. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  682. self._recompute_model(fnames)
  683. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  684. self._recompute_field(field)
  685. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  686. field.recompute(records)
  687. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  688. apply_except_missing(self.compute_value, recs)
  689. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  690. func(records)
  691. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  692. records._compute_field_value(self)
  693. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  694. fields.determine(field.compute, self)
  695. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  696. return needle(*args)
  697. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  698. line.foreign_currency_rate = round(rate,4)
  699. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  700. records.write({self.name: write_value})
  701. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  702. with self.move_id._check_balanced(move_container),\
  703. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  704. next(self.gen)
  705. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  706. unbalanced_moves = self._get_unbalanced_moves(container)
  707. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  708. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  709. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  710. self._recompute_model(fnames)
  711. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  712. self._recompute_field(field)
  713. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  714. field.recompute(records)
  715. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  716. apply_except_missing(self.compute_value, recs)
  717. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  718. func(records)
  719. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  720. records._compute_field_value(self)
  721. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  722. fields.determine(field.compute, self)
  723. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  724. return needle(*args)
  725. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  726. line.foreign_currency_rate = round(rate,4)
  727. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  728. records.write({self.name: write_value})
  729. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  730. with self.move_id._check_balanced(move_container),\
  731. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  732. next(self.gen)
  733. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  734. unbalanced_moves = self._get_unbalanced_moves(container)
  735. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  736. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  737. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  738. self._recompute_model(fnames)
  739. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  740. self._recompute_field(field)
  741. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  742. field.recompute(records)
  743. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  744. apply_except_missing(self.compute_value, recs)
  745. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  746. func(records)
  747. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  748. records._compute_field_value(self)
  749. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  750. fields.determine(field.compute, self)
  751. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  752. return needle(*args)
  753. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  754. line.foreign_currency_rate = round(rate,4)
  755. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  756. records.write({self.name: write_value})
  757. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  758. with self.move_id._check_balanced(move_container),\
  759. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  760. next(self.gen)
  761. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  762. unbalanced_moves = self._get_unbalanced_moves(container)
  763. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  764. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  765. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  766. self._recompute_model(fnames)
  767. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  768. self._recompute_field(field)
  769. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  770. field.recompute(records)
  771. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  772. apply_except_missing(self.compute_value, recs)
  773. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  774. func(records)
  775. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  776. records._compute_field_value(self)
  777. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  778. fields.determine(field.compute, self)
  779. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  780. return needle(*args)
  781. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  782. line.foreign_currency_rate = round(rate,4)
  783. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  784. records.write({self.name: write_value})
  785. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  786. with self.move_id._check_balanced(move_container),\
  787. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  788. next(self.gen)
  789. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  790. unbalanced_moves = self._get_unbalanced_moves(container)
  791. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  792. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  793. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  794. self._recompute_model(fnames)
  795. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  796. self._recompute_field(field)
  797. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  798. field.recompute(records)
  799. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  800. apply_except_missing(self.compute_value, recs)
  801. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  802. func(records)
  803. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  804. records._compute_field_value(self)
  805. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  806. fields.determine(field.compute, self)
  807. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  808. return needle(*args)
  809. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  810. line.foreign_currency_rate = round(rate,4)
  811. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  812. records.write({self.name: write_value})
  813. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  814. with self.move_id._check_balanced(move_container),\
  815. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  816. next(self.gen)
  817. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  818. unbalanced_moves = self._get_unbalanced_moves(container)
  819. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  820. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  821. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  822. self._recompute_model(fnames)
  823. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  824. self._recompute_field(field)
  825. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  826. field.recompute(records)
  827. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  828. apply_except_missing(self.compute_value, recs)
  829. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  830. func(records)
  831. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  832. records._compute_field_value(self)
  833. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  834. fields.determine(field.compute, self)
  835. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  836. return needle(*args)
  837. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  838. line.foreign_currency_rate = round(rate,4)
  839. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  840. records.write({self.name: write_value})
  841. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  842. with self.move_id._check_balanced(move_container),\
  843. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  844. next(self.gen)
  845. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  846. unbalanced_moves = self._get_unbalanced_moves(container)
  847. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  848. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  849. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  850. self._recompute_model(fnames)
  851. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  852. self._recompute_field(field)
  853. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  854. field.recompute(records)
  855. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  856. apply_except_missing(self.compute_value, recs)
  857. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  858. func(records)
  859. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  860. records._compute_field_value(self)
  861. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  862. fields.determine(field.compute, self)
  863. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  864. return needle(*args)
  865. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  866. line.foreign_currency_rate = round(rate,4)
  867. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  868. records.write({self.name: write_value})
  869. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  870. with self.move_id._check_balanced(move_container),\
  871. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  872. next(self.gen)
  873. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  874. unbalanced_moves = self._get_unbalanced_moves(container)
  875. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  876. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  877. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  878. self._recompute_model(fnames)
  879. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  880. self._recompute_field(field)
  881. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  882. field.recompute(records)
  883. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  884. apply_except_missing(self.compute_value, recs)
  885. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  886. func(records)
  887. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  888. records._compute_field_value(self)
  889. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  890. fields.determine(field.compute, self)
  891. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  892. return needle(*args)
  893. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  894. line.foreign_currency_rate = round(rate,4)
  895. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  896. records.write({self.name: write_value})
  897. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  898. with self.move_id._check_balanced(move_container),\
  899. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  900. next(self.gen)
  901. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  902. unbalanced_moves = self._get_unbalanced_moves(container)
  903. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  904. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  905. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  906. self._recompute_model(fnames)
  907. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  908. self._recompute_field(field)
  909. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  910. field.recompute(records)
  911. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  912. apply_except_missing(self.compute_value, recs)
  913. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  914. func(records)
  915. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  916. records._compute_field_value(self)
  917. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  918. fields.determine(field.compute, self)
  919. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  920. return needle(*args)
  921. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  922. line.foreign_currency_rate = round(rate,4)
  923. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  924. records.write({self.name: write_value})
  925. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  926. with self.move_id._check_balanced(move_container),\
  927. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  928. next(self.gen)
  929. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  930. unbalanced_moves = self._get_unbalanced_moves(container)
  931. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  932. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  933. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  934. self._recompute_model(fnames)
  935. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  936. self._recompute_field(field)
  937. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  938. field.recompute(records)
  939. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  940. apply_except_missing(self.compute_value, recs)
  941. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  942. func(records)
  943. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  944. records._compute_field_value(self)
  945. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  946. fields.determine(field.compute, self)
  947. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  948. return needle(*args)
  949. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  950. line.foreign_currency_rate = round(rate,4)
  951. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  952. records.write({self.name: write_value})
  953. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  954. with self.move_id._check_balanced(move_container),\
  955. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  956. next(self.gen)
  957. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  958. unbalanced_moves = self._get_unbalanced_moves(container)
  959. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  960. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  961. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  962. self._recompute_model(fnames)
  963. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  964. self._recompute_field(field)
  965. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  966. field.recompute(records)
  967. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  968. apply_except_missing(self.compute_value, recs)
  969. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  970. func(records)
  971. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  972. records._compute_field_value(self)
  973. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  974. fields.determine(field.compute, self)
  975. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  976. return needle(*args)
  977. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  978. line.foreign_currency_rate = round(rate,4)
  979. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  980. records.write({self.name: write_value})
  981. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  982. with self.move_id._check_balanced(move_container),\
  983. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  984. next(self.gen)
  985. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  986. unbalanced_moves = self._get_unbalanced_moves(container)
  987. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  988. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  989. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  990. self._recompute_model(fnames)
  991. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  992. self._recompute_field(field)
  993. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  994. field.recompute(records)
  995. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  996. apply_except_missing(self.compute_value, recs)
  997. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  998. func(records)
  999. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1000. records._compute_field_value(self)
  1001. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1002. fields.determine(field.compute, self)
  1003. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1004. return needle(*args)
  1005. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1006. line.foreign_currency_rate = round(rate,4)
  1007. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1008. records.write({self.name: write_value})
  1009. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1010. with self.move_id._check_balanced(move_container),\
  1011. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1012. next(self.gen)
  1013. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1014. unbalanced_moves = self._get_unbalanced_moves(container)
  1015. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1016. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1017. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1018. self._recompute_model(fnames)
  1019. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1020. self._recompute_field(field)
  1021. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1022. field.recompute(records)
  1023. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1024. apply_except_missing(self.compute_value, recs)
  1025. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1026. func(records)
  1027. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1028. records._compute_field_value(self)
  1029. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1030. fields.determine(field.compute, self)
  1031. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1032. return needle(*args)
  1033. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1034. line.foreign_currency_rate = round(rate,4)
  1035. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1036. records.write({self.name: write_value})
  1037. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1038. with self.move_id._check_balanced(move_container),\
  1039. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1040. next(self.gen)
  1041. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1042. unbalanced_moves = self._get_unbalanced_moves(container)
  1043. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1044. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1045. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1046. self._recompute_model(fnames)
  1047. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1048. self._recompute_field(field)
  1049. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1050. field.recompute(records)
  1051. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1052. apply_except_missing(self.compute_value, recs)
  1053. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1054. func(records)
  1055. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1056. records._compute_field_value(self)
  1057. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1058. fields.determine(field.compute, self)
  1059. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1060. return needle(*args)
  1061. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1062. line.foreign_currency_rate = round(rate,4)
  1063. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1064. records.write({self.name: write_value})
  1065. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1066. with self.move_id._check_balanced(move_container),\
  1067. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1068. next(self.gen)
  1069. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1070. unbalanced_moves = self._get_unbalanced_moves(container)
  1071. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1072. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1073. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1074. self._recompute_model(fnames)
  1075. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1076. self._recompute_field(field)
  1077. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1078. field.recompute(records)
  1079. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1080. apply_except_missing(self.compute_value, recs)
  1081. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1082. func(records)
  1083. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1084. records._compute_field_value(self)
  1085. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1086. fields.determine(field.compute, self)
  1087. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1088. return needle(*args)
  1089. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1090. line.foreign_currency_rate = round(rate,4)
  1091. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1092. records.write({self.name: write_value})
  1093. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1094. with self.move_id._check_balanced(move_container),\
  1095. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1096. next(self.gen)
  1097. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1098. unbalanced_moves = self._get_unbalanced_moves(container)
  1099. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1100. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1101. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1102. self._recompute_model(fnames)
  1103. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1104. self._recompute_field(field)
  1105. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1106. field.recompute(records)
  1107. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1108. apply_except_missing(self.compute_value, recs)
  1109. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1110. func(records)
  1111. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1112. records._compute_field_value(self)
  1113. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1114. fields.determine(field.compute, self)
  1115. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1116. return needle(*args)
  1117. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1118. line.foreign_currency_rate = round(rate,4)
  1119. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1120. records.write({self.name: write_value})
  1121. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1122. with self.move_id._check_balanced(move_container),\
  1123. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1124. next(self.gen)
  1125. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1126. unbalanced_moves = self._get_unbalanced_moves(container)
  1127. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1128. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1129. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1130. self._recompute_model(fnames)
  1131. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1132. self._recompute_field(field)
  1133. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1134. field.recompute(records)
  1135. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1136. apply_except_missing(self.compute_value, recs)
  1137. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1138. func(records)
  1139. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1140. records._compute_field_value(self)
  1141. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1142. fields.determine(field.compute, self)
  1143. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1144. return needle(*args)
  1145. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1146. line.foreign_currency_rate = round(rate,4)
  1147. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1148. records.write({self.name: write_value})
  1149. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1150. with self.move_id._check_balanced(move_container),\
  1151. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1152. next(self.gen)
  1153. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1154. unbalanced_moves = self._get_unbalanced_moves(container)
  1155. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1156. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1157. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1158. self._recompute_model(fnames)
  1159. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1160. self._recompute_field(field)
  1161. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1162. field.recompute(records)
  1163. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1164. apply_except_missing(self.compute_value, recs)
  1165. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1166. func(records)
  1167. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1168. records._compute_field_value(self)
  1169. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1170. fields.determine(field.compute, self)
  1171. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1172. return needle(*args)
  1173. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1174. line.foreign_currency_rate = round(rate,4)
  1175. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1176. records.write({self.name: write_value})
  1177. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1178. with self.move_id._check_balanced(move_container),\
  1179. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1180. next(self.gen)
  1181. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1182. unbalanced_moves = self._get_unbalanced_moves(container)
  1183. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1184. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1185. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1186. self._recompute_model(fnames)
  1187. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1188. self._recompute_field(field)
  1189. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1190. field.recompute(records)
  1191. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1192. apply_except_missing(self.compute_value, recs)
  1193. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1194. func(records)
  1195. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1196. records._compute_field_value(self)
  1197. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1198. fields.determine(field.compute, self)
  1199. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1200. return needle(*args)
  1201. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1202. line.foreign_currency_rate = round(rate,4)
  1203. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1204. records.write({self.name: write_value})
  1205. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1206. with self.move_id._check_balanced(move_container),\
  1207. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1208. next(self.gen)
  1209. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1210. unbalanced_moves = self._get_unbalanced_moves(container)
  1211. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1212. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1213. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1214. self._recompute_model(fnames)
  1215. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1216. self._recompute_field(field)
  1217. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1218. field.recompute(records)
  1219. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1220. apply_except_missing(self.compute_value, recs)
  1221. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1222. func(records)
  1223. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1224. records._compute_field_value(self)
  1225. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1226. fields.determine(field.compute, self)
  1227. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1228. return needle(*args)
  1229. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1230. line.foreign_currency_rate = round(rate,4)
  1231. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1232. records.write({self.name: write_value})
  1233. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1234. with self.move_id._check_balanced(move_container),\
  1235. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1236. next(self.gen)
  1237. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1238. unbalanced_moves = self._get_unbalanced_moves(container)
  1239. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1240. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1241. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1242. self._recompute_model(fnames)
  1243. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1244. self._recompute_field(field)
  1245. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1246. field.recompute(records)
  1247. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1248. apply_except_missing(self.compute_value, recs)
  1249. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1250. func(records)
  1251. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1252. records._compute_field_value(self)
  1253. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1254. fields.determine(field.compute, self)
  1255. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1256. return needle(*args)
  1257. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1258. line.foreign_currency_rate = round(rate,4)
  1259. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1260. records.write({self.name: write_value})
  1261. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1262. with self.move_id._check_balanced(move_container),\
  1263. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1264. next(self.gen)
  1265. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1266. unbalanced_moves = self._get_unbalanced_moves(container)
  1267. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1268. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1269. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1270. self._recompute_model(fnames)
  1271. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1272. self._recompute_field(field)
  1273. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1274. field.recompute(records)
  1275. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1276. apply_except_missing(self.compute_value, recs)
  1277. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1278. func(records)
  1279. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1280. records._compute_field_value(self)
  1281. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1282. fields.determine(field.compute, self)
  1283. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1284. return needle(*args)
  1285. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1286. line.foreign_currency_rate = round(rate,4)
  1287. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1288. records.write({self.name: write_value})
  1289. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1290. with self.move_id._check_balanced(move_container),\
  1291. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1292. next(self.gen)
  1293. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1294. unbalanced_moves = self._get_unbalanced_moves(container)
  1295. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1296. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1297. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1298. self._recompute_model(fnames)
  1299. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1300. self._recompute_field(field)
  1301. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1302. field.recompute(records)
  1303. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1304. apply_except_missing(self.compute_value, recs)
  1305. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1306. func(records)
  1307. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1308. records._compute_field_value(self)
  1309. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1310. fields.determine(field.compute, self)
  1311. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1312. return needle(*args)
  1313. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1314. line.foreign_currency_rate = round(rate,4)
  1315. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1316. records.write({self.name: write_value})
  1317. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1318. with self.move_id._check_balanced(move_container),\
  1319. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1320. next(self.gen)
  1321. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1322. unbalanced_moves = self._get_unbalanced_moves(container)
  1323. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1324. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1325. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1326. self._recompute_model(fnames)
  1327. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1328. self._recompute_field(field)
  1329. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1330. field.recompute(records)
  1331. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1332. apply_except_missing(self.compute_value, recs)
  1333. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1334. func(records)
  1335. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1336. records._compute_field_value(self)
  1337. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1338. fields.determine(field.compute, self)
  1339. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1340. return needle(*args)
  1341. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1342. line.foreign_currency_rate = round(rate,4)
  1343. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1344. records.write({self.name: write_value})
  1345. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1346. with self.move_id._check_balanced(move_container),\
  1347. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1348. next(self.gen)
  1349. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1350. unbalanced_moves = self._get_unbalanced_moves(container)
  1351. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1352. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1353. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1354. self._recompute_model(fnames)
  1355. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1356. self._recompute_field(field)
  1357. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1358. field.recompute(records)
  1359. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1360. apply_except_missing(self.compute_value, recs)
  1361. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1362. func(records)
  1363. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1364. records._compute_field_value(self)
  1365. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1366. fields.determine(field.compute, self)
  1367. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1368. return needle(*args)
  1369. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1370. line.foreign_currency_rate = round(rate,4)
  1371. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1372. records.write({self.name: write_value})
  1373. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1374. with self.move_id._check_balanced(move_container),\
  1375. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1376. next(self.gen)
  1377. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1378. unbalanced_moves = self._get_unbalanced_moves(container)
  1379. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1380. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1381. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1382. self._recompute_model(fnames)
  1383. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1384. self._recompute_field(field)
  1385. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1386. field.recompute(records)
  1387. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1388. apply_except_missing(self.compute_value, recs)
  1389. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1390. func(records)
  1391. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1392. records._compute_field_value(self)
  1393. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1394. fields.determine(field.compute, self)
  1395. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1396. return needle(*args)
  1397. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1398. line.foreign_currency_rate = round(rate,4)
  1399. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1400. records.write({self.name: write_value})
  1401. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1402. with self.move_id._check_balanced(move_container),\
  1403. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1404. next(self.gen)
  1405. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1406. unbalanced_moves = self._get_unbalanced_moves(container)
  1407. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1408. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1409. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1410. self._recompute_model(fnames)
  1411. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1412. self._recompute_field(field)
  1413. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1414. field.recompute(records)
  1415. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1416. apply_except_missing(self.compute_value, recs)
  1417. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1418. func(records)
  1419. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1420. records._compute_field_value(self)
  1421. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1422. fields.determine(field.compute, self)
  1423. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1424. return needle(*args)
  1425. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1426. line.foreign_currency_rate = round(rate,4)
  1427. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1428. records.write({self.name: write_value})
  1429. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1430. with self.move_id._check_balanced(move_container),\
  1431. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1432. next(self.gen)
  1433. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1434. unbalanced_moves = self._get_unbalanced_moves(container)
  1435. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1436. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1437. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1438. self._recompute_model(fnames)
  1439. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1440. self._recompute_field(field)
  1441. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1442. field.recompute(records)
  1443. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1444. apply_except_missing(self.compute_value, recs)
  1445. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1446. func(records)
  1447. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1448. records._compute_field_value(self)
  1449. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1450. fields.determine(field.compute, self)
  1451. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1452. return needle(*args)
  1453. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1454. line.foreign_currency_rate = round(rate,4)
  1455. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1456. records.write({self.name: write_value})
  1457. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1458. with self.move_id._check_balanced(move_container),\
  1459. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1460. next(self.gen)
  1461. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1462. unbalanced_moves = self._get_unbalanced_moves(container)
  1463. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1464. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1465. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1466. self._recompute_model(fnames)
  1467. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1468. self._recompute_field(field)
  1469. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1470. field.recompute(records)
  1471. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1472. apply_except_missing(self.compute_value, recs)
  1473. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1474. func(records)
  1475. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1476. records._compute_field_value(self)
  1477. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1478. fields.determine(field.compute, self)
  1479. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1480. return needle(*args)
  1481. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1482. line.foreign_currency_rate = round(rate,4)
  1483. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1484. records.write({self.name: write_value})
  1485. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1486. with self.move_id._check_balanced(move_container),\
  1487. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1488. next(self.gen)
  1489. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1490. unbalanced_moves = self._get_unbalanced_moves(container)
  1491. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1492. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1493. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1494. self._recompute_model(fnames)
  1495. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1496. self._recompute_field(field)
  1497. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1498. field.recompute(records)
  1499. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1500. apply_except_missing(self.compute_value, recs)
  1501. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1502. func(records)
  1503. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1504. records._compute_field_value(self)
  1505. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1506. fields.determine(field.compute, self)
  1507. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1508. return needle(*args)
  1509. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1510. line.foreign_currency_rate = round(rate,4)
  1511. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1512. records.write({self.name: write_value})
  1513. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1514. with self.move_id._check_balanced(move_container),\
  1515. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1516. next(self.gen)
  1517. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1518. unbalanced_moves = self._get_unbalanced_moves(container)
  1519. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1520. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1521. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1522. self._recompute_model(fnames)
  1523. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1524. self._recompute_field(field)
  1525. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1526. field.recompute(records)
  1527. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1528. apply_except_missing(self.compute_value, recs)
  1529. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1530. func(records)
  1531. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1532. records._compute_field_value(self)
  1533. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1534. fields.determine(field.compute, self)
  1535. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1536. return needle(*args)
  1537. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1538. line.foreign_currency_rate = round(rate,4)
  1539. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1540. records.write({self.name: write_value})
  1541. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1542. with self.move_id._check_balanced(move_container),\
  1543. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1544. next(self.gen)
  1545. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1546. unbalanced_moves = self._get_unbalanced_moves(container)
  1547. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1548. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1549. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1550. self._recompute_model(fnames)
  1551. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1552. self._recompute_field(field)
  1553. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1554. field.recompute(records)
  1555. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1556. apply_except_missing(self.compute_value, recs)
  1557. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1558. func(records)
  1559. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1560. records._compute_field_value(self)
  1561. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1562. fields.determine(field.compute, self)
  1563. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1564. return needle(*args)
  1565. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1566. line.foreign_currency_rate = round(rate,4)
  1567. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1568. records.write({self.name: write_value})
  1569. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1570. with self.move_id._check_balanced(move_container),\
  1571. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1572. next(self.gen)
  1573. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1574. unbalanced_moves = self._get_unbalanced_moves(container)
  1575. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1576. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1577. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1578. self._recompute_model(fnames)
  1579. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1580. self._recompute_field(field)
  1581. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1582. field.recompute(records)
  1583. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1584. apply_except_missing(self.compute_value, recs)
  1585. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1586. func(records)
  1587. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1588. records._compute_field_value(self)
  1589. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1590. fields.determine(field.compute, self)
  1591. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1592. return needle(*args)
  1593. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1594. line.foreign_currency_rate = round(rate,4)
  1595. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1596. records.write({self.name: write_value})
  1597. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1598. with self.move_id._check_balanced(move_container),\
  1599. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1600. next(self.gen)
  1601. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1602. unbalanced_moves = self._get_unbalanced_moves(container)
  1603. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1604. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1605. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1606. self._recompute_model(fnames)
  1607. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1608. self._recompute_field(field)
  1609. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1610. field.recompute(records)
  1611. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1612. apply_except_missing(self.compute_value, recs)
  1613. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1614. func(records)
  1615. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1616. records._compute_field_value(self)
  1617. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1618. fields.determine(field.compute, self)
  1619. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1620. return needle(*args)
  1621. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1622. line.foreign_currency_rate = round(rate,4)
  1623. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1624. records.write({self.name: write_value})
  1625. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1626. with self.move_id._check_balanced(move_container),\
  1627. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1628. next(self.gen)
  1629. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1630. unbalanced_moves = self._get_unbalanced_moves(container)
  1631. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1632. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1633. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1634. self._recompute_model(fnames)
  1635. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1636. self._recompute_field(field)
  1637. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1638. field.recompute(records)
  1639. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1640. apply_except_missing(self.compute_value, recs)
  1641. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1642. func(records)
  1643. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1644. records._compute_field_value(self)
  1645. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1646. fields.determine(field.compute, self)
  1647. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1648. return needle(*args)
  1649. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1650. line.foreign_currency_rate = round(rate,4)
  1651. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1652. records.write({self.name: write_value})
  1653. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1654. with self.move_id._check_balanced(move_container),\
  1655. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1656. next(self.gen)
  1657. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1658. unbalanced_moves = self._get_unbalanced_moves(container)
  1659. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1660. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1661. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1662. self._recompute_model(fnames)
  1663. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1664. self._recompute_field(field)
  1665. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1666. field.recompute(records)
  1667. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1668. apply_except_missing(self.compute_value, recs)
  1669. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1670. func(records)
  1671. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1672. records._compute_field_value(self)
  1673. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1674. fields.determine(field.compute, self)
  1675. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1676. return needle(*args)
  1677. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1678. line.foreign_currency_rate = round(rate,4)
  1679. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1680. records.write({self.name: write_value})
  1681. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1682. with self.move_id._check_balanced(move_container),\
  1683. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1684. next(self.gen)
  1685. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1686. unbalanced_moves = self._get_unbalanced_moves(container)
  1687. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1688. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1689. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1690. self._recompute_model(fnames)
  1691. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1692. self._recompute_field(field)
  1693. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1694. field.recompute(records)
  1695. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1696. apply_except_missing(self.compute_value, recs)
  1697. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1698. func(records)
  1699. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1700. records._compute_field_value(self)
  1701. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1702. fields.determine(field.compute, self)
  1703. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1704. return needle(*args)
  1705. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1706. line.foreign_currency_rate = round(rate,4)
  1707. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1708. records.write({self.name: write_value})
  1709. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1710. with self.move_id._check_balanced(move_container),\
  1711. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1712. next(self.gen)
  1713. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1714. unbalanced_moves = self._get_unbalanced_moves(container)
  1715. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1716. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1717. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1718. self._recompute_model(fnames)
  1719. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1720. self._recompute_field(field)
  1721. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1722. field.recompute(records)
  1723. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1724. apply_except_missing(self.compute_value, recs)
  1725. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1726. func(records)
  1727. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1728. records._compute_field_value(self)
  1729. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1730. fields.determine(field.compute, self)
  1731. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1732. return needle(*args)
  1733. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1734. line.foreign_currency_rate = round(rate,4)
  1735. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1736. records.write({self.name: write_value})
  1737. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1738. with self.move_id._check_balanced(move_container),\
  1739. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1740. next(self.gen)
  1741. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1742. unbalanced_moves = self._get_unbalanced_moves(container)
  1743. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1744. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1745. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1746. self._recompute_model(fnames)
  1747. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1748. self._recompute_field(field)
  1749. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1750. field.recompute(records)
  1751. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1752. apply_except_missing(self.compute_value, recs)
  1753. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1754. func(records)
  1755. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1756. records._compute_field_value(self)
  1757. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1758. fields.determine(field.compute, self)
  1759. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1760. return needle(*args)
  1761. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1762. line.foreign_currency_rate = round(rate,4)
  1763. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1764. records.write({self.name: write_value})
  1765. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1766. with self.move_id._check_balanced(move_container),\
  1767. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1768. next(self.gen)
  1769. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1770. unbalanced_moves = self._get_unbalanced_moves(container)
  1771. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1772. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1773. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1774. self._recompute_model(fnames)
  1775. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1776. self._recompute_field(field)
  1777. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1778. field.recompute(records)
  1779. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1780. apply_except_missing(self.compute_value, recs)
  1781. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1782. func(records)
  1783. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1784. records._compute_field_value(self)
  1785. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1786. fields.determine(field.compute, self)
  1787. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1788. return needle(*args)
  1789. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1790. line.foreign_currency_rate = round(rate,4)
  1791. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1792. records.write({self.name: write_value})
  1793. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1794. with self.move_id._check_balanced(move_container),\
  1795. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1796. next(self.gen)
  1797. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1798. unbalanced_moves = self._get_unbalanced_moves(container)
  1799. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1800. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1801. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1802. self._recompute_model(fnames)
  1803. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1804. self._recompute_field(field)
  1805. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1806. field.recompute(records)
  1807. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1808. apply_except_missing(self.compute_value, recs)
  1809. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1810. func(records)
  1811. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1812. records._compute_field_value(self)
  1813. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1814. fields.determine(field.compute, self)
  1815. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1816. return needle(*args)
  1817. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1818. line.foreign_currency_rate = round(rate,4)
  1819. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1820. records.write({self.name: write_value})
  1821. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1822. with self.move_id._check_balanced(move_container),\
  1823. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1824. next(self.gen)
  1825. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1826. unbalanced_moves = self._get_unbalanced_moves(container)
  1827. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1828. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1829. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1830. self._recompute_model(fnames)
  1831. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1832. self._recompute_field(field)
  1833. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1834. field.recompute(records)
  1835. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1836. apply_except_missing(self.compute_value, recs)
  1837. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1838. func(records)
  1839. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1840. records._compute_field_value(self)
  1841. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1842. fields.determine(field.compute, self)
  1843. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1844. return needle(*args)
  1845. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1846. line.foreign_currency_rate = round(rate,4)
  1847. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1848. records.write({self.name: write_value})
  1849. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1850. with self.move_id._check_balanced(move_container),\
  1851. File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
  1852. next(self.gen)
  1853. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1746, in _check_balanced
  1854. unbalanced_moves = self._get_unbalanced_moves(container)
  1855. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1770, in _get_unbalanced_moves
  1856. self.env['account.move.line'].flush_model(['debit', 'credit', 'balance', 'currency_id', 'move_id'])
  1857. File "/home/odoo/src/odoo/odoo/models.py", line 5628, in flush_model
  1858. self._recompute_model(fnames)
  1859. File "/home/odoo/src/odoo/odoo/models.py", line 6254, in _recompute_model
  1860. self._recompute_field(field)
  1861. File "/home/odoo/src/odoo/odoo/models.py", line 6282, in _recompute_field
  1862. field.recompute(records)
  1863. File "/home/odoo/src/odoo/odoo/fields.py", line 1370, in recompute
  1864. apply_except_missing(self.compute_value, recs)
  1865. File "/home/odoo/src/odoo/odoo/fields.py", line 1343, in apply_except_missing
  1866. func(records)
  1867. File "/home/odoo/src/odoo/odoo/fields.py", line 1392, in compute_value
  1868. records._compute_field_value(self)
  1869. File "/home/odoo/src/odoo/odoo/models.py", line 4240, in _compute_field_value
  1870. fields.determine(field.compute, self)
  1871. File "/home/odoo/src/odoo/odoo/fields.py", line 98, in determine
  1872. return needle(*args)
  1873. File "/home/odoo/src/user/odoo-mastercore/l10n_latam_addons/l10n_latam_foreing_currency/models/account_move.py", line 287, in _compute_debit_credit
  1874. line.foreign_currency_rate = round(rate,4)
  1875. File "/home/odoo/src/odoo/odoo/fields.py", line 1325, in __set__
  1876. records.write({self.name: write_value})
  1877. File "/home/odoo/src/odoo/addons/account/models/account_move_line.py", line 1498, in write
  1878. with self.move_id._check_balanced(move_container),\
  1879. File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
  1880. self.gen.throw(typ, value, traceback)
  1881. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 1741, in _check_balanced
  1882. with self._disable_recursion(container, 'check_move_validity', default=True, target=False) as disabled:
  1883. File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
  1884. self.gen.throw(typ, value, traceback)
  1885. File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 4256, in _disable_recursion
  1886. for env in (self.env.transaction.envs - previous_envs):
  1887. File "/usr/lib/python3.10/_weakrefset.py", line 132, in difference
  1888. newset = self.copy()
  1889. File "/usr/lib/python3.10/_weakrefset.py", line 97, in copy
  1890. return self.__class__(self)
  1891. File "/usr/lib/python3.10/_weakrefset.py", line 51, in __init__
  1892. self.update(data)
  1893. File "/usr/lib/python3.10/_weakrefset.py", line 124, in update
  1894. for element in other:
  1895. File "/usr/lib/python3.10/_weakrefset.py", line 64, in __iter__
  1896. with _IterationGuard(self):
  1897. File "/usr/lib/python3.10/_weakrefset.py", line 33, in __exit__
  1898. w._commit_removals()
  1899. File "/usr/lib/python3.10/_weakrefset.py", line 58, in _commit_removals
  1900. item = pop()
  1901. RecursionError: maximum recursion depth exceeded while calling a Python object
  1902.  
  1903. The above server error caused the following client error:
  1904. RPC_ERROR: Odoo Server Error
  1905. RPC_ERROR
  1906. at makeErrorFromResponse (https://detodood-staging-15690636.dev.odoo.com/web/assets/4962-9bd41b8/web.assets_backend.min.js:1004:163)
  1907. at XMLHttpRequest.<anonymous> (https://detodood-staging-15690636.dev.odoo.com/web/assets/4962-9bd41b8/web.assets_backend.min.js:1012:13)
Add Comment
Please, Sign In to add comment