-
    Actions that need an income account are done here
-
    !python {model: ir.model.data} : |
        account_id = self.pool.get('account.account').search(cr, uid, [('user_type_id', '=', ref('account.data_account_type_revenue'))])
        if account_id:
            vals = {
              'warehouse_id': ref('stock.warehouse0'),
            }
            self._update(cr, uid, 'sale.order', 'sale', vals, 'sale_order_4')

            self.pool.get('sale.order').signal_workflow(cr, uid, [ref('sale.sale_order_1')], 'order_confirm')
