Skip to content

Commit

Permalink
[12.0][FIX] stock_analytic: moves with different analytic accounts
Browse files Browse the repository at this point in the history
should not be merged
  • Loading branch information
Jerther committed Feb 7, 2020
1 parent e666325 commit 99340cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stock_analytic/models/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ def _prepare_account_move_line(self, qty, cost,
})
return res

@api.model
def _prepare_merge_moves_distinct_fields(self):
fields = super()._prepare_merge_moves_distinct_fields()
fields.append('analytic_account_id')
return fields


class StockMoveLine(models.Model):
_inherit = "stock.move.line"
Expand Down

0 comments on commit 99340cf

Please sign in to comment.