Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[account_mtd_vat] response_from_hmrc field ends up blank in 'redirect_uri is invalid' scenario #14

Open
Nick-OpusVL opened this issue Jun 20, 2019 · 0 comments

Comments

@Nick-OpusVL
Copy link
Contributor

(Pdb) l
 52  	        if response.ok:
 53  	            return {'url': url, 'type': 'ir.actions.act_url', 'target': 'self', 'res_id': record.id}
 54  	        else:
 55  	            response_token = json.loads(response.text)
 56  	            import pdb ; pdb.set_trace()
 57  ->	            error_message = self.env['mtd.display_message'].construct_error_message_to_display(
 58  	                url=url,
 59  	                code=response.status_code,
 60  	                response_token=response_token
 61  	            )
 62  	            record.response_from_hmrc = error_message
(Pdb) response.text
u'{"error":"invalid_request","error_description":"redirect_uri is invalid"}'

Found in 8.0, possibly in all

@Nick-OpusVL Nick-OpusVL transferred this issue from OpusVL/odoo-account-extras Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant