This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH fk_actions ( code, action ) AS ( | |
| VALUES ( 'a', 'error' ), | |
| ( 'r', 'restrict' ), | |
| ( 'c', 'cascade' ), | |
| ( 'n', 'set null' ), | |
| ( 'd', 'set default' )), | |
| fk_list AS ( | |
| SELECT pg_constraint.oid as fkoid, conrelid, confrelid as parentid, | |
| conname, relname, nspname, | |
| fk_actions_update.action as update_action, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git l10n_uk_reports/models/hmrc_service.py l10n_uk_reports/models/hmrc_service.py | |
| index c1927802e68..e5fe7db0a97 100644 | |
| --- l10n_uk_reports/models/hmrc_service.py | |
| +++ l10n_uk_reports/models/hmrc_service.py | |
| @@ -129,7 +129,7 @@ class HmrcService(models.AbstractModel): | |
| if remote_needed: #no need when on a private network | |
| gov_dict['Gov-Client-Public-IP'] = urls.url_quote(remote_address) | |
| gov_dict['Gov-Client-Public-Port'] = urls.url_quote(str(environ.get('REMOTE_PORT'))) | |
| - if self.env.user.totp_enabled: | |
| + if 'totp_enabled' in self.env.user._fields and self.env.user.totp_enabled: |
OlderNewer