Browse Source

[MIG] emc_taxshelter_report : migration to 12.0

pull/68/head
Elouan Le Bars 5 years ago
parent
commit
7cfc2a4944
  1. 2
      easy_my_coop_taxshelter_report/__manifest__.py
  2. 11
      easy_my_coop_taxshelter_report/data/scheduler_data.xml
  3. 2
      easy_my_coop_taxshelter_report/i18n/fr_BE.po
  4. 2
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

2
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 <houssine@coopiteasy.be>",
"category": "Cooperative management",

11
easy_my_coop_taxshelter_report/data/scheduler_data.xml

@ -3,14 +3,13 @@
<data noupdate="1">
<record forcecreate="True" id="ir_cron_mail_tax_shelter_action" model="ir.cron">
<field name="name">Tax shelter mail batch mail</field>
<field name="user_id" ref="base.user_root"/>
<field name="model_id" ref="model_tax_shelter_certificate"/>
<field name="state">code</field>
<field name="code">model.batch_send_tax_shelter_certificate()</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'tax.shelter.certificate'" name="model"/>
<field eval="'batch_send_tax_shelter_certificate'" name="function"/>
<field eval="'()'" name="args"/>
<field name="doall" eval="False"/>
</record>
</data>
</odoo>
</odoo>

2
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

2
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)

Loading…
Cancel
Save