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

[IMP] sale_margin_percentage: make purchase price editable I#26616 #1676

Merged

Conversation

xmglord
Copy link
Contributor

@xmglord xmglord commented Jul 15, 2024

This module was originally created in v11 for a specific customer, and
the purchase price needed to be non-editable for some reason. Now the
purchase price does not need to be non-editable. If it is needed, it
should be managed in the view because the field is natively editable.

@luisg123v
Copy link
Contributor

Since this customer is now in v15, the purchase price does not need to be non-editable.

I don't see the cause-effect relation here.

@xmglord xmglord force-pushed the 15.0-editable_purchase_price-xmglord branch from 6681590 to c3de3df Compare July 15, 2024 21:40
@xmglord
Copy link
Contributor Author

xmglord commented Jul 15, 2024

Since this customer is now in v15, the purchase price does not need to be non-editable.

I don't see the cause-effect relation here.

It was not ready :c
Now please review @luisg123v

Copy link
Contributor

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

Update PR's description to match commit's description

@@ -7,7 +7,7 @@ class SaleOrderLine(models.Model):
margin_threshold = fields.Float(
default=lambda self: self.env.user.company_id.margin_threshold, help="Limit margin set in sales configuration"
)
purchase_price = fields.Float(readonly=True, help="Price purchase of product")
purchase_price = fields.Float(help="Price purchase of product")
Copy link
Contributor

Choose a reason for hiding this comment

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

Just remove inheritance

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

This module was originally created in v11 for a specific customer, and
the purchase price needed to be non-editable for some reason. Now the
purchase price does not need to be non-editable. If it is needed, it
should be managed in the view because the field is natively editable.
@xmglord xmglord force-pushed the 15.0-editable_purchase_price-xmglord branch from c3de3df to 773ac6e Compare July 15, 2024 22:22
@xmglord xmglord requested a review from luisg123v July 15, 2024 22:22
@luisg123v luisg123v merged commit 5d0d154 into Vauxoo:15.0 Jul 15, 2024
3 checks passed
@luisg123v luisg123v deleted the 15.0-editable_purchase_price-xmglord branch July 15, 2024 23:40
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