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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sale_margin_percentage/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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")

@api.depends("price_subtotal", "product_uom_qty", "purchase_price")
def _compute_margin(self):
Expand Down
Loading