Odoo18-Base/addons/l10n_hu_edi/data/template_requests.xml
2025-01-06 10:57:38 +07:00

98 lines
4.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="request_header" xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common">
<common:header>
<common:requestId t-out="requestId"/>
<common:timestamp t-out="timestamp"/>
<common:requestVersion t-translation="off">3.0</common:requestVersion>
<common:headerVersion t-translation="off">1.0</common:headerVersion>
</common:header>
<common:user>
<common:login t-out="login"/>
<common:passwordHash cryptoType="SHA-512" t-out="passwordHash"/>
<common:taxNumber t-out="taxNumber"/>
<common:requestSignature cryptoType="SHA3-512" t-out="requestSignature"/>
</common:user>
<software>
<softwareId t-out="softwareId"/>
<softwareName t-out="softwareName"/>
<softwareOperation t-out="softwareOperation"/>
<softwareMainVersion t-out="softwareMainVersion"/>
<softwareDevName t-out="softwareDevName"/>
<softwareDevContact t-out="softwareDevContact"/>
<softwareDevCountryCode t-out="softwareDevCountryCode"/>
<softwareDevTaxNumber t-out="softwareDevTaxNumber"/>
</software>
</template>
<template id="token_exchange_request">
<TokenExchangeRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api">
<t t-call="l10n_hu_edi.request_header"/>
</TokenExchangeRequest>
</template>
<template id="manage_invoice_request">
<ManageInvoiceRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api">
<t t-call="l10n_hu_edi.request_header"/>
<exchangeToken t-out="exchangeToken"/>
<invoiceOperations>
<compressedContent t-out="format_bool(compressedContent)"/>
<invoiceOperation t-foreach="invoices" t-as="invoice_data">
<index t-out="invoice_data['index']"/>
<invoiceOperation t-out="invoice_data['invoiceOperation']"/>
<invoiceData t-out="invoice_data['invoiceData']"/>
</invoiceOperation>
</invoiceOperations>
</ManageInvoiceRequest>
</template>
<template id="query_transaction_status_request">
<QueryTransactionStatusRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api">
<t t-call="l10n_hu_edi.request_header"/>
<transactionId t-out="transactionId"/>
<returnOriginalRequest t-out="format_bool(returnOriginalRequest)"/>
</QueryTransactionStatusRequest>
</template>
<template id="query_transaction_list_request">
<QueryTransactionListRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api">
<t t-call="l10n_hu_edi.request_header"/>
<page t-out="page"/>
<insDate>
<dateTimeFrom t-out="dateTimeFrom"/>
<dateTimeTo t-out="dateTimeTo"/>
</insDate>
</QueryTransactionListRequest>
</template>
<template id="manage_annulment_request">
<ManageAnnulmentRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api">
<t t-call="l10n_hu_edi.request_header"/>
<exchangeToken t-out="exchangeToken"/>
<annulmentOperations>
<annulmentOperation t-foreach="annulments" t-as="annulment_data">
<index t-out="annulment_data['index']"/>
<annulmentOperation t-out="annulment_data['annulmentOperation']"/>
<invoiceAnnulment t-out="annulment_data['invoiceAnnulment']"/>
</annulmentOperation>
</annulmentOperations>
</ManageAnnulmentRequest>
</template>
<template id="invoice_annulment">
<InvoiceAnnulment
xmlns="http://schemas.nav.gov.hu/OSA/3.0/annul"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.nav.gov.hu/OSA/3.0/data invoiceAnnulment.xsd"
xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common"
xmlns:base="http://schemas.nav.gov.hu/OSA/3.0/base">
<annulmentReference t-out="annulmentReference"/>
<annulmentTimestamp t-out="annulmentTimestamp"/>
<annulmentCode t-out="annulmentCode"/>
<annulmentReason t-out="annulmentReason"/>
</InvoiceAnnulment>
</template>
</odoo>