Odoo Help

0

0
1 Answer
1
Avatar

Hilar AK

--Hilar AK--
9133
| 6 6 11
Switzerland
--Hilar AK--
  Blog:-
        https://hilarlive.wordpress.com/
  StackOverflow:
        http://stackoverflow.com/users/7561347/burmese-pythis

Quora:
    

            https://www.quora.com/profile/Hilar-Ak-1

Experienced Odoo developer, Functional Consultant.



Hilar AK
09.02.17, 23:21

Hi,

<t t-set="allowance_tot" t-if="p.category_id.name == 'Indemnite' and p.total != ''" t-value="allowance_tot+p.total"/>

here you are adding None+float, allowance_tot has no value.

If you need to set allowance , try these steps:-

<t t-set="allowance" t-value="get_allowance() or 0"/> try to put this code before your loop starts .

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