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
This commit is contained in:
Cédric Krier committed 2021-12-10 22:35:57 +01:00
1 parent 24f7771163
commit 962cef1178
1 file changed
+4
+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'