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
This commit is contained in:
Cédric Krier
2021-12-10 22:35:57 +01:00
parent d90bd46360
commit 913ec5aa26
+4
View File
@@ -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'