Skip to content

Commit

Permalink
Merge PR #1565 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by sebastienbeau
  • Loading branch information
shopinvader-git-bot committed Dec 1, 2024
2 parents 0b031e8 + ff4ba44 commit e70a6bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shopinvader/services/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def _validator_create(self):
"zip": {"type": "string", "required": True, "empty": False},
"city": {"type": "string", "required": True, "empty": False},
"phone": {"type": "string", "nullable": True, "empty": False},
"mobile": {"type": "string", "nullable": True, "empty": False},
"email": {"type": "string", "required": False, "nullable": True},
"state": {
"type": "dict",
Expand Down Expand Up @@ -195,6 +196,7 @@ def _json_parser(self):
"zip",
"city",
"phone",
"mobile",
"email",
"function",
"opt_in",
Expand Down
1 change: 1 addition & 0 deletions shopinvader/services/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def _validator_create_non_required_address_keys(self):
"street2",
"zip",
"city",
"mobile",
"phone",
"country",
]
Expand Down
1 change: 1 addition & 0 deletions shopinvader/tests/test_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def setUpClass(cls):
"street": "Rue du jardin",
"zip": "43110",
"city": "Aurec sur Loire",
"mobile": "555555555",
"phone": "0485485454",
"country": {"id": cls.env.ref("base.fr").id},
}
Expand Down
1 change: 1 addition & 0 deletions shopinvader/tests/test_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def setUp(self, *args, **kwargs):
"street": "Rue du jardin",
"zip": "43110",
"city": "Aurec sur Loire",
"mobile": "555555555",
"phone": "0485485454",
"country": {"id": self.env.ref("base.fr").id},
"is_company": False,
Expand Down

0 comments on commit e70a6bd

Please sign in to comment.