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][IMP] stock_request_purchase: Cancel stock request when unlinking related purchase order lines #2152

Draft
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

carlos-lopez-tecnativa
Copy link

Before this commit, when a purchase order line was unlinked, the stock request remained open. After this commit, related stock requests are canceled.

@Tecnativa TT50615

@victoralmau @pedrobaeza could you please take a look?

@pedrobaeza pedrobaeza added this to the 14.0 milestone Sep 2, 2024
@@ -12,6 +12,15 @@ class PurchaseOrderLine(models.Model):
comodel_name="stock.request", string="Stock Requests", copy=False
)

def unlink(self):
Copy link
Member

Choose a reason for hiding this comment

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

Include docstring about the general what, the whys, and so on.

Choose a reason for hiding this comment

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

done

…ated purchase order lines

Before this commit, when a purchase order line was unlinked, the stock request remained open. After this commit, related stock requests are canceled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants