[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

@@ -13,6 +13,8 @@
<field name="account_id"/>
<field name="balance" sum="Total"></field>
<field name="base_balance" sum="Base Total"></field>
<button type="object" name="view_tax_lines" string="View tax lines" icon="gtk-find"></button>
<button type="object" name="view_base_lines" string="View base lines" icon="gtk-copy"></button>
</tree>
</field>
</record>
@@ -36,7 +38,7 @@
</field>
</record>
<record id="action_tax_balances_tree" model="ir.actions.act_window">
<field name="name">Tax Balances</field>
<field name="name">Taxes Balance</field>
<field name="res_model">account.tax</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
@@ -44,4 +46,4 @@
<field name="search_view_id" ref="view_tax_search_balance"/>
</record>
</data>
</openerp>
</openerp>