diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index e7e1e1f51ad46c80cd1924587ec986eb05c00327..9fdf5e834eb6ecb6a696f504d241218b880553cd 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3874,6 +3874,13 @@ class AccountMoveLine(models.Model): # Add the domain and order by in order to compute the cumulated balance in _compute_cumulated_balance return super(AccountMoveLine, self.with_context(domain_cumulated_balance=to_tuple(domain or []), order_cumulated_balance=order)).search_read(domain, fields, offset, limit, order) + @api.model + def fields_get(self, allfields=None, attributes=None): + res = super().fields_get(allfields, attributes) + if res.get('cumulated_balance'): + res['cumulated_balance']['exportable'] = False + return res + @api.depends_context('order_cumulated_balance', 'domain_cumulated_balance') def _compute_cumulated_balance(self): if not self.env.context.get('order_cumulated_balance'):