Add module sale_usability_b2b

This commit is contained in:
Alexis de Lattre
2017-01-12 16:21:26 +01:00
parent a325a3a828
commit b2a96f4db2
4 changed files with 76 additions and 3 deletions

View File

@@ -15,10 +15,11 @@ Sale Usability Extension
Several small usability improvements:
* Display Invoices on Sale Order form view (in dedicated tab).
* Display currency in tree view
* Display amount untaxed in tree view
* TODO: update this list
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module.
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Sale Usability B2B',
'version': '10.0.1.0.0',
'category': 'Sale Management',
'license': 'AGPL-3',
'summary': 'Show amount untaxed by default in sale graphs/pivot',
'description': """
Sale Usability B2B
==================
By default, Odoo shows the amount with taxes in the pivot, graph and calendar views, which is confusing for B2B companies. This module changes this to show by default with amount without taxes.
Note that you should also install the module *sale_usability*, which adds amount untaxed in tree views with a sum.
This module has been written by Alexis de Lattre from Akretion
<alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['sale'],
'data': ['sale_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2017 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_sale_order_pivot" model="ir.ui.view">
<field name="name">usability.b2b.sale.order.pivot</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sale_order_pivot"/>
<field name="arch" type="xml">
<field name="amount_total" type="measure" position="replace">
<field name="amount_untaxed" type="measure"/>
</field>
</field>
</record>
<record id="view_sale_order_graph" model="ir.ui.view">
<field name="name">usability.b2b.sale.order.graph</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sale_order_graph"/>
<field name="arch" type="xml">
<field name="amount_total" type="measure" position="replace">
<field name="amount_untaxed" type="measure"/>
</field>
</field>
</record>
<record id="view_sale_order_calendar" model="ir.ui.view">
<field name="name">usability.b2b.sale.order.calendar</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sale_order_calendar"/>
<field name="arch" type="xml">
<field name="amount_total" position="replace">
<field name="amount_untaxed" widget="monetary"/>
</field>
</field>
</record>
</odoo>