The issue occurs when a user tries to download an attachment for a SO. So, when trying to retrieve digital purchases from the `account.move.line` object in `download_attachment` method because there is a difference in the method call and method definition. see: https://github.com/odoo/odoo/blob/7cd397b81f68ecac2fda5119cae1e1ce4dbfa8cf/addons/website_sale_digital/models/account_move_line.py#L9-L10 https://github.com/odoo/odoo/blob/7cd397b81f68ecac2fda5119cae1e1ce4dbfa8cf/addons/website_sale_digital/controllers/main.py#L60 sentry-4267581957 closes odoo/odoo#126318 X-original-commit: f6b585a182b0ad7d0a115b295481ef2d07f54169 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>