mirror of
https://github.com/bringout/oca-report.git
synced 2026-04-19 22:22:04 +02:00
Initial commit: OCA Report packages (45 packages)
This commit is contained in:
commit
2f4db400df
2543 changed files with 469120 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<template id="demo_report_xml_view">
|
||||
<root>
|
||||
<user t-foreach="docs" t-as="doc">
|
||||
<id t-esc="doc.id" />
|
||||
<name t-esc="doc.name" />
|
||||
<vat t-esc="doc.vat" />
|
||||
</user>
|
||||
</root>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
|
||||
<xs:element name="root" type="root_type" />
|
||||
|
||||
<xs:complexType name="root_type">
|
||||
<xs:sequence>
|
||||
<xs:element
|
||||
name="user"
|
||||
type="user_type"
|
||||
minOccurs="0"
|
||||
maxOccurs="unbounded"
|
||||
/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:complexType name="user_type">
|
||||
<xs:sequence>
|
||||
<xs:element name="id" type="xs:int" />
|
||||
<xs:element name="name" type="xs:string" />
|
||||
<xs:element name="vat" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
|
||||
</xs:schema>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="demo_xml_report" model="ir.actions.report">
|
||||
<field name="name">Demo xml report</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="report_type">qweb-xml</field>
|
||||
<field name="report_name">report_xml.demo_report_xml_view</field>
|
||||
<field name="report_file">res_company</field>
|
||||
<!--
|
||||
In case of demo data next definition will not work. So it just example
|
||||
how it should look. If report is a part of demo data you will need
|
||||
add file to report instance via `post_install_hook`
|
||||
-->
|
||||
<field name="xsd_schema" type="base64" file="report_xml/demo/demo_report.xsd" />
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue