[ADD] account_section_subtotal: for Odoo 13.0

This commit is contained in:
Jared Kipe
2020-10-08 17:00:08 -07:00
parent f94e50afba
commit afa035840b
3 changed files with 32 additions and 0 deletions

View File

View File

@@ -0,0 +1,17 @@
{
'name': 'Account Section Subtotal',
'version': '13.0.1.0.0',
'category': 'Accounting',
'author': 'Hibou Corp.',
'license': 'AGPL-3',
'website': 'https://hibou.io/',
'depends': [
'account',
'base_section_subtotal',
],
'data': [
'views/account_views.xml',
],
'installable': True,
'application': False,
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">account.move.form.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@id='invoice_tab']//field[@name='invoice_line_ids']/tree" position="attributes">
<attribute name="section-subtotal-field">price_subtotal</attribute>
</xpath>
</field>
</record>
</odoo>