Browse Source
Merge pull request #135 from zuher83/13.0
[FIX] base_accounting_kit: credit_limit error self.type not in sale.order model
pull/145/head
Cybrosys Technologies
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
base_accounting_kit/models/credit_limit.py
|
@ -78,8 +78,7 @@ class SaleOrder(models.Model): |
|
|
def _action_confirm(self): |
|
|
def _action_confirm(self): |
|
|
"""To check the selected customers due amount is exceed than |
|
|
"""To check the selected customers due amount is exceed than |
|
|
blocking stage""" |
|
|
blocking stage""" |
|
|
pay_type = ['out_invoice', 'out_refund', 'out_receipt'] |
|
|
if self.partner_id.active_limit \ |
|
|
if self.partner_id.active_limit and self.type in pay_type \ |
|
|
|
|
|
and self.partner_id.enable_credit_limit: |
|
|
and self.partner_id.enable_credit_limit: |
|
|
if self.due_amount >= self.partner_id.blocking_stage: |
|
|
if self.due_amount >= self.partner_id.blocking_stage: |
|
|
if self.partner_id.blocking_stage != 0: |
|
|
if self.partner_id.blocking_stage != 0: |
|
|