Rename stock_display_src_location to stock_usability with one improvement

This commit is contained in:
Alexis de Lattre
2015-02-17 08:50:08 +01:00
parent de89795eed
commit 37b8bb1ce4
4 changed files with 50 additions and 37 deletions

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="view_move_picking_tree" model="ir.ui.view">
<field name="name">display.src_location.in.picking.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_picking_tree" />
<field name="arch" type="xml">
<field name="location_id" position="attributes">
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
</data>
</openerp>

View File

@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Stock Display Source Location module for OpenERP
# Copyright (C) 2014 Akretion (http://www.akretion.com)
# Stock Usability module for Odoo
# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify

View File

@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Stock Display Source Location module for OpenERP
# Copyright (C) 2014 Akretion (http://www.akretion.com)
# Stock Usability module for Odoo
# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
@@ -22,23 +22,24 @@
{
'name': 'Stock Display Source Location',
'name': 'Stock Usability',
'version': '0.1',
'category': 'Inventory, Logistic, Storage',
'license': 'AGPL-3',
'summary': 'Display the source location on pickings',
'summary': 'Several usability enhancements in Warehouse management',
'description': """
Stock Display Source Location on Pickings
=========================================
Stock Usability
===============
Display the source location on the tree view of the move lines of the pickings (by default, only the destination location is displayed).
The usability enhancements inclure:
* display the source location on the tree view of the move lines of the pickings (by default, only the destination location is displayed).
* always display the field *Backorder* on the form view of picking (by default, this field is only displayed when it has a value, so the user doesn't know when the field has no value because he doesn't see the field !)
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',
'depends': ['stock'],
'data': ['stock_view.xml'],
'installable': True,
'active': False,
}

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014-2015 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="view_move_picking_tree" model="ir.ui.view">
<field name="name">stock_usability.src_location.in.picking.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_picking_tree" />
<field name="arch" type="xml">
<field name="location_id" position="attributes">
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock_usability.view_picking_form</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<field name="backorder_id" position="attributes">
<attribute name="attrs">{}</attribute>
</field>
</field>
</record>
</data>
</openerp>