Ejemplo n.º 1
0
 def _create_work_order(self):
     wo = WorkOrder(store=self.store,
                    sale=self.model,
                    equipment=u'',
                    branch=api.get_current_branch(self.store),
                    client=self.model.client)
     return wo
Ejemplo n.º 2
0
 def _create_work_order(self):
     return WorkOrder(store=self.store,
                      sale=self.model,
                      sellable=None,
                      description=u'',
                      branch=api.get_current_branch(self.store),
                      client=self.model.client)
Ejemplo n.º 3
0
 def create_workorder(self, equipment=u'', current_branch=None):
     from stoqlib.domain.workorder import WorkOrder
     return WorkOrder(
         store=self.store,
         equipment=equipment,
         branch=get_current_branch(self.store),
         current_branch=current_branch)
Ejemplo n.º 4
0
 def create_model(self, store):
     branch = api.get_current_branch(store)
     return WorkOrder(
         store=store,
         equipment=u'',
         branch=branch,
         category=self._default_category,
     )
Ejemplo n.º 5
0
 def _create_work_order(self):
     wo = WorkOrder(
         store=self.store,
         equipment=u'',
         branch=api.get_current_branch(self.store),
         client=self.model.client)
     self.wizard.workorders.append(wo)
     return wo
Ejemplo n.º 6
0
 def create_model(self, store):
     defect_detected = api.sysparam.get_string('DEFECT_DETECTED_TEMPLATE')
     branch = api.get_current_branch(store)
     return WorkOrder(
         store=store,
         sellable=None,
         description=u'',
         branch=branch,
         category=self._default_category,
         defect_detected=defect_detected,
     )
Ejemplo n.º 7
0
 def create_model(self, store):
     print("=======")
     # criar model com dados necessarios
     return WorkOrder()