mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[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:
0
sale_section_subtotal/__init__.py
Normal file
0
sale_section_subtotal/__init__.py
Normal file
17
sale_section_subtotal/__manifest__.py
Normal file
17
sale_section_subtotal/__manifest__.py
Normal 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,
|
||||||
|
}
|
||||||
15
sale_section_subtotal/views/sale_views.xml
Normal file
15
sale_section_subtotal/views/sale_views.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user