コード例 #1
0
ファイル: opticalwizard.py プロジェクト: qman1989/stoq
    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)
コード例 #2
0
ファイル: opticalwizard.py プロジェクト: rosalin/stoq
    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)