def finish(self): # Now we must remove the products added to the workorders from the # stock and we can associate the category selected to the workorders # (we only do this now so we don't have to pay attention if the user # changes the category after we have created workorders). for wo in self.workorders: wo.category = self.wo_category wo.sync_stock() SaleQuoteWizard.finish(self)