Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] delivery_purchase: Migration to version 16.0 #755

Merged
merged 10 commits into from
May 29, 2024

Conversation

carolinafernandez-tecnativa
Copy link
Contributor

@carolinafernandez-tecnativa carolinafernandez-tecnativa commented Jan 5, 2024

@Tecnativa
TT46563

@pedrobaeza @victoralmau

@carolinafernandez-tecnativa carolinafernandez-tecnativa marked this pull request as draft January 5, 2024 15:08
@carolinafernandez-tecnativa
Copy link
Contributor Author

Hi @glitchov
I have checked and the improvement added in this commit is not compatible with delivery_purchase.

9c37fc2

The problem are with test test_put_in_pack_from_pick_with_wizard and test_put_in_pack_from_pick_without_wizard.
I added in setUpClass this code in order to fix this error message: "odoo.exceptions.UserError: There is no matching vendor price to generate the purchase order for product Test Product (no vendor defined, minimum quantity not reached, dates not valid, ...). Go on the product form and complete the list of vendors."

    seller = cls.env['product.supplierinfo'].create({
        'partner_id': cls.partner.id,
        'price': 12.0,
    })
    cls.product = cls.env["product.product"].create(
        {"name": "Test Product", "type": "product",
        'seller_ids': [(6, 0, [seller.id])],}
    )

After this, in both test when is trying to get pick_move = ship_move.move_orig_ids[0], move_orig_ids got a list index out of range,could you please check it? Thanks!!

@pedrobaeza do yo have any idea where this issue came from?

@pedrobaeza
Copy link
Member

Is the same problem without having this module?

@carolinafernandez-tecnativa
Copy link
Contributor Author

Is the same problem without having this module?

Check now, if I comment both test it is working, so the problem is this improvement added on stock_picking_delivery_link 9c37fc2

@pedrobaeza
Copy link
Member

No, that's not the proof. Your module may be impacting on the other. You have to make a dummy PR without noticeable changes to see if CI is red. If it's green, then the module being added here is impacting the other.

@victoralmau
Copy link
Member

Can you continue with this migration?

@pedrobaeza
Copy link
Member

/ocabot migration delivery_purchase

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone May 17, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request May 17, 2024
32 tasks
@pedrobaeza pedrobaeza force-pushed the 16.0-mig-delivery_purchase branch 14 times, most recently from e655420 to bae852d Compare May 17, 2024 20:10
@pedrobaeza pedrobaeza force-pushed the 16.0-mig-delivery_purchase branch from bae852d to 77b9904 Compare May 17, 2024 20:15
Ernesto Tejeda and others added 9 commits May 24, 2024 14:00
Co-authored-by: Pedro M. Baeza <pedro.baeza@gmail.com>
Co-authored-by: cubells <vicent@vcubells.net>

[UPD] Update delivery_purchase.pot
Auto-create (delivery) order lines when picking are marked as done

TT45656
…rchase order header

In v13 it already appeared in the header, and in v14 by mistake it had been moved
to the "Other information" tab because that was where the company_id field was
currently located.
The carrier price is now hidden if there is no carrier set (to avoid confusion).

TT45656
If we have a delivery price of 10 on the order, it is expected to show
10 on the picking (without needing to be set to that amount when set the
picking as done).

TT45656
TT46563

Co-authored-by: carolinafernandez-tecnativa
@victoralmau victoralmau force-pushed the 16.0-mig-delivery_purchase branch from 77b9904 to 33acd53 Compare May 24, 2024 12:00
@pedrobaeza
Copy link
Member

@victoralmau @carolinafernandez-tecnativa the other patch seems still not enough

Avoid test errors if the purchase module is installed

Related to OCA@9924c78
Similar to OCA@3cce9bb

TT46563
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-755-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit df7716d into OCA:16.0 May 29, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 79dc451. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 16.0-mig-delivery_purchase branch May 29, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants