Browse Source

[IMP] add total amount previously subscribed to the certificate form

view
pull/1/head
houssine 8 years ago
parent
commit
7cfc68cc97
  1. 2
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py
  2. 1
      easy_my_coop_taxshelter_report/views/tax_shelter_declaration_view.xml

2
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -104,7 +104,7 @@ class TaxShelterCertificate(models.Model):
subscribed_lines = fields.One2many(compute='_compute_certificate_lines', comodel_name='certificate.line', string='Shares subscribed', readonly=True)
resold_lines = fields.One2many(compute='_compute_certificate_lines', comodel_name='certificate.line', string='Shares resold', readonly=True)
transfered_lines = fields.One2many(compute='_compute_certificate_lines', comodel_name='certificate.line', string='Shares transfered', readonly=True)
total_amount_previously_subscribed = fields.Float(compute='_compute_amounts', string='Total subscribed')
total_amount_previously_subscribed = fields.Float(compute='_compute_amounts', string='Total previously subscribed')
total_amount_subscribed = fields.Float(compute='_compute_amounts', string='Total subscribed')
total_amount_resold = fields.Float(compute='_compute_amounts', string='Total resold')
total_amount_transfered = fields.Float(compute='_compute_amounts', string='Total transfered')

1
easy_my_coop_taxshelter_report/views/tax_shelter_declaration_view.xml

@ -90,6 +90,7 @@
<field name="declaration_id"/>
</group>
<group>
<field name="total_amount_previously_subscribed"/>
<field name="total_amount_subscribed"/>
<field name="total_amount_resold"/>
<field name="total_amount_transfered"/>

Loading…
Cancel
Save