Skip to content

Commit

Permalink
[13.0] [FIX] l10n_ar_edi_ux: Avoid error with m2o fields when update …
Browse files Browse the repository at this point in the history
…the padron afip.
  • Loading branch information
nicomacr authored and jjscarafia committed Jun 29, 2021
1 parent 9c09c3a commit f2c34ae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def _update(self):
for field in self.field_ids:
if field.field in ('impuestos_padron', 'actividades_padron'):
vals[field.field] = [(6, False, literal_eval(field.new_value))]
elif field.field in ('state_id', 'l10n_ar_afip_responsibility_type_id'):
vals[field.field] = literal_eval(field.new_value)
else:
vals[field.field] = field.new_value
self.partner_id.write(vals)
Expand Down

0 comments on commit f2c34ae

Please sign in to comment.