diff --git a/ssi_voucher_bank_cash/__manifest__.py b/ssi_voucher_bank_cash/__manifest__.py index 93610c5..45a9208 100644 --- a/ssi_voucher_bank_cash/__manifest__.py +++ b/ssi_voucher_bank_cash/__manifest__.py @@ -13,7 +13,6 @@ "ssi_voucher_mixin", "account_payment", "ssi_financial_accounting", - "ssi_work_log_mixin", ], "data": [ "security/ir_module_category_data.xml", diff --git a/ssi_voucher_bank_cash/models/mixin_bank_voucher.py b/ssi_voucher_bank_cash/models/mixin_bank_voucher.py index b2a5b53..84fe1aa 100644 --- a/ssi_voucher_bank_cash/models/mixin_bank_voucher.py +++ b/ssi_voucher_bank_cash/models/mixin_bank_voucher.py @@ -9,7 +9,5 @@ class MixinBankVoucher(models.AbstractModel): _name = "mixin.bank_voucher" _inherit = [ "mixin.account.voucher", - "mixin.work_object", ] _description = "Bank Voucher" - _work_log_create_page = True diff --git a/ssi_voucher_mixin/__manifest__.py b/ssi_voucher_mixin/__manifest__.py index e728919..91a5309 100644 --- a/ssi_voucher_mixin/__manifest__.py +++ b/ssi_voucher_mixin/__manifest__.py @@ -18,6 +18,7 @@ "ssi_transaction_done_mixin", "ssi_transaction_cancel_mixin", "ssi_transaction_open_mixin", + "ssi_work_log_mixin", ], "data": [ "menu.xml", diff --git a/ssi_voucher_mixin/models/voucher_mixin.py b/ssi_voucher_mixin/models/voucher_mixin.py index 53ff9c2..87838fd 100644 --- a/ssi_voucher_mixin/models/voucher_mixin.py +++ b/ssi_voucher_mixin/models/voucher_mixin.py @@ -14,12 +14,14 @@ class MixinAccountVoucher(models.AbstractModel): "mixin.transaction_cancel", "mixin.transaction_open", "mixin.transaction_done", + "mixin.work_object", ] _approval_from_state = "draft" _approval_to_state = "open" _approval_state = "confirm" _after_approved_method = "action_open" _create_sequence_state = "open" + _work_log_create_page = True _statusbar_visible_label = "draft,confirm,open,post"