summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-03-16 15:21:06 +0100
committerChristophe Simonis <chs@odoo.com>2016-03-16 15:30:03 +0100
commita34d49606956d1ad12a86c928eefe1468a512866 (patch)
tree863c6e8e4b9f3ede0764c451bb18ef2fad08f7c8 /doc
parent0ec5456e633ada5b55ef4d711a2cd3073391ef9d (diff)
parent1431ba2f9b1c58d3b33ae69bc6d81864f885b666 (diff)
[MERGE] forward port of branch saas-6 up to 1431ba2
Also include 2939800ed438505be9c919d4edca0ce624e6bf8e which seems to have been forgotten during previous forward-ports
Diffstat (limited to 'doc')
-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
''''''''''''''