diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 663ad11a4f9..e1fcf38d1d6 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1584,7 +1584,7 @@ class AccountMove(models.Model): # Shortcut to load the demo data. # Doing line.account_id triggers a default_get(['account_id']) that could returns a result. # A section / note must not have an account_id set. - if not line._cache.get('account_id') and not line.display_type: + if not line._cache.get('account_id') and not line.display_type and not line._origin: line.account_id = line._get_computed_account() if not line.account_id: if self.is_sale_document(include_receipts=True):