{"id":37070073,"url":"https://github.com/wearp/odatoo","last_synced_at":"2026-01-14T08:04:15.022Z","repository":{"id":57447824,"uuid":"51254390","full_name":"wearp/odatoo","owner":"wearp","description":"Odoo XML data file generation using Python","archived":false,"fork":false,"pushed_at":"2016-03-18T08:40:12.000Z","size":15,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-28T20:01:57.930Z","etag":null,"topics":["odoo","xml-data"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wearp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-07T16:20:48.000Z","updated_at":"2023-04-24T15:03:22.000Z","dependencies_parsed_at":"2022-09-26T17:30:31.642Z","dependency_job_id":null,"html_url":"https://github.com/wearp/odatoo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wearp/odatoo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearp%2Fodatoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearp%2Fodatoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearp%2Fodatoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearp%2Fodatoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wearp","download_url":"https://codeload.github.com/wearp/odatoo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearp%2Fodatoo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["odoo","xml-data"],"created_at":"2026-01-14T08:04:14.506Z","updated_at":"2026-01-14T08:04:15.000Z","avatar_url":"https://github.com/wearp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odatoo\n\n[![Build Status](https://travis-ci.org/wearp/odatoo.svg?branch=master)](https://travis-ci.org/wearp/odatoo) [![Coverage Status](https://coveralls.io/repos/github/wearp/odatoo/badge.svg?branch=master)](https://coveralls.io/github/wearp/odatoo?branch=master)\n\n_Generate Odoo XML data files, effortlessly, in python._\n\nFor times when you need to create _a lot_ of data (i.e. for demonstration or test purposes), and you can't be bothered.\n\n## Install\n\n```\npip install odatoo\n```\n\n## Create a document\n```python\n\u003e\u003e\u003e from odatoo.document import Document\n\u003e\u003e\u003e doc = Document()\n\u003e\u003e\u003e ...\n```\n\n## Create a record and fields\n```python\n\u003e\u003e\u003e record = doc.record(model=\"openacademy.course\", id=\"course0\")\n\u003e\u003e\u003e # add a fields to the record\n\u003e\u003e\u003e record.field(name=\"name\", value=\"Course 0\")\n\u003e\u003e\u003e record.field(name=\"description\", value=\"Course 0's description\")\n\u003e\u003e\u003e # add another record\n\u003e\u003e\u003e another_record = doc.record(model=\"openacademy.course\", id=\"course1\")\n\u003e\u003e\u003e ...\n```\n\n## Set/edit field and record properties\n```python\n\u003e\u003e\u003e # 'name' is a required field property\n\u003e\u003e\u003e field = another_record.field(name=\"name\")\n\u003e\u003e\u003e # set 'value''\n\u003e\u003e\u003e field.value = \"Course 1\"\n\u003e\u003e\u003e field.description = \"Course 1's description\"\n\u003e\u003e\u003e another_field = another_record.field(name=\"teacher_id\")\n\u003e\u003e\u003e another_field.ref = \"teacher_1\"\n\u003e\u003e\u003e ...\n```\n\n## Write document to a file\n```python\n\u003e\u003e\u003e doc.write(\"demo.xml\")\n```\n\n## Output XML data file\n```xml\n\u003c?xml version=\"1.0\" ?\u003e\n\u003copenerp\u003e\n  \u003cdata noupdate=\"1\"\u003e\n    \u003crecord id=\"course0\" model=\"openacademy.course\"\u003e\n      \u003cfield name=\"name\"\u003eCourse 0\u003c/field\u003e\n      \u003cfield name=\"description\"\u003eCourse 0's description\u003c/field\u003e\n    \u003c/record\u003e\n    \u003crecord id=\"course1\" model=\"openacademy.course\"\u003e\n      \u003cfield name=\"name\"\u003eCourse 1\u003c/field\u003e\n      \u003cfield name=\"description\"\u003eCourse 1's description\u003c/field\u003e\n      \u003cfield name=\"teacher_id\" ref=\"teacher_1\"/\u003e\n    \u003c/record\u003e\n  \u003c/data\u003e\n\u003c/openerp\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearp%2Fodatoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwearp%2Fodatoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearp%2Fodatoo/lists"}