prevent check_time on report_stock_card

stable
watcha.h 2016-03-09 12:25:17 +07:00
parent 342f07502b
commit 661f25bf1a
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ from netforce.access import get_active_company
class ReportStockCard(Model): class ReportStockCard(Model):
_inherit="report.stock.card" _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={}): def get_report_data(self,ids,context={}):
company=get_model("company").browse(get_active_company()) company=get_model("company").browse(get_active_company())
defaults=self.default_get(context=context) defaults=self.default_get(context=context)