Issue 11212

Title
AttributeError: 'NoneType' object has no attribute 'save'
Priority
bug
Status
testing
Nosy list
nicoe, reviewbot, udono
Assigned to
nicoe
Keywords
review

Created on 2022-02-03.17:04:49 by udono, last changed 1 month ago by reviewbot.

Messages

Author: [hidden] (nicoe) Tryton committer
Date: 2022-05-19.16:36:46

Here a patch. Sao doesn't have the issue since it selects the line before allowing to click on it which is its standard behaviour also for editable list IIRC.

Author: [hidden] (udono) Tryton translator
Date: 2022-02-03.17:04:49

Scenario

  • Linux GTK client version 6.2
  • https://demo6.2.tryton.org
  • Install sale_ammendment module
  • Add user to sale ammendment group

  • Create ammendment for a sale line, press 'Validate', to make ammendmends tab on sale visible

  • Open related sale, go tab ammendments
  • Add a new ammendment
  • Save sale
  • Pressing "Validate" button in list view of ammendments one2many, raises:
ERROR:tryton.common.common:  File "6.2/tryton/tryton/gui/window/view_form/view/list_gtk/widget.py", line 1305, in button_clicked
    self.view.screen.button(self.attrs)
  File "6.2/tryton/tryton/gui/window/view_form/screen/screen.py", line 1195, in button
    if not self.current_record.save(force_reload=False):
AttributeError: 'NoneType' object has no attribute 'save'

N.B. The windows gtk client in version 5.8 fails even harder: it is killed without any message.

History
Date User Action Args
2022-05-19 16:45:42reviewbotsetmessages: + msg76718
nosy: + reviewbot
2022-05-19 16:36:46nicoesetkeyword: + review
messages: + msg76717
reviews: 433141003
status: in-progress -> testing
2022-05-19 15:38:39nicoesetassignedto: nicoe
component: + tryton, - sale_amendment
nosy: + nicoe
status: unread -> in-progress
2022-02-03 17:06:35udonosetcomponent: + sale_amendment
2022-02-03 17:04:49udonocreate