Browse Source

[FIX] fix typo in variable name

pull/1/head
houssine 7 years ago
parent
commit
3dd4c371fb
  1. 2
      easy_my_coop/models/account_invoice.py

2
easy_my_coop/models/account_invoice.py

@ -23,7 +23,7 @@ class account_invoice(models.Model):
mail_template_name = 'Payment Received Confirmation - Send By Email' mail_template_name = 'Payment Received Confirmation - Send By Email'
# if not yet cooperator we generate a cooperator number # if not yet cooperator we generate a cooperator number
if self.partner_id.member == False and self.partner_id.old_number == False:
if self.partner_id.member == False and self.partner_id.old_member == False:
sequence_id = obj_sequence.search([('name','=','Subscription Register')])[0] sequence_id = obj_sequence.search([('name','=','Subscription Register')])[0]
sub_reg_num = sequence_id.next_by_id() sub_reg_num = sequence_id.next_by_id()
self.partner_id.write({'member':True,'old_member':False, self.partner_id.write({'member':True,'old_member':False,

Loading…
Cancel
Save