From 7cfc2a4944b59a6ea46990563ad36bb97b491705 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Thu, 14 Nov 2019 14:57:57 +0100 Subject: [PATCH] [MIG] emc_taxshelter_report : migration to 12.0 --- easy_my_coop_taxshelter_report/__manifest__.py | 2 +- .../data/scheduler_data.xml | 11 +++++------ easy_my_coop_taxshelter_report/i18n/fr_BE.po | 2 +- .../models/tax_shelter_declaration.py | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/easy_my_coop_taxshelter_report/__manifest__.py b/easy_my_coop_taxshelter_report/__manifest__.py index b68170e..1dceb4b 100644 --- a/easy_my_coop_taxshelter_report/__manifest__.py +++ b/easy_my_coop_taxshelter_report/__manifest__.py @@ -21,7 +21,7 @@ { # todo check ir model access "name": "Easy My Coop tax shelter report", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "depends": ["easy_my_coop"], "author": "Houssine BAKKALI ", "category": "Cooperative management", diff --git a/easy_my_coop_taxshelter_report/data/scheduler_data.xml b/easy_my_coop_taxshelter_report/data/scheduler_data.xml index 6b191f6..99eccfd 100644 --- a/easy_my_coop_taxshelter_report/data/scheduler_data.xml +++ b/easy_my_coop_taxshelter_report/data/scheduler_data.xml @@ -3,14 +3,13 @@ Tax shelter mail batch mail - + + code + model.batch_send_tax_shelter_certificate() 1 hours -1 - - - - + - \ No newline at end of file + diff --git a/easy_my_coop_taxshelter_report/i18n/fr_BE.po b/easy_my_coop_taxshelter_report/i18n/fr_BE.po index 6e3b616..b0786ad 100644 --- a/easy_my_coop_taxshelter_report/i18n/fr_BE.po +++ b/easy_my_coop_taxshelter_report/i18n/fr_BE.po @@ -593,7 +593,7 @@ msgstr "Montant total" #. module: easy_my_coop_taxshelter_report #: model:ir.model.fields,field_description:easy_my_coop_taxshelter_report.field_tax_shelter_certificate_total_amount_eligible -msgid "Total amount eligible To Tax shelter" +msgid "Total eligible amount" msgstr "Montant total éligible au Tax Shelter" #. module: easy_my_coop_taxshelter_report diff --git a/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py b/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py index 1364b0b..cd33bc1 100644 --- a/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py +++ b/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py @@ -280,7 +280,7 @@ class TaxShelterCertificate(models.Model): certificate.total_amount_resold = total_amount_resold certificate.total_amount = certificate.total_amount_previously_subscribed + certificate.total_amount_subscribed + certificate.total_amount_resold + certificate.total_amount_transfered - @api.multi + @api.depends('lines') def _compute_certificate_lines(self): for certificate in self: certificate.previously_subscribed_lines = certificate.lines.filtered(lambda r: r.type == 'subscribed' and r.transaction_date < certificate.declaration_id.date_from)