@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs
@ -24,6 +24,6 @@
"report/beescard.xml",
],
"installable": True,
"demo": ["demo/cooperators.xml", "demo/eaters.xml",],
"demo": ["demo/cooperators.xml", "demo/eaters.xml"],
"license": "AGPL-3",
}
@ -41,7 +41,9 @@ class CodaBankStatementImport(models.TransientModel):
"{}: {}".format(_("Counter Party Name"), move[COUNTERPART_NAME])
)
notes.append(
"{}: {}".format(_("Counter Party Account"), move[COUNTERPART_NUMBER])
"{}: {}".format(
_("Counter Party Account"), move[COUNTERPART_NUMBER]
notes.append("{}: {}".format(_("Communication"), move[COMMUNICATION]))
return "\n".join(notes)
@ -31,6 +31,6 @@
"wizard/holiday.xml",
"wizard/temporary_exemption.xml",
"demo": ["demo/templates.xml", "demo/workers.xml",],
"demo": ["demo/templates.xml", "demo/workers.xml"],
@ -200,9 +200,7 @@ class CooperativeStatus(models.Model):
if vals.get(field, rec[field]) != rec[field]:
data["change"] = "{}: {} -> {}".format(
field.upper(),
rec[field],
vals.get(field),
field.upper(), rec[field], vals.get(field)
self.env["cooperative.status.history"].sudo().create(data)
return super(CooperativeStatus, self).write(vals)
@ -10,8 +10,7 @@ from odoo.exceptions import UserError
def float_to_time(f):
decimal, integer = math.modf(f)
return "{}:{}".format(
str(int(integer)).zfill(2),
str(int(round(decimal * 60))).zfill(2),
str(int(integer)).zfill(2), str(int(round(decimal * 60))).zfill(2)
@ -11,6 +11,6 @@
"version": "12.0.1.0.0",
"depends": ["beesdoo_base", "beesdoo_shift"],
"data": [],
"demo": ["demo/cooperators.xml", "demo/tasks.xml",],
"demo": ["demo/cooperators.xml", "demo/tasks.xml"],