MIG sale_quotation_title to v12

This commit is contained in:
Alexis de Lattre
2019-01-31 19:35:07 +01:00
parent 97ddaeedd8
commit c5a0aa82ad
4 changed files with 16 additions and 10 deletions

View File

@@ -1,3 +1 @@
# -*- coding: utf-8 -*-
from . import sale

View File

@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (http://www.akretion.com)
# Copyright 2016-2019 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# @author Alexis de Lattre <alexis.delattre@akretion.com>
{
'name': 'Sale Quotation Title',
'version': '10.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Sales',
'license': 'AGPL-3',
'summary': 'Adds a title field on quotations',

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (http://www.akretion.com)
# Copyright 2016-2019 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# @author Alexis de Lattre <alexis.delattre@akretion.com>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2016 Akretion (http://www.akretion.com/)
Copyright 2016-2019 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).
-->
@@ -38,11 +38,21 @@
<field name="name" position="attributes">
<attribute name="class">oe_inline</attribute>
</field>
<xpath expr="//field[@name='name']" position="after">
<field name="quotation_title" class="oe_inline"/>
<xpath expr="//field[@name='name']" position="after"> -
<field name="quotation_title" class="oe_inline" placeholder="Title of the quotation"/>
</xpath>
</field>
</record>
<record id="view_sales_order_filter" model="ir.ui.view">
<field name="name">quotation_title.sale_order_search</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter"/>
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="filter_domain">['|', '|', '|', ('name', 'ilike', self), ('client_order_ref', 'ilike', self), ('partner_id', 'child_of', self), ('quotation_title', 'ilike', self)]</attribute>
</field>
</field>
</record>
</odoo>