Skip to content

purchase_landed cost: product standard prices are never updated #2834

@cubells

Description

@cubells

Hi all there:

I've seen purchase_landed_cost code and I've noticed that in migration to version 13.0 and 16.0 some piece of code is missed and method _product_price_update never is run: https://github.com/OCA/purchase-workflow/blob/16.0/purchase_landed_cost/models/purchase_cost_distribution.py#L257

So standard prices of products in a distribution are not updated.

In v12.0 this method is run when user make as done the distribution: https://github.com/OCA/purchase-workflow/blob/12.0/purchase_landed_cost/models/purchase_cost_distribution.py#L263-L284

An when user cancel distribution: https://github.com/OCA/purchase-workflow/blob/12.0/purchase_landed_cost/models/purchase_cost_distribution.py#L292-L320

This code is not present in 13.0 and 16.0 versions

There is no tests to check if product standard prices are updated in both versions.

Is this possible?

I ping to developers that done migration PRs and to Pedro Baeza that approved these prs.

@ernestotejeda @carolinafernandez-tecnativa @pedrobaeza

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions