fix: ensure SellingController.onload gets called for SO & DN

(cherry picked from commit 8431e3c275)
This commit is contained in:
Sagar Vora
2024-08-19 08:16:11 +05:30
committed by Mergify
parent b70eb46222
commit 2c1f72e44c
2 changed files with 4 additions and 0 deletions

View File

@@ -208,6 +208,8 @@ class DeliveryNote(SellingController):
)
def onload(self):
super().onload()
if self.docstatus == 0:
self.set_onload("has_unpacked_items", self.has_unpacked_items())