[FIX] Doc: Invalid example in compute doc

This commit is contained in:
Tanguy Charlier 2016-03-11 16:49:23 +01:00
parent 2346a51ed0
commit 323af2c259
1 changed files with 3 additions and 3 deletions

View File

@ -376,9 +376,9 @@ it uses the values of other *fields*, it should specify those fields using
def _apply_discount(self):
for record in self:
# compute actual discount from discount percentage
discount = self.value * self.discount
self.discount_value = discount
self.total = self.value - discount
discount = record.value * record.discount
record.discount_value = discount
record.total = record.value - discount
Related fields
''''''''''''''