Skip to content

Commit

Permalink
adopt tabtoXX
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraheim committed Jul 30, 2024
1 parent 918f857 commit 25ff3cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions odoo2data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,19 +662,19 @@ def run(arg: str) -> None:
odoo = Odoo()
logg.info(" ODOO URL %s DB %s", odoo.url, odoo.db)
data = odoo.projects()
text = tabtotext.tabToGFM(data, ["proj_name", "proj_id"], {"proj_name": "'%s'"})
text = tabtotext.tabtoGFM(data, ["proj_name:'%s'", "proj_id"])
print(text)
if arg in ["tks", "tasks"]:
odoo = Odoo()
logg.info(" ODOO URL %s DB %s", odoo.url, odoo.db)
data = odoo.projects_tasks()
text = tabtotext.tabToGFM(data, ["proj_name", "task_name"], {"proj_name": "'%s'", "task_name": "'%s'"})
text = tabtotext.tabtoGFM(data, ["proj_name:'%s'", "task_name:'%s'"])
print(text)
if arg in ["tks1", "tasks1"]:
odoo = Odoo()
logg.info(" ODOO URL %s DB %s", odoo.url, odoo.db)
data = odoo.project_tasks()
text = tabtotext.tabToGFM(data, ["proj_name", "task_name"], {"proj_name": "'%s'", "task_name": "'%s'"})
text = tabtotext.tabtoGFM(data, ["proj_name:'%s'", "task_name:'%s'"])
print(text)

def reset() -> None:
Expand Down

0 comments on commit 25ff3cd

Please sign in to comment.