changeset fa599740db3d in modules/account_stock_anglo_saxon:6.0
details:
https://hg.tryton.org/modules/account_stock_anglo_saxon?cmd=changeset&node=fa599740db3d
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 03ec9112c038 -r fa599740db3d product.py
--- a/product.py Mon May 03 15:54:19 2021 +0200
+++ 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'