From 661f25bf1a71fa98c66779925befb35dd5737d9b Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Wed, 9 Mar 2016 12:25:17 +0700 Subject: [PATCH] prevent check_time on report_stock_card --- netforce_clinic/models/report_stock_card.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netforce_clinic/models/report_stock_card.py b/netforce_clinic/models/report_stock_card.py index c06117b..1c32ff8 100644 --- a/netforce_clinic/models/report_stock_card.py +++ b/netforce_clinic/models/report_stock_card.py @@ -4,6 +4,10 @@ from netforce.access import get_active_company class ReportStockCard(Model): _inherit="report.stock.card" + def write(self,ids,vals,**kw): + kw['check_time']=False + super().write(ids,vals,**kw) + def get_report_data(self,ids,context={}): company=get_model("company").browse(get_active_company()) defaults=self.default_get(context=context)