diff --git a/i18n/es_AR.mo b/i18n/es_AR.mo index b9befc67353bc84283b94e4d64cd2272b00b2352..b95b5b3476490fb72d847d06f7de78c52a624a5c 100644 Binary files a/i18n/es_AR.mo and b/i18n/es_AR.mo differ diff --git a/i18n/es_AR.po b/i18n/es_AR.po index c31cccaff8d3f17a56f94836e832a2b02e8d3cfe..5ffb3b726e894bc1737e9a340dfe8c4fd034e939 100644 --- a/i18n/es_AR.po +++ b/i18n/es_AR.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-12 18:58+0000\n" -"PO-Revision-Date: 2021-07-12 15:59-0300\n" +"POT-Creation-Date: 2021-07-19 20:05+0000\n" +"PO-Revision-Date: 2021-07-19 17:06-0300\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -63,16 +63,19 @@ msgstr "<strong class=\"text-center\">Las informaciones del código QR SEPA no e #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template msgid "<strong>Customer Code:</strong>" msgstr "<strong>Código del cliente:</strong>" #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template msgid "<strong>Description:</strong>" msgstr "<strong>Descripción:</strong>" #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template msgid "<strong>Due Date:</strong>" msgstr "<strong>Fecha de vencimiento:</strong>" @@ -83,6 +86,7 @@ msgstr "<strong>Exento</strong>" #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template msgid "<strong>Invoice Date:</strong>" msgstr "<strong>Fecha de factura:</strong>" @@ -93,6 +97,7 @@ msgstr "<strong>Neto gravado</strong>" #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template msgid "<strong>Reference:</strong>" msgstr "<strong>Referencia:</strong>" @@ -103,6 +108,7 @@ msgstr "<strong>Notas de crédito</strong>" #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template msgid "<strong>Source:</strong>" msgstr "<strong>Origen:</strong>" @@ -195,6 +201,7 @@ msgid "Configuration" msgstr "Configuración" #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__create_uid #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice__create_uid #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config__create_uid #: model:ir.model.fields,field_description:medical_invoicing.field_wizard_account_invoice_modify__create_uid @@ -202,6 +209,7 @@ msgid "Created by" msgstr "Creado por" #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__create_date #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice__create_date #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config__create_date #: model:ir.model.fields,field_description:medical_invoicing.field_wizard_account_invoice_modify__create_date @@ -251,6 +259,7 @@ msgid "Descriptors applied by" msgstr "Prácticas efectuadas por " #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__display_name #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice__display_name #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config__display_name #: model:ir.model.fields,field_description:medical_invoicing.field_report_medical_invoicing_report_invoice_detail_template__display_name @@ -317,6 +326,7 @@ msgid "From" msgstr "De" #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__id #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice__id #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config__id #: model:ir.model.fields,field_description:medical_invoicing.field_report_medical_invoicing_report_invoice_detail_template__id @@ -375,6 +385,11 @@ msgstr "Reporte de detalle de prestaciones" msgid "Invoice due days must be greater than zero" msgstr "Los dÃas de vencimiento de la factura deben ser mayores a 0" +#. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__invoice_line_id +msgid "Invoice lines" +msgstr "" + #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.medical_invoice_form #: selection:medical.invoice,state:0 @@ -405,6 +420,7 @@ msgid "Is medical service" msgstr "Es servicio médico" #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line____last_update #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice____last_update #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config____last_update #: model:ir.model.fields,field_description:medical_invoicing.field_report_medical_invoicing_report_invoice_detail_template____last_update @@ -415,6 +431,7 @@ msgid "Last Modified on" msgstr "Última modificación en" #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__write_uid #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice__write_uid #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config__write_uid #: model:ir.model.fields,field_description:medical_invoicing.field_wizard_account_invoice_modify__write_uid @@ -422,6 +439,7 @@ msgid "Last Updated by" msgstr "Última actualización por" #. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__write_date #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice__write_date #: model:ir.model.fields,field_description:medical_invoicing.field_medical_invoice_config__write_date #: model:ir.model.fields,field_description:medical_invoicing.field_wizard_account_invoice_modify__write_date @@ -433,6 +451,11 @@ msgstr "Última actualización el" msgid "Line to choose benefits to pay from invoices" msgstr "" +#. module: medical_invoicing +#: model:ir.model,name:medical_invoicing.model_account_invoice_refund_line +msgid "Lines of refund wizard" +msgstr "" + #. module: medical_invoicing #: model:ir.model,name:medical_invoicing.model_medical_benefit msgid "Medical Benefit" @@ -478,7 +501,7 @@ msgid "Modify Invoice" msgstr "Modificar factura" #. module: medical_invoicing -#: code:addons/medical_invoicing/models/account_invoice.py:46 +#: code:addons/medical_invoicing/models/account_invoice.py:50 #: code:addons/medical_invoicing/models/medical_invoice.py:130 #, python-format msgid "Month" @@ -609,7 +632,7 @@ msgid "The payment amount must be greater than zero" msgstr "El monto del pago debe ser mayor que cero" #. module: medical_invoicing -#: code:addons/medical_invoicing/wizard/account_invoice_refund.py:110 +#: code:addons/medical_invoicing/wizard/account_invoice_refund.py:118 #, python-format msgid "There must be at least one invoice line selected" msgstr "Debe haber por lo menos una lÃnea de factura seleccionada" @@ -629,6 +652,11 @@ msgstr "Pasar a borrador" msgid "Total invoiced by" msgstr "Total facturado por" +#. module: medical_invoicing +#: model_terms:ir.ui.view,arch_db:medical_invoicing.report_pre_invoice_template +msgid "Total invoiced:" +msgstr "Total facturado: " + #. module: medical_invoicing #: model_terms:ir.ui.view,arch_db:medical_invoicing.report_invoice_insurance_template msgid "Vendor Bill" @@ -675,6 +703,11 @@ msgstr " para " msgid "from" msgstr "del" +#. module: medical_invoicing +#: model:ir.model.fields,field_description:medical_invoicing.field_account_invoice_refund_line__price +msgid "price" +msgstr "Precio" + #. module: medical_invoicing #: model:ir.model,name:medical_invoicing.model_report_medical_invoicing_report_invoice_detail_template msgid "report.medical_invoicing.report_invoice_detail_template" diff --git a/report/invoice_detail_report_template.xml b/report/invoice_detail_report_template.xml index 7f8f8573a1c45d2a4c02051a912bfba4ea143d19..7cadf46c08892b94aa9e97c10249ec6379dafec0 100644 --- a/report/invoice_detail_report_template.xml +++ b/report/invoice_detail_report_template.xml @@ -24,8 +24,8 @@ <td style="width:30%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"><span t-esc="professional"/></td> <td style="width:30%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"><span t-esc="line['patient']"/></td> <td style="width:10%;"><span t-esc="descriptor"/></td> - <td style="width:15%;"><span t-esc="line['price_unit']"/></td> - <td style="width:15%;"><span t-esc="line['price_total']"/></td> + <td style="width:15%;">$ <span t-esc="line['price_unit']"/></td> + <td style="width:15%;">$ <span t-esc="line['price_total']"/></td> </tr> </table> </t> @@ -33,7 +33,7 @@ <p style="text-align:right;font-size:0.8em;">Descriptors applied by <strong t-esc="professional"/> for <strong t-esc="descriptor"/> = <strong t-esc="len(records[professional][descriptor])"/></p> <hr style="height:1px;border-width:0;color:black;background-color:black;"/> </t> - <p style="text-align:right;font-size:0.8em;">Total invoiced by <strong t-esc="professional"/>: $<strong t-esc="total"/></p> + <p style="text-align:right;font-size:0.8em;">Total invoiced by <strong t-esc="professional"/>: $ <strong t-esc="total"/></p> <hr style="height:1px;border-width:0;color:black;background-color:black;"/> </t> </div> diff --git a/report/invoice_insurance_report_template.xml b/report/invoice_insurance_report_template.xml index 7c340070306658b3acd4049750b5fbe19a659027..634c7fc828e8053b0c99f9fb94226513f2e770c8 100644 --- a/report/invoice_insurance_report_template.xml +++ b/report/invoice_insurance_report_template.xml @@ -160,7 +160,7 @@ <template id="report_invoice_insurance"> <t t-call="web.html_container"> <t t-foreach="docs" t-as="o"> - <t t-set="lang" t-value="o.user_id.sudo().lang if o.type in ('in_invoice', 'in_refund') else o.partner_id.lang"/> + <t t-set="lang" t-value="o.user_id.sudo().lang"/> <t t-call="medical_invoicing.report_invoice_insurance_template" t-lang="lang"/> </t> </t> diff --git a/report/pre_invoice_report.py b/report/pre_invoice_report.py index 1c23884b8be3fc1e0fa360e389ed525f2ded9e83..ab3399fedfe1c1ef254e61f4a81c75eecc0dbff3 100644 --- a/report/pre_invoice_report.py +++ b/report/pre_invoice_report.py @@ -68,6 +68,7 @@ class ReportPreInvoice(models.AbstractModel): return { 'doc_ids': docids, 'doc_model': 'account.invoice', + 'doc': invoice, 'records': records, } diff --git a/report/pre_invoice_report_template.xml b/report/pre_invoice_report_template.xml index 758d3b32a54518c0d92c1bc8010b72d84001a0d5..a6ad305b883cee7eef97515c5f2396b48eae63a9 100644 --- a/report/pre_invoice_report_template.xml +++ b/report/pre_invoice_report_template.xml @@ -4,6 +4,33 @@ <t t-call="web.html_container"> <t t-call="web.basic_layout" t-lang="user.lang"> <div class="page"> + <div id="informations" class="row mt32 mb32"> + <div class="col-auto mw-100 mb-2" t-if="doc.name" name="description"> + <strong>Description:</strong> + <p class="m-0" t-field="doc.name"/> + </div> + <div class="col-auto mw-100 mb-2" t-if="doc.date_invoice" name="invoice_date"> + <strong>Invoice Date:</strong> + <p class="m-0" t-field="doc.date_invoice"/> + </div> + <div class="col-auto mw-100 mb-2" t-if="doc.date_due and doc.type == 'out_invoice' and doc.state in ('open', 'in_payment', 'paid')" name="due_date"> + <strong>Due Date:</strong> + <p class="m-0" t-field="doc.date_due"/> + </div> + <div class="col-auto mw-100 mb-2" t-if="doc.origin" name="origin"> + <strong>Source:</strong> + <p class="m-0" t-field="doc.origin"/> + </div> + <div class="col-auto mw-100 mb-2" t-if="doc.partner_id.ref" name="customer_code"> + <strong>Customer Code:</strong> + <p class="m-0" t-field="doc.partner_id.ref"/> + </div> + <div name="reference" class="col-auto mw-100 mb-2" t-if="doc.reference"> + <strong>Reference:</strong> + <p class="m-0" t-field="doc.reference"/> + </div> + </div> + <div style="text-align:left;color:black!important;"><strong><h1>Pre Invoice report</h1></strong></div><br/> <table class="table table-sm o_main_table" style="table-layout:fixed;font-size:0.8em;"> <tr> @@ -11,13 +38,20 @@ <td>Professional</td> <td>Price Total</td> </tr> + <t t-set="total" t-value="0"/> <t t-foreach="records" t-as="record"> + <t t-set="total" t-value="total+record['price_total']"/> <tr> <td><span t-esc="record['benefit_count']"/></td> <td><span t-esc="record['professional']"/></td> - <td><span t-esc="record['price_total']"/></td> + <td>$ <span t-esc="record['price_total']"/></td> </tr> </t> + <tr> + <td/> + <td/> + <td>Total invoiced: <strong>$ <span t-esc="total"/></strong></td> + </tr> </table> <div class="footer"> <div class="text-center">