Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC
This commit is contained in:
3
l10n_ru_advance_payments/report/__init__.py
Normal file
3
l10n_ru_advance_payments/report/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import report_order_prepaid
|
||||
44
l10n_ru_advance_payments/report/order_prepaid.xml
Normal file
44
l10n_ru_advance_payments/report/order_prepaid.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<odoo>
|
||||
<record id="paperformat_a4" model="report.paperformat">
|
||||
<field name="name">A4</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">A4</field>
|
||||
<field name="page_height">0</field>
|
||||
<field name="page_width">0</field>
|
||||
<field name="orientation">Portrait</field>
|
||||
<field name="margin_top">7</field>
|
||||
<field name="margin_bottom">7</field>
|
||||
<field name="margin_left">7</field>
|
||||
<field name="margin_right">7</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">35</field>
|
||||
<field name="dpi">75</field>
|
||||
</record>
|
||||
|
||||
<record id="action_report_orderprepaid" model="ir.actions.report">
|
||||
<field name="name">Счет по форме 1С</field>
|
||||
<field name="model">order.prepaid</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">l10n_ru_advance_payments.report_order_prepaid</field>
|
||||
<field name="report_file">l10n_ru_advance_payments.report_order_prepaid</field>
|
||||
<field name="print_report_name">'Счет - %s ' % (str(object.name)+' '+(str(object.partner_id.parent_id.name) if
|
||||
object.partner_id.parent_id else str(object.partner_id.name)))
|
||||
</field>
|
||||
<field name="binding_model_id" ref="l10n_ru_advance_payments.model_order_prepaid"/>
|
||||
<field name="paperformat_id" ref="l10n_ru_advance_payments.paperformat_a4"/>
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
|
||||
<record id="report_order_prepaid_invoice" model="ir.actions.report">
|
||||
<field name="name">Счет</field>
|
||||
<field name="model">order.prepaid</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">l10n_ru_advance_payments.template_order_prepaid_invoice</field>
|
||||
<field name="report_file">l10n_ru_advance_payments.template_order_prepaid_invoice</field>
|
||||
<field name="print_report_name">'Счет - %s ' % ((object.name if object.name else '')+' '+(object.partner_id.parent_id.name if
|
||||
object.partner_id.parent_id else object.partner_id.name))</field>
|
||||
<field name="attachment"/>
|
||||
<field name="binding_model_id" ref="model_order_prepaid"/>
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
</odoo>
|
||||
286
l10n_ru_advance_payments/report/report_invoice.xml
Normal file
286
l10n_ru_advance_payments/report/report_invoice.xml
Normal file
@ -0,0 +1,286 @@
|
||||
<odoo>
|
||||
<template id="template_order_prepaid_invoice">
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-set="print_with_payments" t-value="True"/>
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="l10n_ru_advance_payments.template_order_prepaid_invoice_body"/>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="template_order_prepaid_invoice_body">
|
||||
<span>
|
||||
<t t-esc="address"/>
|
||||
</span>
|
||||
|
||||
<div class="mt-5 clearfix">
|
||||
<div class="page mb-4">
|
||||
<h2>
|
||||
<span>Счет</span>
|
||||
<span t-if="o.name != '/'" t-field="o.name">INV/2023/0001</span>
|
||||
<span>
|
||||
<t t-esc="address"/>
|
||||
</span>
|
||||
</h2>
|
||||
<div class="oe_structure"/>
|
||||
<div id="informations" class="row mt-3 mb-1">
|
||||
<table class="table table-sm o_main_table table-borderless">
|
||||
<tr>
|
||||
<td style="width: 60%;">
|
||||
<strong>Выдано:</strong>
|
||||
<br/>
|
||||
<span t-field="o.partner_id.name"/>
|
||||
<br/>
|
||||
<span t-field="o.partner_id.street"/>
|
||||
</td>
|
||||
<td style="width: 10%;"/>
|
||||
<td style="width: 15%;">
|
||||
<strong>Дата счета:</strong>
|
||||
<br/>
|
||||
<strong>Срок оплаты:</strong>
|
||||
</td>
|
||||
<td style="width: 15%;">
|
||||
<span>
|
||||
<t t-esc="o.invoice_date.strftime('%d.%m.%Y') or ''"/>
|
||||
</span>
|
||||
<br/>
|
||||
<span>
|
||||
<t t-esc="o.invoice_date_due.strftime('%d.%m.%Y') or ''"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="oe_structure"/>
|
||||
<style>
|
||||
.main {font-weight:bold}
|
||||
.new_class {text-align: left;}
|
||||
</style>
|
||||
<br/>
|
||||
<table class="table table-sm o_main_table table-borderless" name="invoice_line_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th name="th_description" class="text-start">
|
||||
<span>Описание</span>
|
||||
</th>
|
||||
<th name="th_quantity" class="text-end">
|
||||
<span>Количество</span>
|
||||
</th>
|
||||
<th name="th_priceunit"
|
||||
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span>Цена за ед.изм.</span>
|
||||
</th>
|
||||
<th name="th_taxes" t-if="o.th_field_taxes"
|
||||
t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span>Налог</span>
|
||||
</th>
|
||||
<th name="th_subtotal" class="text-end">
|
||||
<span>Сумма</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="invoice_tbody">
|
||||
<t t-set="current_subtotal" t-value="0"/>
|
||||
<t t-set="current_total" t-value="0"/>
|
||||
<t t-set="lines" t-value="o.prepaid_line"/>
|
||||
|
||||
<t t-foreach="lines" t-as="line">
|
||||
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal"/>
|
||||
<t t-set="current_total" t-value="current_total + line.price_total"/>
|
||||
<tr>
|
||||
<td name="account_invoice_line_name">
|
||||
<t t-if="line.label">
|
||||
<span t-if="line.product_id"
|
||||
t-field="line.product_id.name"
|
||||
t-options="{'widget': 'text'}">
|
||||
Bacon Burger
|
||||
</span><span> / </span><span t-field="line.label" t-options="{'widget': 'text'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span t-if="line.product_id"
|
||||
t-field="line.product_id.name"
|
||||
t-options="{'widget': 'text'}">
|
||||
Bacon Burger
|
||||
</span>
|
||||
</t>
|
||||
</td>
|
||||
<td name="td_quantity" class="text-end">
|
||||
<span t-field="line.quantity">3.00</span>
|
||||
<span t-field="line.product_uom_id" groups="uom.group_uom">units</span>
|
||||
</td>
|
||||
<td name="td_price_unit"
|
||||
t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span>
|
||||
<t t-esc="line.price_unit"/>
|
||||
</span>
|
||||
</td>
|
||||
<t t-if="o.th_field_taxes">
|
||||
<t t-set="taxes"
|
||||
t-value="', '.join([(tax.invoice_label or tax.name) for tax in line.tax_ids])"/>
|
||||
<td name="td_taxes"
|
||||
t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }} {{ 'text-nowrap' if len(taxes) < 10 else '' }}">
|
||||
<span t-out="taxes" id="line_tax_ids">Tax 15%</span>
|
||||
</td>
|
||||
</t>
|
||||
<td name="td_subtotal" class="text-end o_price_total">
|
||||
<span class="text-nowrap" t-field="line.price_subtotal">27.00</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
|
||||
<tr class="is-subtotal text-end">
|
||||
<td colspan="99">
|
||||
<strong class="mr16">Подытог</strong>
|
||||
<span t-out="current_subtotal"
|
||||
t-options="{"widget": "monetary", "display_currency": o.currency_id}">
|
||||
31.05
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</t>
|
||||
</tbody>
|
||||
</table>
|
||||
<div>
|
||||
<div id="right-elements"
|
||||
t-attf-class="#{'col-5' if report_type != 'html' else 'col-12 col-md-5'} ms-5 d-inline-block float-end">
|
||||
<div id="total" class="clearfix row">
|
||||
<div class="ms-auto">
|
||||
<table class="table table-sm table-borderless avoid-page-break-inside">
|
||||
<tr class="border-black o_total">
|
||||
<td>
|
||||
<strong>Всего</strong>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span class="text-nowrap" t-field="o.amount_sum_line">27.00</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 100%; height: 20px;"/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<p>
|
||||
<div style="page-break-inside: avoid;align-self: flex-start; margin-top: 20px;">
|
||||
<p style="font-weight:bold">Информация</p>
|
||||
<div>Номер:
|
||||
<span style="font-weight:bold">
|
||||
<t t-esc="o.name"/>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<t t-if="o.comment">
|
||||
<div class="text-muted mb-3"
|
||||
t-attf-style="#{'text-align:justify;text-justify:inter-word;' if o.company_id.terms_type != 'html' else ''}"
|
||||
t-if="not is_html_empty(o.comment)" name="comment">
|
||||
<span t-field="o.comment"/>
|
||||
</div>
|
||||
</t>
|
||||
<t t-else="">
|
||||
|
||||
<br/>
|
||||
</t>
|
||||
<br/>
|
||||
<table class="table-borderless">
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">Бенефициар:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span>
|
||||
<t t-esc="o.company_id.name"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">Адрес бенефициара:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="o.company_id.partner_id.street"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">ИНН:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span>
|
||||
<t t-esc="o.company_id.partner_id.vat"/>
|
||||
</span>
|
||||
<span t-field="o.company_id.partner_id.vat"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">Банк:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span>
|
||||
<t t-esc="o.partner_bank_id.bank_id.name"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">Адрес банка:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span>
|
||||
<t t-esc="o.partner_bank_id.bank_id.street"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">БИК:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span>
|
||||
<t t-esc="o.partner_bank_id.bank_id.bic"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="font-size:13px">
|
||||
<td>
|
||||
<span style="font-weight:bold">Номер счета/IBAN:</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="width: 25px;"/>
|
||||
</td>
|
||||
<td>
|
||||
<span>
|
||||
<t t-esc="o.partner_bank_id.acc_number"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
16
l10n_ru_advance_payments/report/report_order_prepaid.py
Normal file
16
l10n_ru_advance_payments/report/report_order_prepaid.py
Normal file
@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import models
|
||||
from odoo.addons.l10n_ru_advance_payments.report_helper import QWebHelper
|
||||
|
||||
|
||||
class RuOrderPrepaidReport(models.AbstractModel):
|
||||
_name = 'report.l10n_ru_advance_payments.report_order_prepaid'
|
||||
|
||||
def _get_report_values(self, docids, data=None):
|
||||
docs = self.env['order.prepaid'].browse(docids)
|
||||
return {
|
||||
'helper': QWebHelper(),
|
||||
'doc_ids': docs.ids,
|
||||
'doc_model': 'order.prepaid',
|
||||
'docs': docs
|
||||
}
|
||||
320
l10n_ru_advance_payments/report/report_order_prepaid.xml
Normal file
320
l10n_ru_advance_payments/report/report_order_prepaid.xml
Normal file
@ -0,0 +1,320 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<template id="report_order_prepaid">
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-if="o and 'company_id' in o">
|
||||
<t t-set="company" t-value="o.company_id"/>
|
||||
</t>
|
||||
<t t-if="not o or not 'company_id' in o">
|
||||
<t t-set="company" t-value="res_company"/>
|
||||
</t>
|
||||
<t t-set="context" t-value="o._context"/>
|
||||
|
||||
<div class="page">
|
||||
|
||||
<STYLE TYPE="text/css">
|
||||
body { background: #ffffff; margin: 0; font-family: Arial; font-size: 8pt; font-style:
|
||||
normal; }
|
||||
tr.R0{ height: 15px; }
|
||||
tr.R0 td.R0C1{ text-align: center; vertical-align: medium; }
|
||||
tr.R0 td.R16C19{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
top; border-left: #000000 1px solid; border-top: #000000 1px solid; border-bottom: #000000
|
||||
1px solid; border-right: #000000 1px solid; }
|
||||
tr.R0 td.R16C22{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
top; border-left: #000000 1px solid; border-top: #ffffff 0px none; border-bottom: #000000
|
||||
1px solid; border-right: #000000 1px solid; }
|
||||
tr.R0 td.R17C1{ border-left: #000000 1px solid; border-bottom: #000000 1px solid;
|
||||
border-right: #000000 1px solid; }
|
||||
tr.R0 td.R19C1{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align: top;
|
||||
border-left: #000000 1px solid; border-top: #000000 1px solid; }
|
||||
tr.R0 td.R21C1{ font-family: Arial; font-size: 8pt; font-style: normal; vertical-align:
|
||||
medium; border-left: #000000 1px solid; border-top: #ffffff 0px none; border-bottom: #000000
|
||||
1px solid; }
|
||||
tr.R0 td.R24C1{ font-family: Arial; font-size: 14pt; font-style: normal; font-weight: bold;
|
||||
vertical-align: medium; }
|
||||
tr.R0 td.R37C1{ text-align: center; vertical-align: top; overflow: hidden;border-left:
|
||||
#000000 2px solid; border-top: #000000 1px solid; }
|
||||
tr.R0 td.R37C2{ vertical-align: top; border-left: #000000 1px solid; border-top: #000000 1px
|
||||
solid; }
|
||||
tr.R0 td.R37C4{ text-align: right; vertical-align: top; border-left: #000000 1px solid;
|
||||
border-top: #000000 1px solid; }
|
||||
tr.R0 td.R37C5{ vertical-align: top; border-left: #000000 1px solid; border-top: #000000 1px
|
||||
solid; }
|
||||
tr.R0 td.R37C7{ text-align: right; vertical-align: top; border-left: #000000 1px solid;
|
||||
border-top: #000000 1px solid; border-right: #000000 2px solid; }
|
||||
tr.R15{ height: 17px; }
|
||||
tr.R15 td.R15C1{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
top; border-left: #000000 1px solid; border-top: #000000 1px solid; border-right: #000000
|
||||
1px solid; }
|
||||
tr.R15 td.R15C19{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
medium; border-left: #000000 1px solid; border-top: #000000 1px solid; border-bottom:
|
||||
#000000 1px solid; border-right: #000000 1px solid; }
|
||||
tr.R15 td.R15C22{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
medium; border-left: #000000 1px solid; border-top: #000000 1px solid; border-bottom:
|
||||
#ffffff 0px none; border-right: #000000 1px solid; }
|
||||
tr.R15 td.R18C1{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
medium; border-left: #000000 1px solid; border-top: #000000 1px solid; }
|
||||
tr.R15 td.R18C19{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
top; border-left: #000000 1px solid; border-top: #000000 1px solid; border-bottom: #000000
|
||||
1px solid; border-right: #000000 1px solid; }
|
||||
tr.R15 td.R18C3{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
medium; border-top: #000000 1px solid; border-right: #000000 1px solid; }
|
||||
tr.R15 td.R29C1{ font-family: Arial; font-size: 9pt; font-style: normal; vertical-align:
|
||||
top; }
|
||||
tr.R15 td.R29C5{ font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold;
|
||||
vertical-align: top; }
|
||||
tr.R15 td.R35C1{ font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold;
|
||||
text-align: center; vertical-align: medium; border-left: #000000 2px solid; border-top:
|
||||
#000000 2px solid; }
|
||||
tr.R15 td.R35C2{ font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold;
|
||||
text-align: center; vertical-align: medium; border-left: #000000 1px solid; border-top:
|
||||
#000000 2px solid; }
|
||||
tr.R15 td.R35C7{ font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold;
|
||||
text-align: center; vertical-align: medium; border-left: #000000 1px solid; border-top:
|
||||
#000000 2px solid; border-right: #000000 2px solid; }
|
||||
tr.R15 td.R40C6{ font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold;
|
||||
text-align: right; vertical-align: top; }
|
||||
tr.R15 td.R46C1{ font-family: Arial; font-size: 9pt; font-style: normal; }
|
||||
tr.R15 td.R51C1{ font-family: Arial; font-size: 9pt; font-style: normal; font-weight: bold;
|
||||
}
|
||||
tr.R15 td.R51C10{ text-align: right; border-bottom: #000000 1px solid; }
|
||||
tr.R15 td.R51C6,tr.R15 td.R51C6I,tr.R15 td.R51C6S{ border-bottom: #000000 1px solid; }
|
||||
tr.R15 td.R51C6I,tr.R15 td.R51C6S { overflow: visible; }
|
||||
tr.R15 td.R51C6I span,tr.R15 td.R51C6S span { position: relative; }
|
||||
tr.R15 td.R51C6I span img { position: absolute; width: 100px; top: -40px; }
|
||||
tr.R15 td.R51C6S span img { position: absolute; width: 140px; top: -80px; left: -100px; }
|
||||
tr.R26{ height: 9px; }
|
||||
tr.R26 td.R26C1{ border-bottom: #000000 2px solid; }
|
||||
tr.R26 td.R39C1{ border-top: #000000 2px solid; }
|
||||
table {table-layout: fixed; padding: 0px; padding-left: 2px; vertical-align:bottom;
|
||||
border-collapse:collapse;width: 100%; font-family: Arial; font-size: 8pt; font-style:
|
||||
normal; }
|
||||
td { padding: 0px; padding-left: 2px; overflow:hidden; }
|
||||
.cu_space15 { width:100%;height:15px;overflow:hidden; }
|
||||
.cu_space44 { width:100%;height:44px;overflow:hidden; }
|
||||
.cu_space104 { width:100%;height:104px;overflow:hidden; }
|
||||
.cu_space31 { width:100%;height:31px;overflow:hidden; }
|
||||
.cu_wspace { white-space:nowrap; }
|
||||
.cu_space29 { width:100%;height:29px;overflow:hidden; }
|
||||
.cu_space61 { width:100%;height:61px;overflow:hidden; }
|
||||
.cu_space9 { width:100%;height:9px;overflow:hidden; }
|
||||
tbody, table, tr, td, th{border: none;}
|
||||
</STYLE>
|
||||
|
||||
<TABLE CELLSPACING="0">
|
||||
<COL WIDTH="13%"/>
|
||||
<COL WIDTH="13%"/>
|
||||
<COL WIDTH="13%"/>
|
||||
<COL WIDTH="13%"/>
|
||||
<COL WIDTH="12%"/>
|
||||
<COL WIDTH="12%"/>
|
||||
<COL WIDTH="12%"/>
|
||||
<COL WIDTH="12%"/>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R0C1" COLSPAN="8"> <DIV class="cu_space44">&nbsp;</DIV></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R0C1" COLSPAN="8"> <DIV class="cu_space44">Внимание! Оплата данного счета означает согласие с условиями поставки товара.</DIV></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R0C1" COLSPAN="8"> <DIV class="cu_space44">&nbsp;</DIV></TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R15C1" COLSPAN="4" ROWSPAN="2">
|
||||
<DIV class="cu_space31" t-esc="(company.partner_id.bank_ids and company.partner_id.bank_ids[0].bank_name or '')+' '+(company.partner_id.bank_ids and company.partner_id.bank_ids[0].bank_id.city or '')"/>
|
||||
</TD>
|
||||
<TD CLASS="R15C19">
|
||||
<SPAN class="cu_wspace">БИК</SPAN>
|
||||
</TD>
|
||||
<TD CLASS="R15C22" COLSPAN="3">
|
||||
<SPAN class="cu_wspace" t-esc="company.partner_id.bank_ids and company.partner_id.bank_ids[0].bank_bic or ''"/>
|
||||
</TD>
|
||||
<TD/>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R16C19" ROWSPAN="2">
|
||||
<DIV class="cu_space29"><SPAN class="cu_wspace">Сч. №</SPAN></DIV>
|
||||
</TD>
|
||||
<TD CLASS="R16C22" COLSPAN="3" ROWSPAN="2">
|
||||
<DIV class="cu_space29">
|
||||
<SPAN class="cu_wspace" t-esc="company.partner_id.bank_ids and company.partner_id.bank_ids[0].bank_id.corr_acc or ''"/>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R17C1" COLSPAN="4">
|
||||
<SPAN class="cu_wspace">Банк получателя</SPAN>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R18C1" COLSPAN="1"><SPAN class="cu_wspace">ИНН</SPAN></TD>
|
||||
<TD CLASS="R18C3" COLSPAN="1"><SPAN class="cu_wspace" t-esc="company.inn or ''"/></TD>
|
||||
<TD CLASS="R18C1" COLSPAN="1"><SPAN class="cu_wspace">КПП</SPAN></TD>
|
||||
<TD CLASS="R18C3" COLSPAN="1"><SPAN class="cu_wspace" t-esc="company.kpp or ''"/></TD>
|
||||
<TD CLASS="R18C19" ROWSPAN="4">
|
||||
<DIV class="cu_space61"><SPAN class="cu_wspace">Сч. №</SPAN></DIV>
|
||||
</TD>
|
||||
<TD CLASS="R18C19" COLSPAN="3" ROWSPAN="4">
|
||||
<DIV class="cu_space61">
|
||||
<SPAN class="cu_wspace" t-esc="company.partner_id.bank_ids and company.partner_id.bank_ids[0].acc_number or ''"/>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R19C1" COLSPAN="4" ROWSPAN="2"><DIV class="cu_space29" t-esc="company.name or ''"/></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD>&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R21C1" COLSPAN="4"><SPAN class="cu_wspace">Получатель</SPAN></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD CLASS="R24C1" COLSPAN="8" ROWSPAN="2">
|
||||
<DIV class="cu_space29">
|
||||
<SPAN class="cu_wspace">
|
||||
<t t-esc="'Комм. предложение' if o.state in ['draft','sent'] else 'Счет на оплату'"/>
|
||||
<t t-esc="' № '"/>
|
||||
<t t-esc="helper.numer(o.name)"/>
|
||||
</SPAN>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R26">
|
||||
<TD CLASS="R26C1" COLSPAN="8"> <DIV class="cu_space9"> <SPAN>&nbsp;</SPAN></DIV></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R29C1" COLSPAN="1">
|
||||
<SPAN class="cu_wspace">Поставщик:</SPAN>
|
||||
</TD>
|
||||
<TD CLASS="R29C5" COLSPAN="7">
|
||||
<t t-esc="helper.representation(company)"/>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R29C1" COLSPAN="1">
|
||||
<SPAN class="cu_wspace">Покупатель:</SPAN>
|
||||
</TD>
|
||||
<TD CLASS="R29C5" COLSPAN="7">
|
||||
<t t-esc="helper.representation(o.partner_id.parent_id) if o.partner_id.parent_id else helper.representation(o.partner_id) "/>
|
||||
</TD>
|
||||
<TD/>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
|
||||
<TD CLASS="R35C1"> <SPAN class="cu_wspace">№</SPAN></TD>
|
||||
<TD CLASS="R35C2" COLSPAN="3"><SPAN class="cu_wspace">Товары (работы, услуги)</SPAN></TD>
|
||||
<TD CLASS="R35C2"><SPAN class="cu_wspace">Кол-во</SPAN></TD>
|
||||
<TD CLASS="R35C2"><SPAN class="cu_wspace">Ед.</SPAN></TD>
|
||||
<TD CLASS="R35C2"><SPAN class="cu_wspace">Цена</SPAN></TD>
|
||||
<TD CLASS="R35C7"><SPAN class="cu_wspace">Сумма</SPAN></TD>
|
||||
</TR>
|
||||
|
||||
<tr CLASS="R0" t-foreach="o.prepaid_line.filtered(lambda s: 'аванс' not in s.name.lower() and 'депозит' not in s.name.lower())" t-as="line">
|
||||
<TD CLASS="R37C1"><SPAN class="cu_wspace"><t t-esc="line_index+1"/></SPAN></TD>
|
||||
<TD CLASS="R37C2" COLSPAN="3"><t t-esc="line.name or ''"/></TD>
|
||||
<TD CLASS="R37C4"><SPAN class="cu_wspace"><t t-esc="line.quantity or ''"/></SPAN></TD>
|
||||
<TD CLASS="R37C5"><SPAN class="cu_wspace"><t t-esc="line.product_uom_id.name or ''"/></SPAN></TD>
|
||||
<TD CLASS="R37C4"><SPAN class="cu_wspace"><t t-esc="line.price_unit or ''"/></SPAN></TD>
|
||||
<TD CLASS="R37C7"><SPAN class="cu_wspace"><t t-esc="(('%.2f')%(line.price_unit*line.quantity)).replace('.',',') or ''"/></SPAN></TD>
|
||||
</tr>
|
||||
<TR CLASS="R26">
|
||||
<TD COLSPAN="8" CLASS="R39C1">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R40C6" COLSPAN="7"><SPAN class="cu_wspace">НДС:</SPAN></TD>
|
||||
<TD CLASS="R40C6"><SPAN class="cu_wspace">Без НДС</SPAN></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R46C1" COLSPAN="8">
|
||||
<SPAN class="cu_wspace">Всего наименований <t t-esc="o.prepaid_line and len(o.prepaid_line) or '0' "/>, на сумму
|
||||
<t t-esc="o.amount_sum_line or '0,00'"/>
|
||||
руб.
|
||||
</SPAN>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R29C5" COLSPAN="8">
|
||||
<t t-esc="helper.rubles(o.amount_sum_line).capitalize()"/>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R29C5" COLSPAN="8">Условия оплаты:
|
||||
<t t-esc="o.payment_terms"/>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R26">
|
||||
<TD CLASS="R26C1" COLSPAN="8"> <DIV class="cu_space9"> <SPAN>&nbsp;</SPAN></DIV></TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R0">
|
||||
<TD COLSPAN="8">&nbsp;</TD>
|
||||
</TR>
|
||||
<TR CLASS="R15">
|
||||
<TD CLASS="R51C1" COLSPAN="1">
|
||||
<SPAN class="cu_wspace">Руководитель</SPAN>
|
||||
</TD>
|
||||
<TD CLASS="R51C10" COLSPAN="1">
|
||||
<t t-esc="helper.initials(company.chief_id.name)"/>
|
||||
</TD>
|
||||
<TD CLASS="R51C6I">
|
||||
<SPAN>
|
||||
<t t-raw="company.print_facsimile and (company.print_anywhere or context.get('mark_so_as_sent', False)) and helper.img(company.chief_id.facsimile) or ''"/>
|
||||
</SPAN>
|
||||
</TD>
|
||||
<TD CLASS="R51C6S">
|
||||
<SPAN>
|
||||
<t t-raw="company.print_stamp and (company.print_anywhere or context.get('mark_so_as_sent', False)) and helper.img(company.stamp) or ''"/>
|
||||
</SPAN>
|
||||
</TD>
|
||||
|
||||
<TD CLASS="R51C1" COLSPAN="1">
|
||||
<SPAN class="cu_wspace">Бухгалтер</SPAN>
|
||||
</TD>
|
||||
<TD CLASS="R51C10" COLSPAN="1">
|
||||
<t t-esc="helper.initials(company.accountant_id.name)"/>
|
||||
</TD>
|
||||
<TD CLASS="R51C6I">
|
||||
<SPAN>
|
||||
<t t-raw="company.print_facsimile and (company.print_anywhere or context.get('mark_so_as_sent', False)) and helper.img(company.accountant_id.facsimile) or ''"/>
|
||||
</SPAN>
|
||||
</TD>
|
||||
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user