changeset a5770b5d4d70 in modules/account_stock_anglo_saxon:6.2
details: 
https://hg.tryton.org/modules/account_stock_anglo_saxon?cmd=changeset&node=a5770b5d4d70
description:
        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)
diffstat:

 product.py |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 20a834605b3e -r a5770b5d4d70 product.py
--- a/product.py        Mon Nov 01 17:20:35 2021 +0100
+++ b/product.py        Fri Dec 10 22:35:57 2021 +0100
@@ -74,6 +74,10 @@
         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'

Reply via email to