Issue 10182

Title
Missing contextual field for parent depends
Priority
bug
Status
resolved
Superseder
Wrong company.currency depend on on_change_request (issue 10183)
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2021-03-11.13:38:52 by ced, last changed 1 month ago by roundup-bot.

Messages

New changeset ab343ce14d16 by Cédric Krier in branch 'default':
Add context field of parent to on_change calls
https://hg.tryton.org/tryton-env/rev/ab343ce14d16
New changeset 7007a9104464 by Cédric Krier in branch 'default':
Add context field of parent to on_change calls
https://hg.tryton.org/trytond/rev/7007a9104464
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-03-11.14:59:28

Here is review359301002 which extends issue9236.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-03-11.14:10:15

This is linked to issue10067. The call to on_change_product which requires the party does not send also the company field so the party is instantiated without a company which select no tax rule.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-03-11.13:38:52

On trunk the scenario_reporting.rst is failing:

File "modules/account_es/tests/scenario_reporting.rst", line 146, in scenario_reporting.rst
Failed example:
    invoice.total_amount
Expected:
    Decimal('106.00')
Got:
    Decimal('121.00')
History
Date User Action Args
2021-03-11 19:20:54roundup-botsetmessages: + msg65392
2021-03-11 19:20:50roundup-botsetmessages: + msg65391
nosy: + roundup-bot
status: testing -> resolved
2021-03-11 15:32:55cedsetsuperseder: + Wrong company.currency depend on on_change_request
2021-03-11 15:14:12reviewbotsetmessages: + msg65360
nosy: + reviewbot
2021-03-11 15:07:47cedlinkissue4080 superseder
2021-03-11 14:59:29cedsetcomponent: + trytond, - account_es
keyword: + review
messages: + msg65359
reviews: 359301002
status: in-progress -> testing
title: Scenario fails with wrong invoice total amount -> Missing contextual field for parent depends
2021-03-11 14:10:15cedsetmessages: + msg65358
2021-03-11 13:38:52cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)