{ "info": { "author": "Creu Blanca,Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n===============\nBase report csv\n===============\n\nThis module provides a basic report class to generate csv report.\n\n\nUsage\n=====\n\nAn example of CSV report for partners on a module called `module_name`:\n\nA python class ::\n\n from odoo import models\n\n class PartnerCSV(models.AbstractModel):\n _name = 'report.report_csv.partner_csv'\n _inherit = 'report.report_csv.abstract'\n\n def generate_csv_report(self, writer, data, partners):\n writer.writeheader()\n for obj in partners:\n writer.writerow({\n 'name': obj.name,\n 'email': obj.email,\n })\n\n def csv_report_options(self):\n res = super().csv_report_options()\n res['fieldnames'].append('name')\n res['fieldnames'].append('email')\n res['delimiter'] = ';'\n res['quoting'] = csv.QUOTE_ALL\n return res\n\n\nA report XML record ::\n\n \n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/143/11.0\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Enric Tobella \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oca/reporting-engine", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo11-addon-report-csv", "package_url": "https://pypi.org/project/odoo11-addon-report-csv/", "platform": "", "project_url": "https://pypi.org/project/odoo11-addon-report-csv/", "project_urls": { "Homepage": "https://github.com/oca/reporting-engine" }, "release_url": "https://pypi.org/project/odoo11-addon-report-csv/11.0.1.0.0.99.dev4/", "requires_dist": [ "csv", "odoo (<11.1dev,>=11.0a)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "Base module to create csv report", "version": "11.0.1.0.0.99.dev4" }, "last_serial": 4857375, "releases": { "11.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "f3c5cc39459b0647e39342c98f493d77", "sha256": "be87dcdf8e51feb7cc283d7853477f21d89a4d5040bf6cbddaead7f5114e5d4e" }, "downloads": -1, "filename": "odoo11_addon_report_csv-11.0.1.0.0.99.dev4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3c5cc39459b0647e39342c98f493d77", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 22086, "upload_time": "2019-02-23T06:01:55", "url": "https://files.pythonhosted.org/packages/33/a4/0ee4a84482c55207eb7181aae272b86a79c1dd1e39d2b95101c21cc31ed6/odoo11_addon_report_csv-11.0.1.0.0.99.dev4-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f3c5cc39459b0647e39342c98f493d77", "sha256": "be87dcdf8e51feb7cc283d7853477f21d89a4d5040bf6cbddaead7f5114e5d4e" }, "downloads": -1, "filename": "odoo11_addon_report_csv-11.0.1.0.0.99.dev4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3c5cc39459b0647e39342c98f493d77", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 22086, "upload_time": "2019-02-23T06:01:55", "url": "https://files.pythonhosted.org/packages/33/a4/0ee4a84482c55207eb7181aae272b86a79c1dd1e39d2b95101c21cc31ed6/odoo11_addon_report_csv-11.0.1.0.0.99.dev4-py2.py3-none-any.whl" } ] }