details:   https://code.tryton.org/tryton/commit/bcdd80d73e7f
branch:    7.0
user:      Sergi Almacellas Abellana <[email protected]>
date:      Sun Nov 02 14:33:49 2025 +0100
description:
        Fix typo in intrastat_declaration when cancelling moves

        Closes #14331
        (grafted from b3594efd06b3799feeb1d21c64c762f6bd7d5402)
diffstat:

 modules/account_stock_eu/stock.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5a841eff1afc -r bcdd80d73e7f modules/account_stock_eu/stock.py
--- a/modules/account_stock_eu/stock.py Thu Oct 30 01:00:12 2025 +0100
+++ b/modules/account_stock_eu/stock.py Sun Nov 02 14:33:49 2025 +0100
@@ -230,7 +230,7 @@
             'account.stock.eu.intrastat.declaration')
         super().cancel(moves)
         declarations = {
-            m.declaration for m in moves if m.intrastat_declaration}
+            m.intrastat_declaration for m in moves if m.intrastat_declaration}
         if declarations:
             IntrastatDeclaration.open(
                 IntrastatDeclaration.browse(declarations))

Reply via email to