fix: update posting date before running validations

(cherry picked from commit d04dbd8ed9)
This commit is contained in:
Dany Robert
2025-03-26 11:37:35 +05:30
committed by Mergify
parent 1500691bca
commit 2bf44dc326

View File

@@ -267,8 +267,8 @@ class SalesInvoice(SellingController):
self.indicator_title = _("Paid") self.indicator_title = _("Paid")
def validate(self): def validate(self):
super().validate()
self.validate_auto_set_posting_time() self.validate_auto_set_posting_time()
super().validate()
if not (self.is_pos or self.is_debit_note): if not (self.is_pos or self.is_debit_note):
self.so_dn_required() self.so_dn_required()