Hello i'm doing a modulo to make changes in the invoice report with this code:
?xml version="1.0" encoding="UTF-8"?
odoo
record id="repair_template_custom_inherit" model="ir.ui.view"
field name="name"repair_template_custom_inherit/field
field name="model"repair.order/field
field name="inherit_id" ref="repair.report_repairorder"/field
field name="arch" type="xml"
xpath expr="//div[@t-field='o.partner_id']" position="after"
t t-if="o.partner_id.phone or o.partner_id.mobile"
div
strongTeléfono:/strong
span t-esc="o.partner_id.phone or o.partner_id.mobile"/span
/div
/t
/xpath
xpath expr="//div[hasclass('col-3') and contains(., 'Printing Date')]" position="attributes"
attribute name="t-if"False/attribute
/xpath
xpath expr="//table[hasclass('table') and hasclass('table-sm') and hasclass('o_main_table')]/thead/tr" position="replace"
tr
thOperaciones/th
thDescripción/th
th class="text-end"Cantidad/th
th class="text-end"Precio Unidad/th
th class="text-end"Precio/th
/tr
/xpath
xpath expr="//table[hasclass('table') and hasclass('table-sm') and hasclass('o_main_table')]/tbody" position="replace"
tbody
t t-if="o.operations"
tr class="bg-200 o_line_section"td colspan="5"strongParts/strong/td/tr
tr t-foreach="o.operations" t-as="line"
td
span t-if="line.type == 'add'"Añadir/span
span t-if="line.type == 'remove'"Quitar/span
/td
td
span t-field="line.name"/span
/td
td class="text-end"
span t-field="line.product_uom_qty"/span
span groups="uom.group_uom" t-field="line.product_uom.name"/span
/td
td class="text-end"
span t-field="line.price_unit"/span
/td
td class="text-end o_price_total"
span t-field="line.price_subtotal" t-options="{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}"/span
/td
/tr
/t
t t-if="o.fees_lines"
tr class="bg-200 o_line_section"td colspan="5"strongOperations/strong/td/tr
tr t-foreach="o.fees_lines" t-as="fees"
td
spanOperación/span
/td
td
span t-field="fees.name"/span
/td
td class="text-end"
span t-field="fees.product_uom_qty"/span
span groups="uom.group_uom" t-field="fees.product_uom.name"/span
/td
td class="text-end"
span t-field="fees.price_unit"/span
/td
td class="text-end o_price_total"
span t-field="fees.price_subtotal" t-options="{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}"/span
/td
/tr
/t
/tbody
/xpath
xpath expr="//div[@id='total']//table[hasclass('table') and hasclass('table-sm')]" position="replace"
table class="table table-sm table-borderless" style="page-break-inside: avoid;"
t t-set="tax_totals" t-value="o.tax_totals"/t
t t-call="account.document_tax_totals"/t
t t-if="o.invoice_method != 'none'"
tr class="border-black o_subtotal"
tdstrongTotal Without Taxes/strong/td
td class="text-end"
span t-field="o.amount_untaxed" t-options="{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}"/span
/td
/tr
tr
tdTaxes/td
td class="text-end o_price_total"
span t-field="o.amount_tax" t-options="{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}"/span
/td
/tr
tr class="border-black o_total"
tdstrongTotal/strong/td
td class="text-end o_price_total"
span t-field="o.amount_total" t-options="{"widget": "monetary", "display_currency": o.pricelist_id.currency_id}"/span
/td
/tr
/t
t t-if="o.amount_paid"
t t-set="payments_vals" t-value="o.sudo().repair_payments_widget and o.sudo().repair_payments_widget['content'] or []"/t
t t-foreach="payments_vals" t-as="payment_vals"
tr
td
i class="oe_form_field text-end oe_payment_label"Pagado el t t-esc="payment_vals['date']" t-options="{"widget": "date"}"/t/i
/td
td class="text-end"
span t-esc="payment_vals['amount']" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/span
/td
/tr
/t
t t-if="len(payments_vals) > 0"
tr class="border-black fw-bold"
tdImporte adeudado/td
td class="text-end"
span t-field="o.amount_due" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/span
/td
/tr
/t
/t
/table
/xpath
/field
/record
/odoo
and this is the manifest
{
'name': "Modulo para la personalización del template de los reportes",
'version': '1.0',
'depends': ['base', 'account'],
'author': "Eco-Clic",
'description': """
Modulo para la personalización del template de los reportes
""",
'data': [
'views/invoice_template_custom.xml',
],
'installable': True,
}
but the changes do not appear in the pdf