[FIX+IMP] account_tax_balance:

* Tests
* PEP8
* Use invoice._convert_to_write(invoice._cache). This way, the onchange will be inheritable and will add here also the added values
* better get_context_values
* unify method compute_balance
* open move lines linked to balance
This commit is contained in:
eLBati
2016-04-29 12:23:48 +02:00
committed by Borruso
parent 980f35ce5e
commit a48acb15d4
7 changed files with 158 additions and 100 deletions

View File

@@ -5,7 +5,7 @@
<field name="name">wizard_open_tax_balances</field>
<field name="model">wizard.open.tax.balances</field>
<field name="arch" type="xml">
<form string="Open Tax Balances">
<form string="Taxes Balance">
<group>
<field name="company_id"/>
<field name="date_range_id"/>
@@ -23,7 +23,7 @@
</record>
<record id="action_open_tax_balances" model="ir.actions.act_window">
<field name="name">Open Tax Balances</field>
<field name="name">Taxes Balance</field>
<field name="res_model">wizard.open.tax.balances</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
@@ -37,4 +37,4 @@
parent="account.menu_finance_reports"
groups="account.group_account_user,account.group_account_manager"></menuitem>
</data>
</openerp>
</openerp>