diff --git a/account_journal_display_type/models/readme/CONTRIBUTOR.rst b/account_journal_display_type/models/readme/CONTRIBUTOR.rst new file mode 100644 index 0000000..812f8b2 --- /dev/null +++ b/account_journal_display_type/models/readme/CONTRIBUTOR.rst @@ -0,0 +1 @@ +* Matthieu Saison \ No newline at end of file diff --git a/account_journal_display_type/models/readme/DESCSRIPTION.rst b/account_journal_display_type/models/readme/DESCSRIPTION.rst new file mode 100644 index 0000000..521e44e --- /dev/null +++ b/account_journal_display_type/models/readme/DESCSRIPTION.rst @@ -0,0 +1,8 @@ +This module introduce improvement on journal type to simplify configuration of Payment and Cash Journal. + + +The payment journal does not exist in odoo, it's associate to a bank journal but in payment case, +the default_account_id will have the same value as payment_debit_account_id. +This module introduce a new field type called display_type who hide the default type from UI, and make possible to had new journal type. Payment display_type is hadded here, and the associated legacy journal type is bank. The default_account_id is hided and will have the same value as payment_debit_account_id + +For Cash type, the only field we kept is default_account_id. The payment config tab is useless for a cash journal and was remove from UI. (in this case payment_debit_account_id and payment_credit_account_id are set with value of default_account_id) diff --git a/account_journal_display_type/views/account_journal_view.xml b/account_journal_display_type/views/account_journal_view.xml index b9a1024..8f45f65 100644 --- a/account_journal_display_type/views/account_journal_view.xml +++ b/account_journal_display_type/views/account_journal_view.xml @@ -10,7 +10,7 @@ {'invisible': True} - +