[FIX] account_voucher: fixed view that have an onchange function returning a field which is not in the view

bzr revid: qdp-launchpad@openerp.com-20121004170506-3a8l6qjmvsclzx7d
This commit is contained in:
Quentin (OpenERP) 2012-10-04 19:05:06 +02:00
parent fbaa849e82
commit 5dacf35d16
1 changed files with 6 additions and 4 deletions

View File

@ -95,9 +95,10 @@
<field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
</tree>
</field>
<!-- TODO: onchange_partner_id() should not returns line_dr_ids for type sale, and not line_cr_ids for type purchase -->
<!-- in the meanwhile, bellow line must be there because the field must be present in the view if the onchange returns a value for it-->
<!-- TODO: onchange_partner_id() should not returns [pre_line,line_dr_ids] for type sale, and not [pre_line,line_cr_ids] for type purchase -->
<!-- in the meanwhile, bellow lines must be there because the fields must be present in the view if the onchange returns a value for them-->
<field name="line_dr_ids" invisible="1"/>
<field name="pre_line" invisible="1"/>
<group>
<field name="narration" placeholder="Internal Notes" nolabel="1"/>
<group class="oe_subtotal_footer oe_right">
@ -252,9 +253,10 @@
<field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
</tree>
</field>
<!-- TODO: onchange_partner_id() should not returns line_dr_ids for type sale, and not line_cr_ids for type purchase -->
<!-- in the meanwhile, bellow line must be there because the field must be present in the view if the onchange returns a value for it-->
<!-- TODO: onchange_partner_id() should not returns [pre_line,line_dr_ids] for type sale, and not [pre_line,line_cr_ids] for type purchase -->
<!-- in the meanwhile, bellow lines must be there because the fields must be present in the view if the onchange returns a value for them-->
<field name="line_cr_ids" invisible="1"/>
<field name="pre_line" invisible="1"/>
<group>
<field name="narration" placeholder="Internal Notes" nolabel="1"/>
<group class="oe_subtotal_footer oe_right">