{"id":21171592,"url":"https://github.com/0k/report_xml_crafting_libs","last_synced_at":"2025-03-14T17:40:38.964Z","repository":{"id":7827833,"uuid":"9198994","full_name":"0k/report_xml_crafting_libs","owner":"0k","description":"OpenERP module that adds some convience shortcuts in Mako XML templates","archived":false,"fork":false,"pushed_at":"2015-01-28T12:07:52.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T10:51:18.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/0k.png","metadata":{"files":{"readme":"README.rst","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":"2013-04-03T16:10:11.000Z","updated_at":"2016-12-20T10:27:43.000Z","dependencies_parsed_at":"2022-09-21T04:41:18.067Z","dependency_job_id":null,"html_url":"https://github.com/0k/report_xml_crafting_libs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Freport_xml_crafting_libs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Freport_xml_crafting_libs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Freport_xml_crafting_libs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Freport_xml_crafting_libs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0k","download_url":"https://codeload.github.com/0k/report_xml_crafting_libs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243622468,"owners_count":20320978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-20T16:08:27.311Z","updated_at":"2025-03-14T17:40:38.936Z","avatar_url":"https://github.com/0k.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"OpenERP module that provides some convienient shortcuts for crafting XML Mako reports\n\nRequirements\n============\n\nThis module depends on ``report_xml`` module and will work on OpenERP v6.1 and v7.0\n\n\nFunctions\n=========\n\n\nformat_date\n-----------\n\nYou can use format_date to display a full date in the correct internationalized manner.\n\nFor instance::\n\n    ...\n    ${format_date(object.date_start, \"en\")}\n    ...\n\nWill output::\n\n    ...\n    October 10, 2000\n    ...\n\nFor more info, check the docstring of ``format_date()`` in the code.\n\n\ngroup_by\n--------\n\nThis methods allow to group a list depending on the output of a function. This could\nallow you to group ``sale_order_lines`` depending on attribute ``product_id.category``\nfor instance::\n\n    ...\n    \u003c%\n    categs = group_by(object.abstract_line_ids,\n                      key=lambda al: al.product_id.categ_id.complete_name)\n    %\u003e\n    % for categ, lines in categs.iteritems(): \n        \u003ccategory name=\"${categ.name}\"\u003e\n\n        % for line in lines:\n            \u003cline\u003e\n                \u003cproduct\u003e${line.product_id.default_code}\u003c/product\u003e\n                ...\n            \u003c/line\u003e\n        %endfor\n        \u003c/category\u003e\n    % endfor\n    ...\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Freport_xml_crafting_libs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0k%2Freport_xml_crafting_libs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Freport_xml_crafting_libs/lists"}