parameters: (self)
return_statement: return True
docstring: Create work orders. And probably do stuff, like things.
docstring_summary: Create work orders. And probably do stuff, like things.
docstring_tokens: Create work orders . And probably do stuff like things .
function: def button_plan(self):
          """ Create work orders. And probably do stuff, like things. """
          orders_to_plan = self.filtered(lambda order: not order.is_planned)
          orders_to_confirm = orders_to_plan.filtered(lambda mo: mo.state == 'draft')
          orders_to_confirm.action_confirm()
          for order in orders_to_plan:
              order._plan_workorders()
          return True
function_tokens: def button_plan ( self ) : orders_to_plan = self . filtered ( lambda order : not order . is_planned ) orders_to_confirm = orders_to_plan . filtered ( lambda mo : mo . state == 'draft' ) orders_to_confirm . action_confirm ( ) for order in orders_to_plan : order . _plan_workorders ( ) return True