Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hello, I am using v9 and I am trying to apply global discount in customer invoices. I am trying the user solution given here:
I have created a float field called x_global_invoice_discount , I am displaying that field in the account.invoice form and I have placed the method inside the file "/addons/account/models/account_invoice.py" in the class AccountInvoice but I am getting "undifiend object 'apply.discount' in model 'account.invoice'"
If i place the code in the file "/addons/sale/sale.py" in the class AccountInvoice then no error, but nothing happens. I am tailing the log file and the onchange event doesn't trigger :/
I am new in odoo and in python as I was writing in php and java so far... some help will be much appreciated!
The goal is: The user will add all the products he wants, then he will input the discount (eg 10%) and the value of that field should be applied in the discount field in the invoice lines. Finally the order total should be updated. In a most advanced version of this the discount should be put in each customer and applied automatically in the invoice lines.
I can provide additional info and screenshots if needed.
Thank you for your answer Ermin. I have tried quite a few modules but unfortunately the v8 and v7modules don't work on v9. The v9 module you are suggesting does not calculate the discount on the product lines also it is a paid one and I am not willing to pay 25E for such a simple task, moreover it has only 1-star rating.
I am a programmer myself but unfamiliar with python and odoo so I am asking for some help with the code :)
There is an app available for 9.0: https://www.odoo.com/apps/modules/9.0/sale_invoice_global_discount/
and this one might help you https://www.odoo.com/apps/modules/8.0/sale_discount_total/ or this https://www.odoo.com/apps/modules/8.0/sale_global_three_discounts/
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
|Asked: 7/2/16, 9:16 AM|
|Seen: 828 times|
|Last updated: 7/3/16, 5:42 AM|