<?xml version="1.0" encoding="UTF-8"?>
<openerp>
  <data>

        <record id="account_invoice_streamline_header" model="ir.header_webkit">
        <field name="name">Account Invoice Streamline Header</field>
        <field name="orientation">Portrait</field>
        <field name="format">A4</field>
        <field eval="5.0" name="margin_left" />
        <field eval="5.0" name="margin_right" />
        <field eval="20.0" name="margin_top" />
        <field eval="25.0" name="margin_bottom" />
        <field name="css"><![CDATA[

body {
    font-family: helvetica;
    font-size: 12px;
}

table {
    border-collapse: collapse;
    margin: 0px;
    padding: 0px;
}

h1, h2 {
    text-decoration:underline;
    text-transform : uppercase;
}

/* header */

.header {
    height: 120px;
    border-bottom: 1px solid grey;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size:12px;
}

.logo{
    padding: 0px 20px;
    height: 8px;
    padding-top:40px;
}

.header .title {
    float: left;
    width: 33%;
    height:10px;
    font-size:12px;
}
.totals th {
    font-size:12px;

}
.header .logo img {
    padding: 30px 30px;
    height: 90px;
    padding-top:0px;
}

.header .title {
    font-size: 14px;
    /* font-weight: bold; */
    padding-top: 108px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}
.header1 {
    text-align: right;
    padding-top:60px;
    font-size: 14px;
}

.pagenum {
    font-size: 8px;
    padding-top: 132px;
    padding-right: 10px;
    text-align: right;
}

.page span.text {
    padding: 10px;
}

/* order info */

.orderinfo {
    float: left;
    font-weight: bold;
    font-size: 12px;
    margin: 10px;
    margin-top: 30px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.orderinfo span.text {
    padding: 10px;
}

/* address */

.address {
    clear: both;
    float: left;
    width: 100%;
}

.address table {
    margin-left: 100px;
    text-align: left;
}

.address table th {
    font-size: 12px;
    padding-bottom: 4px;
}

.address table td {
    font-size: 12px;
}

.addressleft,
.addressright {
    width: 50%;
    margin: 20px 0;
}

.addressleft {
    float: left;
    margin-top: 50px;
}

.addressright {
    float: right;
    margin-top: 50px;
}

.address .shipping{
    margin-top:10px;
    margin-left:40px;
    }

.address .recipient {
    margin-top: 15px;
}

.address td.addresstitle {
    font-weight: bold;
}

/* table */

.basic_table {
    font-size: 12px;
    width:100%;


}
.text{
    font-sign:12px;
}
.basic_table th,
.basic_table td {
    border: 1px solid lightGrey;
    text-align:center;
}

.list_table {
    font-size:12px;
    border: 1px solid lightGrey;
    text-align: center;
    width: 100%;
    margin-top: 30px;
}

.list_table td {
    border-top: 1px solid lightGrey;
    border: 1px solid lightGrey;
    font-size: 12px;
    padding-right: 3px;
    padding-left: 3px;
    padding-top: 3px;
    padding-bottom:3px;
    text-align: left;
    border-bottom: 1px solid lightGrey;
}

.list_table th {
    border: 1px solid lightGrey;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    padding-right: 3px
    padding-left: 3px
    border-bottom: 1px solid lightGrey;
}

.list_table thead {
    display: table-header-group;
}

.list_table td.amount,
.list_table th.amount {

}

.list_table tr.line {
    margin-bottom: 10px;
    text-align:center;
}

.list_table th.date {
    text-align: center;
}

.list_table tfoot {
    font-size: 12px;
}
.totaux td{
    font-size:12px;
    width:80%;
    padding-right: 5px;
    padding-left: 5px;
}
.list_table tfoot th {
    padding-top: 10px;
}

.list_table tfoot td,
.list_table tfoot th {
    text-align: right;

}

.list_table td.signature {
    padding-top: 30px;
    text-align: center;
}

.list_table td.signature title,
.list_table td.signature name {
    font-size: 12px;
}

.list_table td.signature img {
    margin-bottom: 14px;
    margin-top: 14px;
    width: 140px;
}
.discount{
text_align:center;
}

.signature{
font-size:12px;
}

.note {
    font-size: 12px;
    font-weight: bold;
    text-decoration: underline;
}

.tkt {
    font-size:10px;
    border-top: 1px solid grey;
}

.comment {
    font-size: 12px;
    width:100%;
}
.descriptif {
    font-size:12px;
    font-weight: bold;
}
.date {
    font-size:12px;
    font-weight: bold;
    float:right;
    width: 50%;
    margin: 0px 80px 0px 0px;
}


]]></field>
        <field name="html"><![CDATA[

<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<style type="text/css">
${css}
</style>
</head>
<!-- You cannot iterate on header when multi company is activated -->
<!--The header applicated is the first of your list -->
<body style="border:0; margin: 0;" onload="subst()">
%for object in objects:
<div class="header">
    <div class="logo">${helper.embed_image('png', object.company_id.logo)|n} </br>
    </div>
     <div class="header1">Association Loi 1901</br></br></div>
</div>

%endfor
</body>
</html>
]]></field>
        <field name="footer_html"><![CDATA[
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<style type="text/css">
${css}
.footer {
    border-top: 1px solid grey;
    text-align: center;
    font-size:10px;
    page-break-after:always;
    }
</style>
<body>
%for object in objects:
<div class="footer">
    <p>${object.company_id.rml_footer_readonly}</p>
</div>
%endfor
</body>
</html>
]]>
</field>

    </record>

    <report
      id="account.account_invoices"
      auto="False"
      file="account_invoice_streamline/report/account_invoice_streamline.mako"
      model="account.invoice"
      name="account.invoice.streamline"
      string="Factures"
      webkit_header="account_invoice_streamline_header"
      report_type="webkit"
      usage="default"
    />

    <report
        id="account.account_invoice_credit"
        auto="False"
        file="account_invoice_streamline/report/account_invoice_streamline.mako"
        model="account.invoice"
        name="account.invoice.streamline"
        string="Avoirs"
        webkit_header="account_invoice_streamline_header"
        report_type="webkit"
        usage="default"
      />

   <report
        id="account.account_invoice_py3o_report"
        file="account_invoice_streamline/reports/account_invoice_py3o.odt"
        name="account.invoice.streamline.py3o"
        model="account.invoice"
        string="Py3o Invoice"
        report_type="py3o"
      />

    <record id="account.account_invoice_py3o_template" model="py3o.template">
        <field name="name">Py3o Invoice</field>
    </record>

    <record id="account.account_invoice_py3o_report" model="ir.actions.report.xml">
        <field name="py3o_template_id" ref="account.account_invoice_py3o_template"/>
        <field name="py3o_fusion_filetype" ref="report_py3o.py3o_fusion_filetype_pdf"/>
    </record>

  </data>
</openerp>