[ADD] sale_section_subtotal: for Odoo 13.0

Uses 'price_subtotal' as the 'section-subtotal-field' on sale order tree view.
This commit is contained in:
Jared Kipe
2020-10-08 16:35:23 -07:00
parent f94e50afba
commit 666e6fea25
3 changed files with 32 additions and 0 deletions

View File

View File

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

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_order_form_inherit" model="ir.ui.view">
<field name="name">sale.order.form.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree" position="attributes">
<attribute name="section-subtotal-field">price_subtotal</attribute>
</xpath>
</field>
</record>
</odoo>