[FIX] Doc: Invalid example in compute doc
This commit is contained in:
parent
2346a51ed0
commit
323af2c259
|
@ -376,9 +376,9 @@ it uses the values of other *fields*, it should specify those fields using
|
||||||
def _apply_discount(self):
|
def _apply_discount(self):
|
||||||
for record in self:
|
for record in self:
|
||||||
# compute actual discount from discount percentage
|
# compute actual discount from discount percentage
|
||||||
discount = self.value * self.discount
|
discount = record.value * record.discount
|
||||||
self.discount_value = discount
|
record.discount_value = discount
|
||||||
self.total = self.value - discount
|
record.total = record.value - discount
|
||||||
|
|
||||||
Related fields
|
Related fields
|
||||||
''''''''''''''
|
''''''''''''''
|
||||||
|
|
Loading…
Reference in New Issue