diff options
| author | tbe-odoo <tbe@odoo.com> | 2017-08-25 17:51:32 +0200 |
|---|---|---|
| committer | tbe-odoo <tbe@odoo.com> | 2017-08-29 17:13:58 +0200 |
| commit | 83fdc63b68162682f2d3391d4b0bd24a49db1817 (patch) | |
| tree | 7d0504ea67c693c37f4c44321850f2f3d2ac973f /addons/payment/models | |
| parent | f74111f79f49edffa463043360090fdb9237819d (diff) | |
[IMP] payment: Fix crash on install
- Fixed a crash when installing payment module.
- Set a more specific css selector to display error on payment form where required input are empty
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 8393170c2be..5a852ffa96f 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -428,7 +428,7 @@ class PaymentOption(models.Model): image_resize_images(vals) if 'image' in vals: - self.image_payment_form = image_resize_image(vals['image'], size=(45,30)) + vals['image_payment_form'] = image_resize_image(vals['image'], size=(45,30)) return super(PaymentOption, self).create(vals) @@ -436,7 +436,7 @@ class PaymentOption(models.Model): def write(self, vals): image_resize_images(vals) if 'image' in vals: - self.image_payment_form = image_resize_image(vals['image'], size=(45,30)) + vals['image_payment_form'] = image_resize_image(vals['image'], size=(45,30)) return super(PaymentOption, self).write(vals) class PaymentTransaction(models.Model): |
