MIG delivery_usability from v10 to v12
This commit is contained in:
@@ -1,3 +1 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import stock
|
from . import stock
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# Copyright 2018-2019 Akretion (http://www.akretion.com)
|
||||||
# Copyright 2018 Akretion (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Delivery Usability',
|
'name': 'Delivery Usability',
|
||||||
'version': '10.0.1.0.0',
|
'version': '12.0.1.0.0',
|
||||||
'category': 'Stock',
|
'category': 'Stock',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Several usability enhancements in Delivery',
|
'summary': 'Several usability enhancements in Delivery',
|
||||||
@@ -14,7 +13,8 @@ Delivery Usability
|
|||||||
===================
|
===================
|
||||||
|
|
||||||
The usability enhancements include:
|
The usability enhancements include:
|
||||||
* display product_id in form view of delivery.carrier (allows to create a delivery carrier from a pre-existing product)
|
* allow modification of carrier and it's tracking ref. on a done picking
|
||||||
|
* display field 'invoice_shipping_on_delivery' on sale.order form view
|
||||||
|
|
||||||
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
||||||
""",
|
""",
|
||||||
@@ -22,7 +22,6 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['delivery'],
|
'depends': ['delivery'],
|
||||||
'data': [
|
'data': [
|
||||||
'delivery_view.xml',
|
|
||||||
'sale_view.xml',
|
'sale_view.xml',
|
||||||
'stock_view.xml',
|
'stock_view.xml',
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="view_delivery_carrier_form" model="ir.ui.view">
|
|
||||||
<field name="name">usability.delivery.carrier.form</field>
|
|
||||||
<field name="model">delivery.carrier</field>
|
|
||||||
<field name="inherit_id" ref="delivery.view_delivery_carrier_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="delivery_type" position="before">
|
|
||||||
<field name="id" invisible="1"/>
|
|
||||||
<field name="product_id" readonly="1" required="0" attrs="{'invisible': [('id', '=', False)]}"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2018 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
Copyright 2018-2019 Akretion
|
||||||
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
|
|
||||||
<record id="view_order_form_with_carrier" model="ir.ui.view">
|
<record id="view_order_form_with_carrier" model="ir.ui.view">
|
||||||
<field name="name">delivery_usability.sale.order.form</field>
|
<field name="name">delivery_usability.sale.order.form</field>
|
||||||
<field name="model">sale.order</field>
|
<field name="model">sale.order</field>
|
||||||
@@ -17,4 +19,5 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# Copyright 2018-2019 Akretion (http://www.akretion.com)
|
||||||
# Copyright 2018 Akretion (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
@@ -10,3 +9,4 @@ class StockPicking(models.Model):
|
|||||||
_inherit = 'stock.picking'
|
_inherit = 'stock.picking'
|
||||||
|
|
||||||
carrier_id = fields.Many2one(track_visibility='onchange')
|
carrier_id = fields.Many2one(track_visibility='onchange')
|
||||||
|
carrier_tracking_ref = fields.Char(track_visibility='onchange')
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
field definition -->
|
field definition -->
|
||||||
<attribute name="attrs">{}</attribute>
|
<attribute name="attrs">{}</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="carrier_tracking_ref" position="attributes">
|
||||||
|
<attribute name="attrs">{}</attribute>
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user