Created
May 7, 2021 17:57
-
-
Save ofelix03/47e1f9e3623056918d96e361edc7a8f4 to your computer and use it in GitHub Desktop.
extract-from-line-52-to-63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cheques = self.search( | |
| [ | |
| ("reference", "=", vals["reference"]), | |
| ("acc_no", "=", vals["acc_no"]), | |
| ("state", "!=", "cancelled"), | |
| ] | |
| ) | |
| if cheques: | |
| raise ValidationError( | |
| _("This cheque/Slip has already been recorded") | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment