Skip to content
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
26e299c
[ADD] sale_margin_security: New module (#37)
chienandalu Jul 11, 2018
47490e1
[MIG] sale_margin_security: Migration to v12.0
sergio-teruel Nov 6, 2019
9102b13
[IMP] sale_margin_security: black, isort
sergio-teruel Feb 24, 2020
12c2e81
[MIG] sale_margin_security: Migration to v13.0
sergio-teruel Feb 24, 2020
44e8c12
[FIX] sale_margin_security: onchange product
chienandalu Jun 1, 2020
3892bd1
Added translation using Weblate (Spanish)
HaraldPanten Dec 16, 2020
ea05074
[IMP] : black, isort, prettier
rafamarpe Oct 23, 2022
044fbd9
[MIG] sale_margin_security: Migration to 14.0
rafamarpe Oct 23, 2022
d0caf80
[MIG] sale_margin_security: Migration to 15.0
CarlosRoca13 Nov 7, 2022
5b20f0d
Update translation files
weblate Nov 7, 2022
eb04f53
[IMP] sale_margin_security: pre-commit stuff
Jun 5, 2023
5affa70
[MIG] sale_margin_securtiy: Migration to 16.0
Jun 5, 2023
015ad48
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
ade3d41
[IMP] sale_margin_security: Avoid display margin in measures pivot view.
carlosdauden Nov 21, 2023
bf58cd5
Update translation files
weblate Dec 22, 2023
3bfd089
Translated using Weblate (Spanish)
Ivorra78 Dec 29, 2023
1bf11d7
Added translation using Weblate (Italian)
mymage Feb 1, 2024
e5a799b
[IMP] sale_margin_security: depend on product_cost_security
yajo Mar 8, 2024
e8c12ab
Update translation files
weblate Apr 6, 2024
ad2e367
Translated using Weblate (Italian)
mymage Apr 8, 2024
c7d2983
[IMP] sale_margin_security: pre-commit auto fixes
carlos-lopez-tecnativa Jan 29, 2025
e81c703
[MIG] sale_margin_security: Migration to version 17.0
carlos-lopez-tecnativa Jan 29, 2025
336c79d
[MIG] sale_margin_security: Migration to version 18.0
carlos-lopez-tecnativa Feb 20, 2025
2d71c35
[UPD] Update sale_margin_security.pot
Feb 21, 2025
a472d85
[BOT] post-merge updates
OCA-git-bot Feb 21, 2025
e6eaec5
Added translation using Weblate (Turkish)
bo-eska May 8, 2025
89b8904
Translated using Weblate (Turkish)
bo-eska May 8, 2025
9a57b36
[IMP] sale_margin_security: pre-commit auto fixes
dreispt Jan 4, 2026
248ab7c
[MIG] sale_margin_security: Migration to 19.0
dreispt Jan 4, 2026
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
Prev Previous commit
Next Next commit
[IMP] : black, isort, prettier
  • Loading branch information
rafamarpe authored and dreispt committed Jan 4, 2026
commit ea0507435c6c68e79eee32af9a4f901421dfddd2
10 changes: 5 additions & 5 deletions sale_margin_security/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class SaleOrderLine(models.Model):

def write(self, vals):
"""In sale_margin, when the line already exists, the purchase_price
is computed with the product onchange method, so if the user doesn't
have the field available in the view it's not going to get the right
price. This should be fixed in v13 with the new compute fields
possibilities.
"""
is computed with the product onchange method, so if the user doesn't
have the field available in the view it's not going to get the right
price. This should be fixed in v13 with the new compute fields
possibilities.
"""
# TODO: Check if this can be done through computed writable field
res = super().write(vals)
if not vals.get("product_id") or "purchase_price" in vals:
Expand Down