Snippets

ERP Ukraine Odoo Studio Tutorial: Check Credit Limit Snippet

You are viewing an old version of this snippet. View the current version.
Revised by Bohdan Lisnenko c9e351b
if records.filtered(lambda x: x.partner_id.commercial_partner_id.total_due > x.partner_id.commercial_partner_id.x_studio_credit_limit):
    raise Warning("Перевищено кредитний ліміт!")
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.