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

14.0 fix sale automatic workflow #2493

Open
wants to merge 3 commits into
base: 14.0
Choose a base branch
from

Conversation

ChrisOForgeFlow
Copy link
Contributor

Reference: #1514

@@ -5,7 +5,7 @@

{
"name": "Sale Automatic Workflow",
"version": "14.0.1.3.3",
"version": "14.0.1.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't change this. Automatically changed by ocabot

@api.model
def default_get(self, fields):
res = super(SaleOrder, self).default_get(fields)
if "workflow_process_id" in fields:
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be :

Suggested change
if "workflow_process_id" in fields:
if "workflow_process_id" in fields and "workflow_process_id" not in res:

@@ -46,12 +49,12 @@ def _do_send_order_confirmation_mail(self, sale):
sale._send_order_confirmation_mail()

@api.model
def _validate_sale_orders(self, order_filter):
def _validate_sale_orders(self, order_filter, auto_commit=False, limit=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

To avoid passing the auto_commit parameter at each function, shouldn't it be better to get the auto_commit value from the sale order workflow directly?

So in the iteration loop on sales:

sale.workflow_process_id.auto_commit

@ChrisOForgeFlow ChrisOForgeFlow force-pushed the 14.0-fix-sale_automatic_workflow branch from efa24d7 to 8f8754a Compare September 27, 2023 20:41
@JordiBForgeFlow JordiBForgeFlow force-pushed the 14.0-fix-sale_automatic_workflow branch 2 times, most recently from 1f329b9 to f05a5c7 Compare January 9, 2024 10:44
@rousseldenis
Copy link
Contributor

/ocabot rebase

@OCA-git-bot
Copy link
Contributor

@rousseldenis The rebase process failed, because command git push --force Kencove tmp-pr-2493:14.0-fix-sale_automatic_workflow failed with output:

remote: Permission to Kencove/sale-workflow.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/Kencove/sale-workflow/': The requested URL returned error: 403

@rousseldenis
Copy link
Contributor

@ChrisOForgeFlow

@rousseldenis
Copy link
Contributor

@LoisRForgeFlow

@LoisRForgeFlow
Copy link
Contributor

I was not involved in this one. @AlexPForgeFlow maybe you have some insight?

@AlexPForgeFlow
Copy link

@rousseldenis were you just trying to rebase or is there any pending review or change to do?

@rousseldenis
Copy link
Contributor

@rousseldenis were you just trying to rebase or is there any pending review or change to do?

Yes a rebase should be great.

@rousseldenis
Copy link
Contributor

@AlexPForgeFlow

@AlexPForgeFlow
Copy link

@rousseldenis I have no permissions to push on origin branch, I have asked @JordiBForgeFlow

@JordiBForgeFlow JordiBForgeFlow force-pushed the 14.0-fix-sale_automatic_workflow branch from f05a5c7 to b6972cb Compare February 12, 2025 16:38
@JordiBForgeFlow
Copy link
Member

@rousseldenis Rebased!

@rousseldenis
Copy link
Contributor

@JordiBForgeFlow Could you check tests ?

@AlexPForgeFlow
Copy link

@rousseldenis I will take a look!

@AlexPForgeFlow
Copy link

Hi @rousseldenis ! I have open a new PR #3587 to continue this one and get test fixed

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.

8 participants