diff options
| author | Joseph Caburnay <jcb@odoo.com> | 2019-09-11 09:51:52 +0000 |
|---|---|---|
| committer | Joseph Caburnay <jcb@odoo.com> | 2019-09-12 08:21:44 +0000 |
| commit | 25b7494e776c3675554ce9bd0d4f133e1ceeae4b (patch) | |
| tree | 64bd9946fe2317df54a1062b96a65979dbc42417 /addons/point_of_sale/tests | |
| parent | 7965c890c4e6f6562d265e1605fef3384b00316e (diff) | |
[FIX] point_of_sale: make the email button behave as the invoice
This commit makes the email button to behave consistently with the
invoice button. Basically, if there is no selected customer when
invoicing, the UI should direct the user to select a customer. This
behaviour is implemented with the email button with special check on the
validity of the customer email.
closes odoo/odoo#36681
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/tests')
| -rw-r--r-- | addons/point_of_sale/tests/test_frontend.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/point_of_sale/tests/test_frontend.py b/addons/point_of_sale/tests/test_frontend.py index da6dcd43515..0961acadeab 100644 --- a/addons/point_of_sale/tests/test_frontend.py +++ b/addons/point_of_sale/tests/test_frontend.py @@ -265,6 +265,11 @@ class TestUi(odoo.tests.HttpCase): }) env.ref('base.res_partner_18').property_product_pricelist = excluded_pricelist + partner = self.env['res.partner'].create({ + 'name': 'TEST PARTNER', + 'email': 'test@partner.com', + }) + # set the company currency to USD, otherwise it will assume # euro's. this will cause issues as the sales journal is in # USD, because of this all products would have a different |
