Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Display of the amount in letters

Subscribe

Get notified when there's activity on this post

This question has been flagged
amount-in-letters
2 Replies
5673 Views
Avatar
OUATTARA Yacouba

Hi,

how I can activate the display of the amount in letters on the quotation and the invoice  (odoo 16 online) ?


0
Avatar
Discard
Avatar
Manitra Andriamitondra
Best Answer

In Odoo 16 (Odoo online v16-sass-1), I had to edit the Invoice report template manually to add the amount in letters.
It is long and painful so hang tight!

There are 3 steps to do it in a (kind of) future proof way

  1. Duplicate the main invoice template and add the magic code
  2. Duplicate the specific report view and make it point to the new invoice template
  3. Duplicate the report entry and make it point to the specific report view

Step 1. Duplicate the invoice template

  • Activate debug mode and goto General Setting > Menu Technical > User Interface > Views
    You can browse this url (change your-adress.com with yours) : https://your-adress.com/web?debug=1&reload=true#action=29&model=ir.ui.view&view_type=list&cids=1&menu_id=45
  • Search for the view named report_invoice_document, clic on it to edit, but do not change this view as it's a default view and would not be updated automatically if changed
  • Instead clic on the button Action > Duplicate (on the top right) and name your new View a little bit differently for example : report_invoice_document_letters
  • Then add span html element add this attribute (I can't paste the code because this website removes html automatically):
t-out="o.currency_id.amount_to_text(o.amount_total)"
  • This code use the Currency object of the current invoice to format the total amount using the partner language. If you want another language, you'll be able to change it in the second part of this tutorial
  • Save your duplicated View and record its database id. The Id of your view is a number and visible in the current url of your browser just after the id=​ 
  • Add an external id to your new template. To do so, go to General Setting > Menu Technical > Sequence and Identifiers > External Identifiers
    Or go to : https://your-address.com/web?debug=1&reload=true#action=21&model=ir.model.data&view_type=list&cids=1&menu_id=37
  • Clic on the New button on the top left and fil the following information
    • Module : mycompany  (of course, put your company name or any module name you want)
    • External Id : report_invoice_document_letters (the name of the template you previously created)
    • Model : ir.ui.view  (this is to say that we're pointing to a view)
    • Record Id : The id of the view you created previously (I asked you to note it somewhere, remember ? ;) )

Step 2. Duplicate the report view

  • Activate debug mode and goto General Setting > Menu Technical > User Interface > Views
    You can browse this url (change your-adress.com with yours) : https://your-adress.com/web?debug=1&reload=true#action=29&model=ir.ui.view&view_type=list&cids=1&menu_id=45
  • For tweaking the Invoices with payment report, search for the view named ​ report_invoice_with_payments, clic on it to edit, but do not change this view as it's a default view and would not be updated automatically if changed
  • Instead clic on the button Action > Duplicate (on the top right) and name your new View a little bit differently for example : report_invoice_with_payments_letters
  • Then change the code t-call="account.report_invoice_document" to t-call="mycompany.report_invoice_document_letters"
    Note that mycompany should be the module name you chose in the previous step​
  • Save your duplicated View and note its database id. The Id of your view is a number and visible in the current url of your browser just after the id=​ 
  • Add an external id to your new template. To do so, go to General Setting > Menu Technical > Sequence and Identifiers > External Identifiers
    Or go to : https://your-address.com/web?debug=1&reload=true#action=21&model=ir.model.data&view_type=list&cids=1&menu_id=37
  • Clic on the New button on the top left and fil the following information
    • Module : mycompany  (of course, put your company name or any module name you want)
    • External Id : report_invoice_with_payments_letters (the name of the template you previously created)
    • Model : ir.ui.view  (this is to say that we're pointing to a view)
    • Record Id : The id of the view you created previously (I asked you to note it somewhere, remember ? ;) You're not crazy, it's the second time you do this but with a slightly different id)

Don't quit now. You're only one step ahead of success :)

Step 3. Duplicate the report entry

  • Activate debug mode and goto General Setting > Menu Technical > Actions >
    Report 
    You can browse this url (change your-address.com with yours) : https://your-address.com/web?debug=1&reload=true#action=6&model=ir.actions.report&view_type=list&menu_id=4&cids=1
  • Search for report_invoice_with_payments, you should get a row named Invoices using the model repot_invoice_with_payments. Clic on it to edit, but do not change this report as it's a default item and would not be updated automatically if changed
  • Instead clic on the button Action > Duplicate (on the top right) and name your new Report a little bit differently for example : Invoices with letters
  • Then change the report this way :
    • Model : account.move  (do not change it)
    • Report name : mycompany.report_invoice_with_payments_letters (the module and the name you chose in the previous step)
  • Save your duplicated report
  • Clic on the smart button Add to "Print" menu on the top right of the screen


Done ! You have a new invoice report which shows the amounts in letters.
If you have more questions, feel free to contact at manitra [at] manitra [dot] net .

Tips

Do not even try to do this with Odoo Studio. I wasted 3 days of my life trying. Odoo Studio tries to use xpath with loosely identified elements to update the report. You will most likely fail to do what you want and will pollute your instance with lot of randomly named elements.

1
Avatar
Discard
Avatar
S.M Firoz Ahmed ( Daffodil Software Limited )
Best Answer

In Odoo 16, you can activate the display of the amount in letters on quotations and invoices by following these steps:

  1. Go to the Settings menu, and select the Technical menu.

  2. In the Technical menu, select the Reports menu.

  3. In the Reports menu, select the Reports menu.

  4. Search for the report that you want to activate the amount in letters for, for example, Quotation/Sale Order or Invoice.

  5. Click on the report to open its form view.

  6. In the report's form view, scroll down to the bottom of the page to find the "Attributes" section.

  7. In the Attributes section, find the "Amount in Words" attribute and set its value to "True"

  8. Save the report by clicking on the "Save" button.

  9. Go back to the quotation or invoice and print it to see the amount in letters.

  10. If you want to activate the amount in letters for all the documents, you should repeat the steps for each report, Sale Order, Invoice, Purchase Order, etc.

Keep in mind that the amount in letters will be displayed in the language that you have set in the company settings.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Display of the amount in letters on the quotation and the invoice (odoo 14) Solved
v14 amount-in-letters
Avatar
Avatar
Avatar
2
May 23
5820
Odoo v15 amount_to_text Solved
invoice amount_to_text v15 amount-in-letters odoo15
Avatar
Avatar
2
May 24
2752
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now