Remove SO from quotations menu

Port sale_quotation_title to v10
This commit is contained in:
Alexis de Lattre
2016-11-02 19:57:53 +01:00
parent e4fb2c8363
commit 79826ab525
3 changed files with 15 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
{ {
'name': 'Sale Quotation Title', 'name': 'Sale Quotation Title',
'version': '0.1', 'version': '10.0.1.0.0',
'category': 'Sale Management', 'category': 'Sale Management',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Adds a title field on quotations', 'summary': 'Adds a title field on quotations',
@@ -22,5 +22,5 @@ This module has been written by Alexis de Lattre from Akretion
'website': 'http://www.akretion.com', 'website': 'http://www.akretion.com',
'depends': ['sale'], 'depends': ['sale'],
'data': ['sale_view.xml'], 'data': ['sale_view.xml'],
'installable': False, 'installable': True,
} }

View File

@@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# @author Alexis de Lattre <alexis.delattre@akretion.com> # @author Alexis de Lattre <alexis.delattre@akretion.com>
from openerp import models, fields from odoo import models, fields
class SaleOrder(models.Model): class SaleOrder(models.Model):

View File

@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright (C) 2016 Akretion (http://www.akretion.com/) © 2016 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com> @author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->
<openerp> <odoo>
<data>
<record id="view_order_tree" model="ir.ui.view"> <record id="view_order_tree" model="ir.ui.view">
<field name="name">quotation_title.sale_order_tree</field> <field name="name">quotation_title.sale_order_tree</field>
@@ -35,11 +35,14 @@
<field name="model">sale.order</field> <field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/> <field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="client_order_ref" position="before"> <field name="name" position="attributes">
<field name="quotation_title"/> <attribute name="class">oe_inline</attribute>
</field> </field>
<xpath expr="//field[@name='name']" position="after">
<field name="quotation_title" class="oe_inline"/>
</xpath>
</field> </field>
</record> </record>
</data>
</openerp> </odoo>