Skip to content

Conversation

@john-herholz-dt
Copy link

Simple migration, no changes.

@john-herholz-dt john-herholz-dt changed the title [MIG][17.0] sale_automatic_workflow: Migration to 17.0 [MIG][17.0] sale_automatic_workflow_payment_mode: Migration to 17.0 Jan 11, 2024
@rousseldenis
Copy link
Contributor

/ocabot migration sale_automatic_workflow_payment_mode

@john-herholz-dt Thanks for this. Don't forget to add dependency PR in this PR's description to help reviewers.

@rousseldenis
Copy link
Contributor

@john-herholz-dt Could you rebase ?

@john-herholz-dt john-herholz-dt force-pushed the 17.0-mig-sale_automatic_workflow_payment_mode branch from 693b7f0 to 3e80632 Compare June 17, 2024 14:51
@john-herholz-dt john-herholz-dt force-pushed the 17.0-mig-sale_automatic_workflow_payment_mode branch 2 times, most recently from 0b33e83 to d31eed7 Compare July 14, 2024 07:37
@john-herholz-dt
Copy link
Author

@rousseldenis I did a rebase. The check failure does not seem to be related to this PR.

@john-herholz-dt
Copy link
Author

@rousseldenis last time I said "check failure has nothing to do with this PR". I checked again and sure the failure is one of the tests here.
But I don't understand it.
I manually checked the behaviour on runboat and everything worked.

Any suggestion how to solve the test?

@rousseldenis
Copy link
Contributor

@john-herholz-dt The error is related to this PR.

See : https://github.com/OCA/sale-workflow/actions/runs/10438425127/job/28905725687?pr=2892#step:8:380

The 'done' state has been removed from Odoo core. The equivalent is [("state", "=", "sale"), ("locked", "=", True)]

@john-herholz-dt
Copy link
Author

Hello @rousseldenis ,

Sorry I should have given more context: It is the stock.picking record which seems to not be validated on the test_full_automatic workflow.

I checked it manually with the runbot and the picking was done.

  File "/__w/sale-workflow/sale-workflow/sale_automatic_workflow_payment_mode/tests/test_automatic_workflow_payment_mode.py", line 100, in test_full_automatic
    self.assertEqual(picking.state, "done")
AssertionError: 'assigned' != 'done'

@rousseldenis
Copy link
Contributor

Oops mixed models.

Maybe a module of this repo changed the behavior

@john-herholz-dt john-herholz-dt force-pushed the 17.0-mig-sale_automatic_workflow_payment_mode branch 2 times, most recently from 896bce7 to 90ec8e2 Compare October 15, 2024 17:13
@john-herholz-dt
Copy link
Author

@rousseldenis I was working again on it and tests are passing.
The module really did have some check for pickings, which failed previously.
I removed the check as it is not part of this module and there is also now a separate module sale_automatic_workflow_stock

@rousseldenis
Copy link
Contributor

@john-herholz-dt Could you move migration changes in migration commit (and not in pre-commit one)? Thanks

sonhd and others added 17 commits October 16, 2024 11:29
...payment when no fixed journal and remove sale_workflow_process
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/pt_BR/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/it/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/it/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/
Currently translated at 100.0% (4 of 4 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/it/
Currently translated at 100.0% (4 of 4 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/it/
Currently translated at 100.0% (4 of 4 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_automatic_workflow_payment_mode/hr/
@john-herholz-dt john-herholz-dt force-pushed the 17.0-mig-sale_automatic_workflow_payment_mode branch from 90ec8e2 to 83c1867 Compare October 16, 2024 09:39
@john-herholz-dt
Copy link
Author

@rousseldenis Is it better now?

If so, can you help me a bit please:
When I migrate things and do the pre-commit stuff, it will tell me wrong manifest version if I keep it.
Nevertheless the manifest change should be in the migration commit, if I understand you correctly.

What am I missing here, that I keep the error in the pre-commit step?

@rousseldenis
Copy link
Contributor

@rousseldenis Is it better now?

If so, can you help me a bit please: When I migrate things and do the pre-commit stuff, it will tell me wrong manifest version if I keep it. Nevertheless the manifest change should be in the migration commit, if I understand you correctly.

What am I missing here, that I keep the error in the pre-commit step?

That's because you forgot --no-verifyoption in the procedure:

image

@john-herholz-dt
Copy link
Author

I get the error two lines above in the documentation at: pre-commit run -a

but anyway, the PR should be fine now, isn't it?

@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). 🤖


def setUp(self):
super(TestAutomaticWorkflowPaymentMode, self).setUp()
super().setUp()
Copy link
Contributor

Choose a reason for hiding this comment

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

@john-herholz-dt Could you put that change in migration commit too ? Thanks

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 10, 2025
@flotho
Copy link
Member

flotho commented Aug 21, 2025

Hi @john-herholz-dt , any chance to rebase ?

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 24, 2025
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.