diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-03-16 13:15:30 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-03-16 13:15:30 +0100 |
| commit | 1431ba2f9b1c58d3b33ae69bc6d81864f885b666 (patch) | |
| tree | 70452eec3e29c34c8dcb838cd60abfd6a87b4835 /doc/reference | |
| parent | b59be87a181eb795019880b803de655cea1ef673 (diff) | |
| parent | 7b7f3fa76a822f05283e36b40bdbc58793f84570 (diff) | |
[MERGE] forward port of branch 8.0 up to 7b7f3fa
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/orm.rst | 6 |
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 '''''''''''''' |
