[IMP] report: adapt report to use web_editor and remove website_report

This commit is contained in:
Christophe Matthieu
2015-07-10 17:00:11 +02:00
parent 578dba5613
commit c9492f8904
23 changed files with 104 additions and 638 deletions
+8 -9
View File
@@ -28,22 +28,21 @@ class ReportController(Controller):
if docids:
docids = [int(i) for i in docids.split(',')]
options_data = None
if data.get('options'):
options_data = simplejson.loads(data['options'])
data['options'] = simplejson.loads(data['options'])
if data.get('context'):
# Ignore 'lang' here, because the context in data is the one from the webclient *but* if
# the user explicitely wants to change the lang, this mechanism overwrites it.
data_context = simplejson.loads(data['context'])
if data_context.get('lang'):
del data_context['lang']
context.update(data_context)
# the user explicitely wants to change the lang, this mechanism overwrites it.
data['context'] = simplejson.loads(data['context'])
if data['context'].get('lang'):
del data['context']['lang']
context.update(data['context'])
if converter == 'html':
html = report_obj.get_html(cr, uid, docids, reportname, data=options_data, context=context)
html = report_obj.get_html(cr, uid, docids, reportname, data=data, context=context)
return request.make_response(html)
elif converter == 'pdf':
pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context)
pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=data, context=context)
pdfhttpheaders = [('Content-Type', 'application/pdf'), ('Content-Length', len(pdf))]
return request.make_response(pdf, headers=pdfhttpheaders)
else:
+1
View File
@@ -120,6 +120,7 @@ class Report(osv.Model):
if request.website is not None:
website = request.website
context = dict(context, translatable=context.get('lang') != request.website.default_lang_code)
values.update(
time=time,
context_timestamp=lambda t: fields.datetime.context_timestamp(cr, uid, t, context),
+33
View File
@@ -0,0 +1,33 @@
body {
color: #000 !important;
word-wrap: break-word;
}
.border-black td {
border-top: 1px solid black !important;
}
.table-condensed > thead > tr > th {
border-bottom: 1px solid black !important;
}
.zero_min_height {
min-height: 0px !important;
}
/* To avoid broken snippets in report rendering */
.jumbotron, .panel, .carousel, section{
page-break-inside: avoid;
}
/* Wkhtmltopdf don't support very well the media-print CSS (depends on the version) */
.hidden-print{
display: none;
}
.o_editable:not(:empty)[data-oe-model="ir.ui.view"]:hover,
.o_editable:not(:empty)[data-oe-model="ir.ui.view"] th:hover,
.o_editable:not(:empty)[data-oe-model="ir.ui.view"] td:hover,
.o_editable[data-oe-type][data-oe-model="ir.ui.view"]:hover,
.o_editable[data-oe-type][data-oe-model="ir.ui.view"] th:hover,
.o_editable[data-oe-type][data-oe-model="ir.ui.view"] td:hover {
-moz-box-shadow: #DDCC33 0 0 5px 2px inset;
-webkit-box-shadow: #DDCC33 0 0 5px 2px inset;
box-shadow: #DDCC33 0 0 5px 2px inset;
}
@@ -52,10 +52,11 @@ ActionManager.include({
// particular: query string of action.data.form and context
if (!('data' in action) || !(action.data)) {
if ('active_ids' in action.context) {
report_url += "/" + action.context.active_ids.join(',');
report_url += "/" + action.context.active_ids.join(',') + "?enable_editor=1";
}
} else {
report_url += "?options=" + encodeURIComponent(JSON.stringify(action.data));
report_url += "?enable_editor=1";
report_url += "&options=" + encodeURIComponent(JSON.stringify(action.data));
report_url += "&context=" + encodeURIComponent(JSON.stringify(action.context));
}
@@ -0,0 +1,26 @@
odoo.define('report.editor', function (require) {
"use strict";
var base = require('web_editor.base');
var options = require('web_editor.snippets.options');
base.reload = function () {
location.hash = "scrollTop=" + window.document.body.scrollTop;
window.location.reload();
};
options.registry.many2one.include({
select_record: function (li) {
var self = this;
this._super(li);
if (this.$target.data('oe-field') === "partner_id") {
var $img = $('.header .row img:first');
var css = window.getComputedStyle($img[0]);
$img.css("max-height", css.height+'px');
$img.attr("src", "/web_editor/image/res.partner/"+self.ID+"/image");
setTimeout(function () { $img.removeClass('o_dirty'); },0);
}
}
});
});
+29 -35
View File
@@ -1,25 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="layout" inherit_id="web.layout" primary="True">
<!-- Add report attributes -->
<xpath expr="//html" position="attributes">
<attribute name="t-att-data-report-margin-top">data_report_margin_top if data_report_margin_top else None</attribute>
<attribute name="t-att-data-report-header-spacing">data_report_header_spacing if data_report_header_spacing else None</attribute>
<attribute name="t-att-data-report-dpi">data_report_dpi if data_report_dpi else None</attribute>
</xpath>
<!-- Add report style -->
<xpath expr="//head" position="inside">
<link href="/web/static/lib/bootstrap/css/bootstrap.css" rel="stylesheet"/>
<link href="/website/static/src/css/website.css" rel="stylesheet"/>
<link href="/web/static/lib/fontawesome/css/font-awesome.css" rel="stylesheet"/>
<link href="/base/static/src/css/description.css" rel="stylesheet"/>
<style type="text/css">
<t t-call="report.style"/>
</style>
</xpath>
<!-- Remove conflicting style -->
<xpath expr="//head/link[@href='/web/static/src/css/full.css']" position="replace"></xpath>
<template id="layout" name="Report layout">&lt;!DOCTYPE html&gt;
<html t-att-lang="lang and lang.replace('_', '-')"
t-att-data-editable="'1' if editable else None"
t-att-data-translatable="'1' if translatable else None"
t-att-data-edit_translations="'1' if edit_translations else None"
t-att-data-main-object="repr(main_object) if editable else None"
t-att-data-report-margin-top="data_report_margin_top"
t-att-data-report-header-spacing="data_report_header_spacing"
t-att-data-report-dpi="data_report_dpi">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1"/>
<title><t t-esc="title or 'Odoo Report'"/></title>
<link rel='stylesheet' href='/report/static/src/css/report.css'/>
<link id="bootstrap_css" rel='stylesheet' href='/web/static/lib/bootstrap/css/bootstrap.css'/>
<t t-if="editable">
<t t-call-assets="web_editor.assets_editor"/>
<script type="text/javascript" src="/web/static/src/js/framework/session_instance.js"></script>
<script type="text/javascript" src='/report/static/src/js/report.editor.js' />
</t>
</head>
<body class="container" t-att-style="editable and 'margin-top: 40px;'">
<div id="wrapwrap">
<main>
<t t-raw="0"/>
</main>
</div>
</body>
</html>
</template>
<template id="html_container">
@@ -29,22 +39,6 @@
</t>
</template>
<template id="style" name="Report Style">
body {
color: #000 !important;
word-wrap: break-word;
}
.border-black td {
border-top: 1px solid black !important;
}
.table-condensed > thead > tr > th {
border-bottom: 1px solid black !important;
}
.zero_min_height {
min-height: 0px !important;
}
</template>
<template id="external_layout">
<!-- Multicompany -->
<t t-if="o and 'company_id' in o">
+2 -2
View File
@@ -44,11 +44,11 @@
</div>
<div t-if="doc.user_id.name" class="col-xs-3">
<strong>Salesperson:</strong>
<p t-field="doc.user_id.name"/>
<p t-field="doc.user_id"/>
</div>
<div name="payment_term" t-if="doc.payment_term_id" class="col-xs-3">
<strong>Payment Term:</strong>
<p t-field="doc.payment_term_id.name"/>
<p t-field="doc.payment_term_id"/>
</div>
</div>
-2
View File
@@ -1,2 +0,0 @@
import controllers
import report
-16
View File
@@ -1,16 +0,0 @@
{
'name': 'Website Report',
'category': 'Website',
'summary': 'Website Editor on reports',
'version': '1.0',
'description': """
Use the website editor to customize your reports.
""",
'author': 'OpenERP SA',
'depends': ['base', 'website', 'report'],
'data': [
'views/layouts.xml',
],
'installable': True,
'auto_install': True,
}
@@ -1 +0,0 @@
import main
-48
View File
@@ -1,48 +0,0 @@
# Czech translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-11-18 12:54+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Czech <cs@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-11-19 06:46+0000\n"
"X-Generator: Launchpad (build 17252)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr ""
-48
View File
@@ -1,48 +0,0 @@
# German translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-08-18 20:18+0000\n"
"Last-Translator: Ralf Hilgenstock <rh@dialoge.info>\n"
"Language-Team: German <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-08-19 07:06+0000\n"
"X-Generator: Launchpad (build 17156)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Eine Sprache hinzufügen..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "Container"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Spanish translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-08-14 21:31+0000\n"
"Last-Translator: Pedro Manuel Baeza <pedro.baeza@gmail.com>\n"
"Language-Team: Spanish <es@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-08-15 07:58+0000\n"
"X-Generator: Launchpad (build 17156)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Añadir un idioma..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "contenedor"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Italian translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-10-03 12:41+0000\n"
"Last-Translator: Nicola Riolini - Micronaet <nicola.riolini@gmail.com>\n"
"Language-Team: Italian <it@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-10-04 06:50+0000\n"
"X-Generator: Launchpad (build 17196)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Aggiungi una lingua..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "contenitore"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Macedonian translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-10-16 11:25+0000\n"
"Last-Translator: Tome Barbov <tome.barbov@eskon.com.mk>\n"
"Language-Team: Macedonian <mk@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-10-17 06:28+0000\n"
"X-Generator: Launchpad (build 17196)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Додади јазик..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Dutch translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-08-18 18:01+0000\n"
"Last-Translator: Leen Sonneveld <leen.sonneveld@opensol.nl>\n"
"Language-Team: Dutch <nl@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-08-19 07:06+0000\n"
"X-Generator: Launchpad (build 17156)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Voeg een taal toe..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "container"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Portuguese translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-08-19 22:50+0000\n"
"Last-Translator: Opencloud - PT <Unknown>\n"
"Language-Team: Portuguese <pt@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-08-20 06:28+0000\n"
"X-Generator: Launchpad (build 17163)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Adicionar uma língua"
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "contentor"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Brazilian Portuguese translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-09-17 11:17+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-09-19 08:22+0000\n"
"X-Generator: Launchpad (build 17196)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr ""
-48
View File
@@ -1,48 +0,0 @@
# Romanian translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-10-11 14:57+0000\n"
"Last-Translator: Dorin <dhongu@gmail.com>\n"
"Language-Team: Romanian <ro@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-10-12 07:21+0000\n"
"X-Generator: Launchpad (build 17196)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Adaugă o limbă..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "container"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
-48
View File
@@ -1,48 +0,0 @@
# Turkish translation for openobject-addons
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2014-08-14 13:09+0000\n"
"PO-Revision-Date: 2014-10-10 11:24+0000\n"
"Last-Translator: Ediz Duman <neps1192@gmail.com>\n"
"Language-Team: Turkish <tr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-10-11 05:17+0000\n"
"X-Generator: Launchpad (build 17196)\n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr "Bir dil ekleyin ..."
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr "Konteyner"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr "data_report_dpi if data_report_dpi else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr "data_report_header_spacing if data_report_header_spacing else None"
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr "data_report_margin_top if data_report_margin_top else None"
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr "website_report.layout"
@@ -1,47 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-21 14:09+0000\n"
"PO-Revision-Date: 2015-01-21 14:09+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: website_report
#: view:website:website_report.layout
msgid "Add a language..."
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "container"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_dpi if data_report_dpi else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_header_spacing if data_report_header_spacing else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "data_report_margin_top if data_report_margin_top else None"
msgstr ""
#. module: website_report
#: view:website:website_report.layout
msgid "website_report.layout"
msgstr ""
-43
View File
@@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="layout" inherit_id="website.layout" primary="True">
<!-- Add report attributes -->
<xpath expr="//html" position="attributes">
<attribute name="t-att-data-report-margin-top">data_report_margin_top if data_report_margin_top else None</attribute>
<attribute name="t-att-data-report-header-spacing">data_report_header_spacing if data_report_header_spacing else None</attribute>
<attribute name="t-att-data-report-dpi">data_report_dpi if data_report_dpi else None</attribute>
</xpath>
<!-- Add report style -->
<xpath expr="//head" position="inside">
<style type="text/css">
<t t-call="report.style"/>
/* To avoid broken snippets in report rendering */
.jumbotron, .panel, .carousel, section{
page-break-inside:avoid;
}
/* Wkhtmltopdf don't support very well the media-print CSS (depends on the version) */
.hidden-print{
display:none;
}
</style>
</xpath>
<xpath expr="//body" position="attributes">
<attribute name="class">container</attribute>
</xpath>
<xpath expr="//header" position="replace"/>
<xpath expr="//footer" position="replace">
<t t-call="website.language_selector"/>
</xpath>
</template>
<template id="website_html_container" inherit_id="report.html_container">
<xpath expr="//t[@t-call='report.layout']" position="replace">
<t t-call="website_report.layout">
<t t-raw="0"/>
</t>
</xpath>
</template>
</data>
</openerp>
+2 -1
View File
@@ -85,7 +85,8 @@
<td><span t-field="view.type"/></td>
<td colspan="4"><span t-field="view.name"/></td>
<td colspan="6"><span t-field="view.xml_id"/></td>
<td colspan="8"><span t-esc="view.inherit_id.xml_id or view.inherit_id.name"/></td>
<td colspan="8" t-if="view.inherit_id.xml_id"><span t-field="view.inherit_id.xml_id"/></td>
<td colspan="8" t-if="not view.inherit_id.xml_id"><span t-field="view.inherit_id.name"/></td>
</tr>
</table>
</div>