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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user