Odoo Help

0

0
2 Answers
0
Avatar

Mitul Shingala

--Mitul Shingala--

2895
| 6 4 9
Rajkot, India
--Mitul Shingala--

Odoo Developer

Mitul Shingala
2019/05/07 9:29

Hello 

you have to add loop on the account_invoice_tax. 

you are getting multiple records instead on single record. that's why this  Expected Singleton error you are getting.

for ex:    <t t-foreach="line.tax_id" t-as="tax_id">
            <span t-field="tax_id.name"/>
           </t>
0
lodhur
2019/05/07 9:48

Hi Mitul, 

thanks for your fast reply. It seems as this should be the solution. But where do I find "account_invoice_tax" to change it? Is it a report or a model or something else?

2 Comments
Mitul Shingala
2019/05/07 10:23

into report you can from where error is comes. like into sale order you are made changes and print. at that time you got the error like expected singleton. so check the sale order lines tax value is print on report or not? if print then also check how you print the value or amount on report. ?

lodhur
2019/05/07 11:29

Your workaround helped a lot. Our salesman did the wrong tax entry. The Qweb report couldn't manage two entries and throwed the error. After changing this everything worked as it should.

Thanks for your help!

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now