From 1c4262d4d46160fac4aeef7659d7a6c9775ae1cd Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Tue, 12 Sep 2023 17:12:30 +0200 Subject: [PATCH] Add issue12560.diff --- issue12560.diff | 13 +++++++++++++ series | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 issue12560.diff diff --git a/issue12560.diff b/issue12560.diff new file mode 100644 index 0000000..c469787 --- /dev/null +++ b/issue12560.diff @@ -0,0 +1,13 @@ +diff --git a/tryton/trytond/trytond/modules/analytic_account/account.py b/tryton/trytond/trytond/modules/analytic_account/account.py +index ef063970ec..b2fa817eb7 100644 +--- a/tryton/trytond/trytond/modules/analytic_account/account.py ++++ b/tryton/trytond/trytond/modules/analytic_account/account.py +@@ -143,7 +143,7 @@ class Account( + @classmethod + def check_move_domain(cls, accounts, field_names): + pool = Pool() +- Line = pool.get('account.move.line') ++ Line = pool.get('analytic_account.line') + if field_names and 'type' not in field_names: + return + accounts = [ diff --git a/series b/series index c7d351d..62bacac 100644 --- a/series +++ b/series @@ -23,3 +23,5 @@ statement_of_account.diff # [account] Cumulate balance of previous fiscal years issue11731.diff # [currency] currency test don't pass when Currency Rates Source Not Ready (forex) counterpart_party_payment_clearing.diff # [account_payment_clearing] Add the possiblity to have a party in the counterpart move when reconcile on a payment. + +issue12560.diff # [analytic_account] check_move_domain() check in analytic_account, must use analytic_account.line instead of account.move.line