hunk.code_window:         return {}
       def _create_bank_statement_line(self, cr, uid, box, record, context=None):
           if record.state == 'confirm':
               raise osv.except_osv(_('Error!'),
                                    _("You cannot put/take money in/out for a bank statement which is closed."))
           values = self._compute_values_for_statement_line(cr, uid, box, record, context=context)
           return self.pool.get('account.bank.statement').write(cr, uid, [record.id], {'line_ids': [(0, False, values)]}, context=context)
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:             raise UserError(_("You cannot put/take money in/out for a bank statement which is closed."))
  
hunk.file_path: addons/account/wizard/pos_box.py
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <openerp>
      <data noupdate="1">
          <!-- Those properties are in a noupdate section in the stock module -->
          <!-- No need to create them if they have been deleted               -->
          <record id="stock.property_stock_account_input_categ" model="ir.property" forcecreate="False">
              <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_account_input_categ')]"/>
              <field eval="'account.account,'+str(ref('chart2171_fr'))" model="account.account" name="value"/>
              <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
          </record>
          <record id="stock.property_stock_account_output_categ" model="ir.property" forcecreate="False">
              <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_account_output_categ')]"/>
              <field eval="'account.account,'+str(ref('chart1145_fr'))" model="account.account" name="value"/>
              <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
          </record>
      </data>
  	<data>
  
  	<!-- Chart template -->
  	<record id="ca_fr_chart_template_fr" model="account.chart.template">
  		<field name="name">Canada - Plan comptable pour les provinces francophones</field>
  		<field name="account_root_id" ref="chart0_fr"/>
  		<field name="tax_code_root_id" ref="vat_code_tax_fr"/>
  		<field name="bank_account_view_id" ref="chart111_fr"/>
  		<field name="property_account_receivable" ref="chart1151_fr"/>
  		<field name="property_account_payable" ref="chart2111_fr"/>
  		<field name="property_account_income_categ" ref="chart411_fr"/>
  		<field name="property_account_expense_categ" ref="chart5111_fr"/>
  		<field name="currency_id" ref="base.CAD"/>
  	</record>
  
          <record id="property_stock_valuation_account_id" model="ir.property">
                  <field name="name">property_stock_valuation_account_id</field>
                  <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_valuation_account_id')]"/>
                  <field name="company_id" ref="base.main_company"/>
                  <field eval="'account.account,'+str(ref('chart1141_fr'))" model="account.account" name="value"/>
                  <field eval="'product.category,'+str(ref('product.product_category_all'))" model="product.category" name="res_id"/>
          </record>
  
  	</data>
  </openerp>
  