From 962cef117868f42813dc7fb9d8f2df7c271f6010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 10 Dec 2021 22:35:57 +0100 Subject: [PATCH] Allow balance sheet account for stock IN/OUT When anglo-saxon accounting is used, the stock IN/OUT is not necessary booked in the income statement but may stay in the balance sheet until the COGS is booked. issue11004 review395071002 (grafted from f22c64943d6cafd7562de5ba415283582bdcc913) --HG-- branch : 6.0 --- product.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product.py b/product.py index 5082dccf31..d503aa4c28 100644 --- a/product.py +++ b/product.py @@ -74,6 +74,10 @@ class CategoryAccount(metaclass=PoolMeta): super(CategoryAccount, cls)._migrate_property( field_names, value_names, fields) + @classmethod + def get_account_stock_type_statements(cls): + return super().get_account_stock_type_statements() + ['balance'] + class Template(metaclass=PoolMeta): __name__ = 'product.template'