Skip to Content
Menu
This question has been flagged
2 Replies
1609 Views

How can I put a text(number to letters) across the entire width of the page, before amount_untaxed,

Use this cpde but it does not come out correctly. It should be glued to the left horizontally. It would be the description of the total invoice.

example:

Amount in letters. :

TWO HUNDRED FIFTY.

Thanks,

<?xml version="1.0" encoding="utf-8"?>

<odoo>

    <record id="add_text_amount_to_invoice_form" model="ir.ui.view">

        <field name="name">add.text.amount.to.invoice.form</field>

        <field name="model">account.invoice</field>

        <field name="inherit_id" ref="account.invoice_form"/>

        <field name="arch" type="xml">

            <xpath expr="//field[@name='amount_untaxed']" position="before">

                <field name="text_amount"/>

            </xpath>

        </field>

    </record>

</odoo>

Avatar
Discard
Best Answer

Hello There, 

You need to replace this line

<field name="text_amount"/>

With 

<div> <field name="text_amount"/> </div>

Or with

<h3><field name="text_amount"/></h3>

Thanks

Anisha Bahukhandi

Technical Content Writer

Avatar
Discard
Best Answer

try to add a label  in a div for amount untaxed and for fields add nolabel ="1" 

Avatar
Discard