diff --git a/project_issue_extension/project.py b/project_issue_extension/project.py index 6961452..f620509 100644 --- a/project_issue_extension/project.py +++ b/project_issue_extension/project.py @@ -37,7 +37,8 @@ class project_issue(orm.Model): _columns = { 'number': fields.char('Number', size=32), 'create_date': fields.datetime('Creation Date', readonly=True), - 'target_date': fields.datetime('Target Resolution Date'), + 'target_date': fields.datetime('Target Resolution Date', + track_visibility='onchange'), 'product_ids': fields.many2many( 'product.product', string="Related Products"), } diff --git a/stock_hide_journal_id/__init__.py b/stock_hide_journal_id/__init__.py new file mode 100644 index 0000000..53c71a2 --- /dev/null +++ b/stock_hide_journal_id/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Stock Hide journal_id module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# 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 . +# +############################################################################## + diff --git a/stock_hide_journal_id/__openerp__.py b/stock_hide_journal_id/__openerp__.py new file mode 100644 index 0000000..4bd1dde --- /dev/null +++ b/stock_hide_journal_id/__openerp__.py @@ -0,0 +1,44 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Stock Hide journal_id module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Stock Hide journal_id', + 'version': '0.1', + 'category': 'Inventory, Logistic, Storage', + 'license': 'AGPL-3', + 'summary': 'Hide the field journal_id in the stock views', + 'description': """ +Stock Hide journal_id +===================== + +Hide the field *Stock Journal* in the stock views (form and tree), to win space. + +Please contact Alexis de Lattre from Akretion for any help or question about this module. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['stock'], + 'data': ['stock_view.xml'], + 'installable': True, + 'active': False, +} diff --git a/stock_hide_journal_id/stock_view.xml b/stock_hide_journal_id/stock_view.xml new file mode 100644 index 0000000..8378b77 --- /dev/null +++ b/stock_hide_journal_id/stock_view.xml @@ -0,0 +1,82 @@ + + + + + + + + + + hide.journal_id.picking.tree + stock.picking + + + + 1 + + + + + + hide.journal_id.picking.in.tree + stock.picking.in + + + + 1 + + + + + + hide.journal_id.picking.out.tree + stock.picking.out + + + + 1 + + + + + + hide.journal_id.picking.out.form + stock.picking.out + + + + 1 + + + + + + hide.journal_id.picking.in.form + stock.picking.in + + + + 1 + + + + + + hide.journal_id.picking.form + stock.picking + + + + 1 + + + + + + + +