Skip to content

Commit

Permalink
Add 'HasValidationErrors' to the NO_SEND_FIELDS collection
Browse files Browse the repository at this point in the history
Relates to freakboy3742#103 and https://community.xero.com/developer/discussion/12184472

If you get a contact (and probably other things), edit the dict and send it straight back, the Xero API will throw a bad request exception with the message "PostDataInvalidException: The element 'HasValidationErrors' was not recognised. Ensure the element name has the correct case and that there are no duplicate elements of the same name."
  • Loading branch information
MJMortimer committed Oct 11, 2015
1 parent 247ac59 commit c9a0183
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xero/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Manager(object):
)
NO_SEND_FIELDS = (
'UpdatedDateUTC',
'HasValidationErrors',
)
OPERATOR_MAPPINGS = {
'gt': '>',
Expand Down

0 comments on commit c9a0183

Please sign in to comment.