Browse Source

[REF] pre-commit fixes

pull/142/head
robin.keunen 4 years ago
parent
commit
efd9594217
  1. 1
      beesdoo_account/readme/CONTRIBUTORS.rst
  2. 2
      beesdoo_base/__manifest__.py
  3. 1
      beesdoo_base/readme/CONTRIBUTORS.rst
  4. 4
      beesdoo_crelan_csv/wizard/import_crelan_csv.py
  5. 1
      beesdoo_inventory/readme/CONTRIBUTORS.rst
  6. 1
      beesdoo_pos/readme/CONTRIBUTORS.rst
  7. 1
      beesdoo_pos_reporting/readme/CONTRIBUTORS.rst
  8. 1
      beesdoo_product/readme/CONTRIBUTORS.rst
  9. 2
      beesdoo_shift/__manifest__.py
  10. 4
      beesdoo_shift/models/cooperative_status.py
  11. 3
      beesdoo_shift/models/planning.py
  12. 1
      beesdoo_shift/readme/CONTRIBUTORS.rst
  13. 1
      beesdoo_website_shift/readme/CONTRIBUTORS.rst
  14. 1
      beesdoo_website_theme/readme/CONTRIBUTORS.rst
  15. 2
      beesdoo_worker_status/__manifest__.py

1
beesdoo_account/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

2
beesdoo_base/__manifest__.py

@ -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",
}

1
beesdoo_base/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

4
beesdoo_crelan_csv/wizard/import_crelan_csv.py

@ -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)

1
beesdoo_inventory/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

1
beesdoo_pos/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

1
beesdoo_pos_reporting/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

1
beesdoo_product/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

2
beesdoo_shift/__manifest__.py

@ -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"],
"license": "AGPL-3",
}

4
beesdoo_shift/models/cooperative_status.py

@ -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)

3
beesdoo_shift/models/planning.py

@ -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)
)

1
beesdoo_shift/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

1
beesdoo_website_shift/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

1
beesdoo_website_theme/readme/CONTRIBUTORS.rst

@ -1,3 +1,2 @@
* Beescoop - Cellule IT
* Coop IT Easy SCRLfs

2
beesdoo_worker_status/__manifest__.py

@ -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"],
"license": "AGPL-3",
}
Loading…
Cancel
Save