Browse Source

Add test for shipping address with empty name

pull/238/head
Yannick Vaucher 9 years ago
parent
commit
205ccfe44c
  1. 12
      partner_firstname/tests/test_empty.py

12
partner_firstname/tests/test_empty.py

@ -57,10 +57,18 @@ class UserCase(CompanyCase, MailInstalled):
class AddressCase(TransactionCase):
"""Test ``res.partner`` when it is a address."""
def test_new_empty_address(self):
"""Create an empty partner."""
def test_new_empty_invoice_address(self):
"""Create an invoice patner without name."""
self.original = self.env["res.partner"].create({
"is_company": False,
"type": 'invoice',
"lastname": "",
"firstname": ""})
def test_new_empty_shipping_address(self):
"""Create an shipping patner without name."""
self.original = self.env["res.partner"].create({
"is_company": False,
"type": 'delivery',
"lastname": "",
"firstname": ""})
Loading…
Cancel
Save