تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4128 أدوات العرض

Hello Dears,.


I want when quotation status be Cancel the Customer i select in the quotation will be deactivate automatically 

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

You can make the customer inactive by super the function of the cancel button.

class SaleOrderInherit(models.Model):
_inherit = 'sale.order'

@api.multi
def action_cancel(self, vals):
self.partner_id.active = False
res = super(SaleOrderInherit, self).action_cancel()
return res


Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
Sales quotation تم الحل
2
مارس 24
2054
5
مايو 20
3842
1
مارس 15
4988
1
مارس 15
4093
2
يوليو 25
1408