Hi,
how I can activate the display of the amount in letters on the quotation and the invoice (odoo 14 ) ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
how I can activate the display of the amount in letters on the quotation and the invoice (odoo 14 ) ?
Python code
def _amount_in_word (self):
for rec in self:
rec.word_num = str (rec.currency_id.amount_to_text (rec.amount_total))
word_num = fields.Char (string = "Amount In Words:", compute = '_ amount_in_word')
xml code
Hi,
Thanks for your Python code but the party of xml code is empty !
<record id="amount_word_form_view" model="ir.ui.view">
<field name="name">Amount To Word in Sale Order</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='note']" position="after">
<group colspan="2" attrs="{'invisible': [('amount_total', '<=', 0)]}">
<div class="oe_subtotal_footer_separator oe_inline o_td_label" style="font-size:15px;">
<label for="word_num" style="margin-right: 8px;font-size:15px;"/>
<field name="word_num" string="Amount In Word"/>
</div>
</group>
</xpath>
</field>
</record>
Sorry about that. Hope this solves your issue.
Thanks
Thanks!!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
jul. 25
|
2330 | ||
|
2
jul. 25
|
7810 | ||
|
2
jul. 25
|
4211 | ||
|
2
jul. 25
|
3996 | ||
|
2
jun. 25
|
2592 |