Odoo Help

Welcome!

This community 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.

0

Field added to account.invoice but when user assigns 0.00 or 0 it is updated into database to 10.0

By
E.M.
on 2/14/16, 3:14 PM 305 views

I have added a global discount rate to account.invoice.

This is the field definition:

        early_payment_discount_rate = fields.Float(
                string = 'Discount Rate (%)',
                store = True,
                translate = True,
                help = "Early payment discount applied to total (before taxes).",
        )



Field works fine, if changed I can see change propagated in the GUI and in the database record, but for some reason if I change the value to 0.00 or to 0 I got a 10.0 value in the database.

Does anyone know why this could be happening?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/14/16, 3:14 PM
Seen: 305 times
Last updated: 2/14/16, 3:14 PM