Commit 7121999
committed
fix(spp_statistic): fix unreachable privacy service delegation
Empty recordsets in Odoo are falsy, so checking `if privacy_service:`
would always evaluate to False even when the model is installed.
Changed to `if privacy_service is not None:` to correctly detect
when the spp.metrics.privacy model is available.1 parent d70ce28 commit 7121999
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
0 commit comments