Port mrp_usability and pos_usability to v10

This commit is contained in:
Alexis de Lattre
2016-10-25 12:42:05 +02:00
committed by David Beal
parent 7165d113b6
commit 55b9b1a619
3 changed files with 49 additions and 59 deletions

View File

@@ -1,24 +1,7 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# MRP Usability module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# -*- coding: utf-8 -*-
# © 2015-2016 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
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
@@ -35,7 +18,11 @@ Small usability improvements on MRP:
* order by id desc
* show date start and date finished on production order form view
* show field date_start and date_finished on mrp.production form view
* show more fields on stock move form
* show bom type in tree view + add group by
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
@@ -43,5 +30,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'website': 'http://www.akretion.com',
'depends': ['mrp'],
'data': ['mrp_view.xml'],
'installable': False,
'installable': True,
}

View File

@@ -1,26 +1,10 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# MRP Usability module for Odoo
# Copyright (C) 2015 Akretion (http://www.akretion.com)
# -*- coding: utf-8 -*-
# © 2015-2016 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
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models
from odoo import models
class MrpProduction(models.Model):

View File

@@ -1,30 +1,27 @@
<?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>
The licence is in the file __openerp__.py
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<data>
<odoo>
<record id="mrp_production_form_view" model="ir.ui.view">
<field name="name">usability.mrp.production.form</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<field name="date_start" position="attributes">
<attribute name="invisible">0</attribute>
</field>
<field name="date_finished" position="attributes">
<attribute name="invisible">0</attribute>
<field name="availability" position="after">
<field name="date_start"/>
<field name="date_finished"/>
</field>
</field>
</record>
<record id="view_move_form" model="ir.ui.view">
<field name="name">stock.usability.stock.move.form</field>
<field name="name">mrp.usability.stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form" />
<field name="arch" type="xml">
@@ -35,5 +32,27 @@
</field>
</record>
</data>
</openerp>
<record id="mrp_bom_tree_view" model="ir.ui.view">
<field name="name">mrp_usability.bom.tree</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_tree_view"/>
<field name="arch" type="xml">
<field name="routing_id" position="after">
<field name="type"/>
</field>
</field>
</record>
<record id="view_mrp_bom_filter" model="ir.ui.view">
<field name="name">mrp_usability.bom.search</field>
<field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.view_mrp_bom_filter"/>
<field name="arch" type="xml">
<group expand="0" position="inside">
<filter string="Type" context="{'group_by': 'type'}" name="type_groupby"/>
</group>
</field>
</record>
</odoo>