summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-03-16 16:11:12 +0100
committerChristophe Simonis <chs@odoo.com>2016-03-16 16:11:12 +0100
commit1a3e807fc2117a8d0be00e2ced9dbbae6f3589ba (patch)
tree3cb1bab30b4aae3368febd4356aad67f29b04136 /doc/reference
parentadddfa0d8b6f0b323c032409302b1b37d0b85601 (diff)
parent5238b77430bf42589a8772d55d9ebd8dde8e9cf5 (diff)
[MERGE] forward port of branch saas-7 up to 5238b77
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/orm.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst
index 62ef4a3d018..10ac368e950 100644
--- a/doc/reference/orm.rst
+++ b/doc/reference/orm.rst
@@ -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
''''''''''''''