hunk.code_window:         res = super(PaymentTransaction, self).form_feedback(cr, uid, data, acquirer_name, context=context)
           # fetch the tx, check its state, confirm the potential SO
           tx_find_method_name = '_%s_form_get_tx_from_data' % acquirer_name
           if hasattr(self, tx_find_method_name):
               tx = getattr(self, tx_find_method_name)(cr, uid, data, context=context)
           if tx and tx.state == 'done' and tx.acquirer_id.auto_confirm == 'at_pay_confirm' and tx.sale_order_id and tx.sale_order_id.state in ['draft', 'sent']:
               self.pool['sale.order'].action_confirm(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=dict(context, send_email=True))
           elif tx and tx.state not in ['cancel', 'error'] and tx.sale_order_id and tx.sale_order_id.state in ['draft']:
               self.pool['sale.order'].force_quotation_send(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=context)
           return res
hunk.labels: keep keep keep replace replace replace replace replace replace replace keep keep
hunk.after_edit:         try:
               tx_find_method_name = '_%s_form_get_tx_from_data' % acquirer_name
               if hasattr(self, tx_find_method_name):
                   tx = getattr(self, tx_find_method_name)(cr, uid, data, context=context)
               if tx and tx.state == 'done' and tx.acquirer_id.auto_confirm == 'at_pay_confirm' and tx.sale_order_id and tx.sale_order_id.state in ['draft', 'sent']:
                   self.pool['sale.order'].action_confirm(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=dict(context, send_email=True))
               elif tx and tx.state not in ['cancel', 'error'] and tx.sale_order_id and tx.sale_order_id.state in ['draft']:
                   self.pool['sale.order'].force_quotation_send(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=context)
           except Exception:
               _logger.exception('Fail to confirm the order or send the confirmation email%s', tx and ' for the transaction %s' % tx.reference or '')
  
hunk.file_path: addons/website_sale/models/payment.py
hunk.type: replace
file: # Translation of Odoo Server.
  # This file contains the translation of the following modules:
  # * board
  # 
  # Translators:
  # fausthuang, 2015
  # fausthuang, 2015
  # Martin Trigaux, 2016
  msgid ""
  msgstr ""
  "Project-Id-Version: Odoo 9.0\n"
  "Report-Msgid-Bugs-To: \n"
  "POT-Creation-Date: 2015-09-07 14:40+0000\n"
  "PO-Revision-Date: 2016-03-12 01:56+0000\n"
  "Last-Translator: Joroy <13637815@qq.com>\n"
  "Language-Team: Chinese (China) (http://www.transifex.com/odoo/odoo-9/language/zh_CN/)\n"
  "MIME-Version: 1.0\n"
  "Content-Type: text/plain; charset=UTF-8\n"
  "Content-Transfer-Encoding: \n"
  "Language: zh_CN\n"
  "Plural-Forms: nplurals=1; plural=0;\n"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/xml/board.xml:24
  #, python-format
  msgid "&nbsp;"
  msgstr "&nbsp;"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/js/dashboard.js:406
  #, python-format
  msgid "'%s' added to dashboard"
  msgstr "'%s' 添加到仪表板"
  
  #. module: board
  #: model:ir.actions.act_window,help:board.open_board_my_dash_action
  msgid "<b>Your personal dashboard is empty.</b>"
  msgstr "<b>您的个人仪表板是空的.</b>"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/xml/board.xml:70
  #, python-format
  msgid "Add"
  msgstr "添加"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/xml/board.xml:64
  #, python-format
  msgid "Add to my Dashboard"
  msgstr "添加到我的仪表板"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/js/dashboard.js:139
  #, python-format
  msgid "Are you sure you want to remove this item ?"
  msgstr "您确定要移除此分录吗？"
  
  #. module: board
  #: model:ir.model,name:board.model_board_board
  msgid "Board"
  msgstr "仪表板"
  
  #. module: board
  #: model:ir.model,name:board.model_board_create
  msgid "Board Creation"
  msgstr "仪表板创建"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_create_name
  msgid "Board Name"
  msgstr "仪表板名称"
  
  #. module: board
  #: model:ir.ui.view,arch_db:board.view_board_create
  msgid "Cancel"
  msgstr "取消"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/xml/board.xml:6
  #, python-format
  msgid "Change Layout"
  msgstr "更改布局"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/xml/board.xml:4
  #, python-format
  msgid "Change Layout.."
  msgstr "更改布局..."
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/xml/board.xml:36
  #, python-format
  msgid "Choose dashboard layout"
  msgstr "选择仪表板布局"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/js/dashboard.js:408
  #, python-format
  msgid "Could not add filter to dashboard"
  msgstr "无法增加过滤器到仪表板"
  
  #. module: board
  #: model:ir.ui.view,arch_db:board.view_board_create
  msgid "Create"
  msgstr "创建"
  
  #. module: board
  #: model:ir.actions.act_window,name:board.action_board_create
  #: model:ir.ui.menu,name:board.menu_board_create
  msgid "Create Board"
  msgstr "创建仪表板"
  
  #. module: board
  #: model:ir.ui.view,arch_db:board.view_board_create
  msgid "Create New Dashboard"
  msgstr "创建新的仪表板"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_create_create_uid
  msgid "Created by"
  msgstr "创建者"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_create_create_date
  msgid "Created on"
  msgstr "创建时间"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_board_display_name
  #: model:ir.model.fields,field_description:board.field_board_create_display_name
  msgid "Display Name"
  msgstr "显示名称"
  
  #. module: board
  #. openerp-web
  #: code:addons/board/static/src/js/dashboard.js:94
  #, python-format
  msgid "Edit Layout"
  msgstr "编辑布局"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_board_id
  #: model:ir.model.fields,field_description:board.field_board_create_id
  msgid "ID"
  msgstr "ID"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_board___last_update
  #: model:ir.model.fields,field_description:board.field_board_create___last_update
  msgid "Last Modified on"
  msgstr "最后修改日"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_create_write_uid
  msgid "Last Updated by"
  msgstr "最后更新人"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_create_write_date
  msgid "Last Updated on"
  msgstr "最后更新时间"
  
  #. module: board
  #: model:ir.actions.act_window,name:board.open_board_my_dash_action
  #: model:ir.ui.menu,name:board.menu_board_my_dash
  #: model:ir.ui.view,arch_db:board.board_my_dash_view
  msgid "My Dashboard"
  msgstr "我的仪表板"
  
  #. module: board
  #: model:ir.model.fields,field_description:board.field_board_create_menu_parent_id
  msgid "Parent Menu"
  msgstr "上级菜单"
  
  #. module: board
  #: model:ir.actions.act_window,help:board.open_board_my_dash_action
  msgid ""
  "To add your first report into this dashboard, go to any\n"
  "                    menu, switch to list or graph view, and click <i>'Add to\n"
  "                    Dashboard'</i> in the extended search options."
  msgstr "要添加第一个报表到这个仪表板，去任意\n菜单，切换到列表或图表视图，然后单击<I>“添加到\n仪表板“</I>在扩展的搜索选项。"
  
  #. module: board
  #: model:ir.actions.act_window,help:board.open_board_my_dash_action
  msgid ""
  "You can filter and group data before inserting into the\n"
  "                    dashboard using the search options."
  msgstr "您可以使用搜索选项过滤或分组数据在添加到\n仪表板之前。"
  