Merge pull request #3583 from expsa/dev_odex25_donation

Dev odex25 donation
This commit is contained in:
abdurrahman-saber 2025-06-23 14:25:10 +03:00 committed by GitHub
commit ed111a31f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class SaleOrder(models.Model):
sale.sale_order_portal_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') + sale.get_portal_url()
def _cart_update(self, *args, **kwargs):
res = super(SaleOrder_Inherit, self)._cart_update(*args, **kwargs)
res = super()._cart_update(*args, **kwargs)
order_line = self.env['sale.order.line'].browse(res.get('line_id'))
qty = kwargs.get('add_qty', False) or kwargs.get('set_qty', False)
@ -84,7 +84,7 @@ class SaleOrder(models.Model):
})
def action_confirm(self):
call_super = super(SaleOrder_Inherit, self).action_confirm()
call_super = super().action_confirm()
if call_super == True:
for rec in self:
if rec.order_mobile_number: