mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-26 05:42:04 +02:00
Initial commit: OCA Financial packages (186 packages)
This commit is contained in:
commit
3e0e8473fb
8757 changed files with 947473 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
<odoo>
|
||||
<record id="report_account_billing" model="ir.actions.report">
|
||||
<field name="name">Billing</field>
|
||||
<field name="model">account.billing</field>
|
||||
<field name="report_name">account_billing.report_billing</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_file">account_billing.report_billing</field>
|
||||
<field name="binding_model_id" ref="model_account_billing" />
|
||||
<field name="binding_type">report</field>
|
||||
<field
|
||||
name="print_report_name"
|
||||
>'BILL-%s%s' % (object.name, object.state == 'draft' and '-draft' or '')</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
<odoo>
|
||||
<template id="report_billing_document">
|
||||
<t t-call="web.external_layout">
|
||||
<t t-set="address">
|
||||
<address
|
||||
t-field="o.partner_id"
|
||||
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
|
||||
/>
|
||||
<div t-if="o.partner_id.vat" class="mt16"><t
|
||||
t-esc="o.company_id.country_id.vat_label or 'Tax ID'"
|
||||
/>: <span t-field="o.partner_id.vat" /></div>
|
||||
</t>
|
||||
<div class="page">
|
||||
<h2>
|
||||
<span t-if="o.state == 'billed'">Billing</span>
|
||||
<span t-if="o.state == 'draft'">Draft Billing</span>
|
||||
<span t-if="o.state == 'cancel'">Cancelled Billing</span>
|
||||
<span t-field="o.name" />
|
||||
</h2>
|
||||
<div id="informations" class="row mt32 mb32">
|
||||
<div class="col-auto mw-100 mb-2" t-if="o.date" name="billing_date">
|
||||
<strong>Billing Date:</strong>
|
||||
<p class="m-0" t-field="o.date" />
|
||||
</div>
|
||||
<div
|
||||
class="col-auto mw-100 mb-2"
|
||||
t-if="o.threshold_date"
|
||||
name="due_date"
|
||||
>
|
||||
<strong>Due Date:</strong>
|
||||
<p class="m-0" t-field="o.threshold_date" />
|
||||
</div>
|
||||
<div
|
||||
class="col-auto mw-100 mb-2"
|
||||
t-if="o.currency_id"
|
||||
name="currency_id"
|
||||
>
|
||||
<strong>Currency:</strong>
|
||||
<p class="m-0" t-field="o.currency_id" />
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-sm o_main_table" name="invoice_line_table">
|
||||
<thead name="line_header">
|
||||
<tr>
|
||||
<t t-set="colspan" t-value="6" />
|
||||
<th>
|
||||
<span>Invoice Number</span>
|
||||
</th>
|
||||
<th>
|
||||
<span>Invoice Date</span>
|
||||
</th>
|
||||
<th>
|
||||
<span>Due Date</span>
|
||||
</th>
|
||||
<th>
|
||||
<span>Source Document</span>
|
||||
</th>
|
||||
<th class="text-end">
|
||||
<span>Total</span>
|
||||
</th>
|
||||
<th>
|
||||
<span>Status</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody name="line_body" class="billing_tbody">
|
||||
<t t-foreach="o.billing_line_ids" t-as="line">
|
||||
<tr name="account_billing_line">
|
||||
<td>
|
||||
<span t-field="line.name" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="line.invoice_date" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="line.move_id.invoice_date_due" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="line.origin" />
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-field="line.amount_total" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="line.state" />
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</tbody>
|
||||
</table>
|
||||
<p t-if="o.narration" name="narration">
|
||||
<span>Notes :</span>
|
||||
<span t-field="o.narration" />
|
||||
</p>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
<template id="report_billing">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="account_billing.report_billing_document" />
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue