From a5b2f746aa0af39f45d9a7a868fd1e1a7b7669c2 Mon Sep 17 00:00:00 2001 From: "matthieu.saison" Date: Fri, 16 Feb 2024 11:25:34 +0100 Subject: [PATCH] Add readme --- .../models/readme/CONTRIBUTOR.rst | 1 + .../models/readme/DESCSRIPTION.rst | 8 ++++++++ .../views/account_journal_view.xml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 account_journal_display_type/models/readme/CONTRIBUTOR.rst create mode 100644 account_journal_display_type/models/readme/DESCSRIPTION.rst 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} - +