OCA / openupgradelib

A library with support functions to be called from Odoo migration scripts.
GNU Affero General Public License v3.0
85 stars 171 forks source link

[FIX] fill_analytic_distribution get analytic account column #360

Closed remi-filament closed 6 months ago

remi-filament commented 6 months ago

When trying to use fill_analytic_distribution for migrating purchase module (https://github.com/OCA/OpenUpgrade/pull/4303), I got the following error : column line.analytic_account_id does not exist

The problem here is that the column is named account_analytic_id... I then added a named parameter to fill_analytic_distribution() function to be able to set the column name holding analytic account id as done for the other columns related to analytic distribution

remi-filament commented 6 months ago

Thanks @pedrobaeza