Snippets

ERP Ukraine Odoo Studio Tutorial: Check Credit Limit Snippet

Updated by Bohdan Lisnenko

File server_action.py Modified

  • Ignore whitespace
  • Hide word diff
-if records.filtered(lambda x: x.partner_id.commercial_partner_id.total_due > x.partner_id.commercial_partner_id.x_studio_cred_limit):
+if records.filtered(lambda x: x.partner_id.commercial_partner_id.total_due > x.partner_id.commercial_partner_id.x_studio_cr_limit):
     raise Warning("Перевищено кредитний ліміт!")
Updated by Bohdan Lisnenko

File server_action.py Modified

  • Ignore whitespace
  • Hide word diff
-if records.filtered(lambda x: x.partner_id.commercial_partner_id.total_due > x.partner_id.commercial_partner_id.x_studio_credit_limit):
+if records.filtered(lambda x: x.partner_id.commercial_partner_id.total_due > x.partner_id.commercial_partner_id.x_studio_cred_limit):
     raise Warning("Перевищено кредитний ліміт!")
Created by Bohdan Lisnenko

File server_action.py Added

  • Ignore whitespace
  • Hide word diff
+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.