From 323f3ae08e2869bea0df37cc0148fcc74c068132 Mon Sep 17 00:00:00 2001 From: Jared Esparza Date: Mon, 2 May 2022 15:13:04 +0200 Subject: [PATCH] Remove issue11427 --- issue11427.diff | 29 ----------------------------- series | 1 - 2 files changed, 30 deletions(-) delete mode 100644 issue11427.diff diff --git a/issue11427.diff b/issue11427.diff deleted file mode 100644 index 5409c19..0000000 --- a/issue11427.diff +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/stock.py b/stock.py -index 6d831ce..e13a83f 100644 ---- a/trytond/trytond/modules/account_stock_continental/stock.py -+++ b/trytond/trytond/modules/account_stock_continental/stock.py -@@ -102,11 +102,22 @@ class Move(metaclass=PoolMeta): - if self.product.type != 'goods': - return - -- date = self.effective_date or Date.today() -- period_id = Period.find(self.company.id, date=date) -+ today = Date.today() -+ for date in [self.effective_date, today]: -+ period_id = Period.find( -+ self.company.id, date=date, exception=False, test_state=False) -+ if not period_id and date < today: -+ return -+ elif period_id: -+ break -+ else: -+ return - period = Period(period_id) - if not period.fiscalyear.account_stock_method: - return -+ if period.state != 'open': -+ date = today -+ period = Period(Period.find(self.company.id, date=date)) - - type_ = self._get_account_stock_move_type() - if not type_: diff --git a/series b/series index b6c5190..64c144b 100644 --- a/series +++ b/series @@ -57,4 +57,3 @@ statement_of_account.diff # [account] Cumulate balance of previous fiscal years issue11306.diff # [analytic_invocie] Add compatibility between the analytic_invocie module and the account_invoice_defer module (only 6.0) issue11359.diff # [product_price_list_dates] add date in pattern to match price list -issue11427.diff # [account_stock_continental] Try to use effective date of stock move for accounting