Browse Source

[CLEAN] remove commented code

pull/1/head
houssine 7 years ago
parent
commit
961a4d66dd
  1. 7
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

7
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -75,10 +75,6 @@ class TaxShelterDeclaration(models.Model):
@api.one @api.one
def compute_declaration(self): def compute_declaration(self):
# entries = self.env['subscription.register'].search([('partner_id.is_company','=',False),
# ('date','<',self.date_from),
# ('type','=','subscription')])
entries = self.env['subscription.register'].search([('partner_id.is_company','=',False), entries = self.env['subscription.register'].search([('partner_id.is_company','=',False),
('date','<=',self.date_to), ('date','<=',self.date_to),
('type','in',['subscription','sell_back','transfer'])]) ('type','in',['subscription','sell_back','transfer'])])
@ -92,9 +88,6 @@ class TaxShelterDeclaration(models.Model):
partner_certificate = {} partner_certificate = {}
# entries = self.env['subscription.register'].search([('partner_id.is_company','=',False),
# ('date','<=',self.date_to),
# ('type','in',['subscription','sell_back','transfer'])])
partner_certificate = self._compute_certificates(entries, partner_certificate) partner_certificate = self._compute_certificates(entries, partner_certificate)
self.state = 'computed' self.state = 'computed'

Loading…
Cancel
Save