Closed pedrobaeza closed 10 months ago
It's already used successfully in account
, which I already generalize a bit:
Being needed also in sale
, purchase
, and so on, I'm extracting it and generalizing for not repeating code. If any patch is needed, then we only need to touch in one place.
Merging then and next step is to test it replacing in account
the code by the call to this.
Hi @pedrobaeza, thanks for extracting this method.
It is sadly not working for sale order lines because sale_order_line
has no line analytic_account_id
. This column is on the related sale.order. Any idea on how to integrate this in the sale
module migration?
See my comment here: https://github.com/OCA/OpenUpgrade/pull/4240#discussion_r1409470410
Convert v15 analytic tags with distributions to v16 analytic distributions.
Extracted and adapted from Viindoo original queries in their migration scripts.
@Tecnativa