[MIGR] Fix *transaction* module + completion_voucher -> I think we'll remove this module once as it doesn't apply any more.

This commit is contained in:
Joel Grand-Guillaume
2012-12-18 22:06:21 +01:00
parent a6e3ed40be
commit 077c842a7e
3 changed files with 5 additions and 5 deletions

View File

@@ -382,6 +382,6 @@ class AccountBankSatement(Model):
if res:
vals = res[line.id]
vals['already_completed'] = True
stat_line_obj.write(cr, uid, line.id, vals, context=ctx)
stat_line_obj.write(cr, uid, [line.id], vals, context=ctx)
self.write_completion_log(cr, uid, stat.id, msg, compl_lines, context=context)
return True

View File

@@ -3,19 +3,19 @@
<data>
<!-- Override what we have in account_statement_base_completion to replace the one in the voucher -->
<record id="account_statement_base_completion.bank_statement_view_form2" model="ir.ui.view">
<!-- <record id="account_statement_base_completion.bank_statement_view_form2" model="ir.ui.view">
<field name="name">account_bank_statement_import_base.bank_statement.auto_cmpl</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account_voucher.view_bank_statement_tree_voucher" />
<field name="type">form</field>
<field name="arch" type="xml">
<data>
<xpath expr="/form/notebook/page/field[@name='line_ids']/tree/field[@name='voucher_id']" position="after">
<xpath expr="/form/sheet/notebook/page/field[@name='line_ids']/tree/field[@name='voucher_id']" position="after">
<field name="already_completed" />
</xpath>
</data>
</field>
</record>
</record> -->
</data>
</openerp>

View File

@@ -10,7 +10,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<data>
<xpath expr="/form/notebook/page/field[@name='line_ids']/form/field[@name='label']" position="after">
<xpath expr="/form/sheet/notebook/page/field[@name='line_ids']/form/group/field[@name='label']" position="after">
<field name="transaction_id" />
</xpath>
</data>