mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] pre-commit lint
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<field name="name">base.comment.template.search</field>
|
<field name="name">base.comment.template.search</field>
|
||||||
<field name="model">base.comment.template</field>
|
<field name="model">base.comment.template</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Comment Templates">
|
<tree name="Comment Templates">
|
||||||
<field name="sequence" widget="handle" />
|
<field name="sequence" widget="handle" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="position" />
|
<field name="position" />
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<data>
|
|
||||||
<!-- SMS Template Preview -->
|
<!-- SMS Template Preview -->
|
||||||
<record model="ir.ui.view" id="base_comment_template_preview_form">
|
<record model="ir.ui.view" id="base_comment_template_preview_form">
|
||||||
<field name="name">base.comment.template.preview.form</field>
|
<field name="name">base.comment.template.preview.form</field>
|
||||||
@@ -9,33 +8,33 @@
|
|||||||
<form string="Base Comment Preview">
|
<form string="Base Comment Preview">
|
||||||
<h3>Preview of
|
<h3>Preview of
|
||||||
<field
|
<field
|
||||||
name="base_comment_template_id"
|
name="base_comment_template_id"
|
||||||
readonly="1"
|
readonly="1"
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
class="oe_inline"
|
class="oe_inline"
|
||||||
/>
|
/>
|
||||||
</h3>
|
</h3>
|
||||||
<field name="no_record" invisible="1" />
|
<field name="no_record" invisible="1" />
|
||||||
<field name="model_ids" />
|
<field name="model_ids" />
|
||||||
<div class="o_row">
|
<div class="o_row">
|
||||||
<span>Choose an example
|
<span>Choose an example
|
||||||
<field
|
<field
|
||||||
name="model_id"
|
name="model_id"
|
||||||
domain="[('id', 'in', model_ids or False)]"
|
domain="[('id', 'in', model_ids or False)]"
|
||||||
/>
|
/>
|
||||||
record:
|
record:
|
||||||
</span>
|
</span>
|
||||||
<div>
|
<div>
|
||||||
<field
|
<field
|
||||||
name="resource_ref"
|
name="resource_ref"
|
||||||
class="oe_inline"
|
class="oe_inline"
|
||||||
options="{'hide_model': True, 'no_create': True, 'no_edit': True, 'no_open': True}"
|
options="{'hide_model': True, 'no_create': True, 'no_edit': True, 'no_open': True}"
|
||||||
attrs="{'invisible': [('no_record', '=', True)]}"
|
attrs="{'invisible': [('no_record', '=', True)]}"
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
class="text-warning"
|
class="text-warning"
|
||||||
attrs="{'invisible': [('no_record', '=', False)]}"
|
attrs="{'invisible': [('no_record', '=', False)]}"
|
||||||
>No records
|
>No records
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -48,18 +47,18 @@
|
|||||||
<label for="body" string="Base Comment content" />
|
<label for="body" string="Base Comment content" />
|
||||||
<hr />
|
<hr />
|
||||||
<field
|
<field
|
||||||
name="body"
|
name="body"
|
||||||
readonly="1"
|
readonly="1"
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
options='{"safe": True}'
|
options='{"safe": True}'
|
||||||
/>
|
/>
|
||||||
<hr />
|
<hr />
|
||||||
<footer>
|
<footer>
|
||||||
<button
|
<button
|
||||||
string="Discard"
|
string="Discard"
|
||||||
class="btn-secondary"
|
class="btn-secondary"
|
||||||
special="cancel"
|
special="cancel"
|
||||||
/>
|
/>
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
@@ -76,5 +75,4 @@
|
|||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|
||||||
</data>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -450,7 +450,7 @@ class BiSQLView(models.Model):
|
|||||||
"type": "tree",
|
"type": "tree",
|
||||||
"model": self.model_id.model,
|
"model": self.model_id.model,
|
||||||
"arch": """<?xml version="1.0"?>"""
|
"arch": """<?xml version="1.0"?>"""
|
||||||
"""<tree string="Analysis">{}"""
|
"""<tree name="Analysis">{}"""
|
||||||
"""</tree>""".format(
|
"""</tree>""".format(
|
||||||
"".join([x._prepare_tree_field() for x in self.bi_sql_view_field_ids])
|
"".join([x._prepare_tree_field() for x in self.bi_sql_view_field_ids])
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,45 +1,44 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo noupdate="1">
|
||||||
<data noupdate="1">
|
|
||||||
<record id="async_report_delivery" model="mail.template">
|
<record id="async_report_delivery" model="mail.template">
|
||||||
<field name="name">Report Async: New Report Available</field>
|
<field name="name">Report Async: New Report Available</field>
|
||||||
<field name="model_id" ref="base.model_ir_attachment" />
|
<field name="model_id" ref="base.model_ir_attachment" />
|
||||||
<field name="subject">Your report is available, ${object.name}</field>
|
<field name="subject">Your report is available, ${object.name}</field>
|
||||||
<field
|
<field
|
||||||
name="email_from"
|
name="email_from"
|
||||||
>${object.company_id.partner_id.email_formatted|safe}</field>
|
>${object.company_id.partner_id.email_formatted|safe}</field>
|
||||||
<field name="partner_to">${user.partner_id.id}</field>
|
<field name="partner_to">${user.partner_id.id}</field>
|
||||||
<field name="body_html" type="html">
|
<field name="body_html" type="html">
|
||||||
<table
|
<table
|
||||||
border="0"
|
border="0"
|
||||||
cellpadding="0"
|
cellpadding="0"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
style="background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"
|
style="background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"
|
||||||
>
|
>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<table
|
<table
|
||||||
border="0"
|
border="0"
|
||||||
cellpadding="0"
|
cellpadding="0"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
width="590"
|
width="590"
|
||||||
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;"
|
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;"
|
||||||
>
|
>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" style="min-width: 590px;">
|
<td align="center" style="min-width: 590px;">
|
||||||
<table
|
<table
|
||||||
border="0"
|
border="0"
|
||||||
cellpadding="0"
|
cellpadding="0"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
width="590"
|
width="590"
|
||||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"
|
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"
|
||||||
>
|
>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
valign="top"
|
valign="top"
|
||||||
style="font-size: 13px;"
|
style="font-size: 13px;"
|
||||||
>
|
>
|
||||||
% set base_url_async = object.env['ir.config_parameter'].sudo().get_param('web.base.url.async_reports')
|
% set base_url_async = object.env['ir.config_parameter'].sudo().get_param('web.base.url.async_reports')
|
||||||
% set base_url = base_url_async or object.env['ir.config_parameter'].sudo().get_param('web.base.url')
|
% set base_url = base_url_async or object.env['ir.config_parameter'].sudo().get_param('web.base.url')
|
||||||
% set download_url = '%s/web/content/ir.attachment/%s/datas/%s?download=true' % (base_url, object.id, object.name, )
|
% set download_url = '%s/web/content/ir.attachment/%s/datas/%s?download=true' % (base_url, object.id, object.name, )
|
||||||
@@ -47,10 +46,10 @@
|
|||||||
Dear ${object.create_uid.partner_id.name or ''},
|
Dear ${object.create_uid.partner_id.name or ''},
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Your requested report, ${object.name}, is available for <b
|
Your requested report, ${object.name}, is available for <b
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href='${download_url}'
|
href='${download_url}'
|
||||||
>download</a>
|
>download</a>
|
||||||
</b>.
|
</b>.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Have a nice day!<br />
|
Have a nice day!<br />
|
||||||
@@ -69,5 +68,4 @@
|
|||||||
</field>
|
</field>
|
||||||
<field name="auto_delete" eval="True" />
|
<field name="auto_delete" eval="True" />
|
||||||
</record>
|
</record>
|
||||||
</data>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<field name="name">report.async.tree</field>
|
<field name="name">report.async.tree</field>
|
||||||
<field name="model">report.async</field>
|
<field name="model">report.async</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Report Center">
|
<tree name="Report Center">
|
||||||
<field name="action_id" context="{'access_sudo': True}" />
|
<field name="action_id" context="{'access_sudo': True}" />
|
||||||
<button type="object" name="run_now" string="Run Now" icon="fa-bolt" />
|
<button type="object" name="run_now" string="Run Now" icon="fa-bolt" />
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo noupdate="1">
|
||||||
<data noupdate="1">
|
|
||||||
<record
|
<record
|
||||||
id="report_default_context"
|
id="report_default_context"
|
||||||
model="ir.config_parameter"
|
model="ir.config_parameter"
|
||||||
forcecreate="True"
|
forcecreate="True"
|
||||||
>
|
>
|
||||||
<field name="key">report.default.context</field>
|
<field name="key">report.default.context</field>
|
||||||
<field name="value">{}</field>
|
<field name="value">{}</field>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo noupdate="1">
|
||||||
<data noupdate="1">
|
|
||||||
|
|
||||||
<record id="agipa_114016" model="report.paperformat.label">
|
<record id="agipa_114016" model="report.paperformat.label">
|
||||||
<field name="name">Label: Agipa 114016</field>
|
<field name="name">Label: Agipa 114016</field>
|
||||||
@@ -22,6 +21,4 @@
|
|||||||
<field name="label_margin_bottom" eval="1" />
|
<field name="label_margin_bottom" eval="1" />
|
||||||
<field name="label_margin_left" eval="1" />
|
<field name="label_margin_left" eval="1" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<record id="paperformat_label_view_tree" model="ir.ui.view">
|
<record id="paperformat_label_view_tree" model="ir.ui.view">
|
||||||
<field name="model">report.paperformat.label</field>
|
<field name="model">report.paperformat.label</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Label paper format configuration">
|
<tree name="Label paper format configuration">
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="label_height" />
|
<field name="label_height" />
|
||||||
<field name="label_width" />
|
<field name="label_width" />
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
id="external_standard_layout_images_template"
|
id="external_standard_layout_images_template"
|
||||||
primary="True"
|
primary="True"
|
||||||
inherit_id="web.external_layout_standard"
|
inherit_id="web.external_layout_standard"
|
||||||
|
priority="99"
|
||||||
>
|
>
|
||||||
<xpath expr="//div[contains(@t-attf-class, 'header')]" position="replace">
|
<xpath expr="//div[contains(@t-attf-class, 'header')]" position="replace">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
@@ -45,6 +46,7 @@
|
|||||||
id="external_clean_layout_images_template"
|
id="external_clean_layout_images_template"
|
||||||
primary="True"
|
primary="True"
|
||||||
inherit_id="web.external_layout_clean"
|
inherit_id="web.external_layout_clean"
|
||||||
|
priority="99"
|
||||||
>
|
>
|
||||||
<xpath expr="//div[contains(@t-attf-class, 'header')]" position="replace">
|
<xpath expr="//div[contains(@t-attf-class, 'header')]" position="replace">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<field name="name">py3o.template.configuration.tree.view</field>
|
<field name="name">py3o.template.configuration.tree.view</field>
|
||||||
<field name="model">py3o.template</field>
|
<field name="model">py3o.template</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Py3o Templates">
|
<tree name="Py3o Templates">
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="filetype" />
|
<field name="filetype" />
|
||||||
</tree>
|
</tree>
|
||||||
|
|||||||
@@ -182,7 +182,7 @@
|
|||||||
<field name="name">py3o.pdf.options.tree</field>
|
<field name="name">py3o.pdf.options.tree</field>
|
||||||
<field name="model">py3o.pdf.options</field>
|
<field name="model">py3o.pdf.options</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Py3o PDF Export Options">
|
<tree name="Py3o PDF Export Options">
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<field name="name">py3o.server.configuration.tree.view</field>
|
<field name="name">py3o.server.configuration.tree.view</field>
|
||||||
<field name="model">py3o.server</field>
|
<field name="model">py3o.server</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Py3o Servers Configuration">
|
<tree name="Py3o Servers Configuration">
|
||||||
<field name="url" />
|
<field name="url" />
|
||||||
<field name="pdf_options_id" />
|
<field name="pdf_options_id" />
|
||||||
<field name="is_active" />
|
<field name="is_active" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
<template id="minimal_layout" inherit_id="web.minimal_layout">
|
<template id="minimal_layout" inherit_id="web.minimal_layout" priority="99">
|
||||||
<xpath expr="//t[@t-if='subst_needed']" position="replace">
|
<xpath expr="//t[@t-if='subst_needed']" position="replace">
|
||||||
<t t-if="subst is True">
|
<t t-if="subst is True">
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<data>
|
|
||||||
<record id="demo_reports" model="ir.actions.report">
|
<record id="demo_reports" model="ir.actions.report">
|
||||||
<field name="name">Demo report</field>
|
<field name="name">Demo report</field>
|
||||||
<field name="model">res.users</field>
|
<field name="model">res.users</field>
|
||||||
@@ -30,5 +29,4 @@
|
|||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
</data>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|||||||
<field name="name">report.certificate.tree</field>
|
<field name="name">report.certificate.tree</field>
|
||||||
<field name="model">report.certificate</field>
|
<field name="model">report.certificate</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="PDF report certificates">
|
<tree name="PDF report certificates">
|
||||||
<field name="sequence" widget="handle" />
|
<field name="sequence" widget="handle" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="path" />
|
<field name="path" />
|
||||||
|
|||||||
Reference in New Issue
Block a user