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.
In the contact form, I notice a field named "Credit limit" in the Accounting tab. But if I set a value, nothing happens when I override this limit during a sale operation? How can I set up a blocking mechanism in the sales order validation?
You need to add a condition in the first transitions of the sales workflow: i.e. Credit limit > Total receivable (the amount the customer owes you) + Amount of the new SO.
So open the sales workflow (either from the developer drop-down menu, or from Settings > Technical > Workflows > Workflows). Then, add the following condition in the two
order_confirm transitions (between
partner_id.credit_limit > partner_id.credit + amount_total (replacing
True). Use the Diagram view to find them in an easier way.
From now on, everytime you try to validate a sales order, the SO status remains on "Quotation" if the sum of the amount the customer owes you and the new SO amount is higher than his credit limit.
In the "Getting Started with OpenERP" chapter of the V7 documentation I found the following statement:
"if one of your accountants puts a customer on credit hold, then that will immediately block any other action related to that companyâs credit (such as sales or delivery)."
To test that I putted a credit limit of "0" to a customer. But I still can create and confirm a sales order, deliver goods and create and validate an invoice for this customer. Why is that?
Many thanks Frederic, however I changed the formula slightly to
"partner_invoice_id.credit_limit > partner_invoice_id.credit + amount_total"
Reason is we give give credit to the company not each employee of that company!
We use OpenERP this way -
customer is "Fred Blogs" who works for "Smiths Industries" this person has 0 Credit
Invoice Address is "Smiths Industries" who has a credit of XXX GBP
This way we track who placed the order and can communicate with that individual, but all invoices go the company
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: 2/7/13, 6:33 AM|
|Seen: 12125 times|
|Last updated: 10/13/17, 3:57 AM|