34 lines
1.7 KiB
XML
34 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="portal_invoice_closing_document"
|
|
name="Загрузка закрывающих документов"
|
|
inherit_id="account.portal_invoice_page">
|
|
<xpath expr="//div[hasclass('o_download_pdf')]" position="after">
|
|
<form action="/my/closing_document" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
|
<li class="list-group-item flex-grow-1">
|
|
<div class="form-group">
|
|
<label class="col-form-label" for="closing_name">Номер</label>
|
|
<input type="hidden" name="invoice_id" t-att-value="invoice.id"/>
|
|
<input type="hidden" name="url" t-att-value="invoice.get_portal_url()"/>
|
|
<input type="text" id="closing_name" name="name"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-form-label" for="closing_file">Выбрать документы</label>
|
|
<input type="file" id="closing_file" name="image_1920"
|
|
data-show-upload="true" accept="image/*"/>
|
|
</div>
|
|
<div class="clearfix">
|
|
<button type="submit" class="btn btn-primary">
|
|
Загрузить закрывающие документы
|
|
<span class="fa fa-long-arrow-right"/>
|
|
</button>
|
|
</div>
|
|
</li>
|
|
</form>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|