diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-02 08:56:20 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-02 08:56:20 +0700 |
| commit | 0ecd24dd099295d664c3e80f064e8276395a8f89 (patch) | |
| tree | 0f36fe302cc1e8fdb228b1e4ab54b461e46d7fb5 /indoteknik_custom/models/purchase_pricelist.py | |
| parent | 5446eefa619906ba785d1f867fd828cce0d0748c (diff) | |
change message validation on purchase pricelist and sale order
Diffstat (limited to 'indoteknik_custom/models/purchase_pricelist.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_pricelist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index b7c3785a..86bb2f54 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -39,8 +39,8 @@ class PurchasePricelist(models.Model): ] domain.append(('id', '!=', price.id)) - massage="Product dan vendor yang anda gunakan sudah ada di purchase pricelist" existing_purchase = self.search(domain, limit=1) + massage="Ada duplikat product dan vendor, berikut data yang anda duplikat : \n" + str(existing_purchase.product_id.name) + " - " + str(existing_purchase.vendor_id.name) + " - " + str(existing_purchase.product_price) if existing_purchase: raise UserError(massage)
\ No newline at end of file |
