Skip to content

Commit

Permalink
Merge pull request #756 from Som-Energia/targeta/457-gurb044-correcci…
Browse files Browse the repository at this point in the history
…ó-errors-del-txt-(targeta-43)

Targeta/457 gurb044 correcció errors del txt (targeta 43)
  • Loading branch information
oriolpiera authored Nov 12, 2024
2 parents 57b1d7f + 6aa1b3c commit 8e667be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion som_gurb/wizard/wizard_create_coef_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create_txt(self, cursor, uid, items, date, context=None):
line = "{};{}\r\n".format(item["cups"], item["coef"])
txt += line

mfile = base64.b64encode(txt.encode('utf-8'))
mfile = base64.b64encode(txt[:-2].encode('utf-8'))

return file_name, mfile

Expand Down
2 changes: 1 addition & 1 deletion som_gurb/wizard/wizard_create_coef_file_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<button name="create_coeficients_file_txt" type="object" string="Crear fitxer de Coeficients" icon="gtk-execute" colspan="4"/>
</group>
<group colspan="4" attrs="{'invisible': [('state', '==', 'init')]}">
<field name="file" colspan="4" />
<field name="file" colspan="4" filename="file_name" />
<field name="file_name" colspan="4"/>
<button special="cancel" string="Tancar" icon="gtk-close" colspan="4" />
</group>
Expand Down

0 comments on commit 8e667be

Please sign in to comment.