Enforce the usage of account kind
For now, there are 6 kinds of account:
- other
- payable
- revenue
- receivable
- expense
- view
The idea is to add a new kind "stock" as which could be used by the
account_stock modules.
The kind property is there to be used on domain of some document to ease the
encoding and prevent mistake like on Party or Product.
So it will be good to extend it to other Models like:
Invoice:
The kind of the account should be:
- receivable (or other) for Invoice/Credit Note
- payable (or other) for Supplier Invoice/Credit Note
Invoice Line:
The kind of the account should be:
- revenue (or other) for Invoice/Credit Note
- expense (or other) for Supplier Invoice/Credit Note
Product:
Add domain for stock kind on all stock account.
Statement Line:
The kind of the account should be:
- receivable (or other) for positive
- payable (or other) for negative
Perhaps we could drop all the "or other" but we should be sure that it works for
everyone.