From 613d6d688d701efea7dbb58999e61d5bb695f0cb Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 3 Nov 2015 13:26:21 +0100 Subject: [PATCH] Add stock_account_usability module --- stock_account_usability/__init__.py | 3 ++ stock_account_usability/__openerp__.py | 44 ++++++++++++++++++++++++++ stock_account_usability/stock.py | 29 +++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 stock_account_usability/__init__.py create mode 100644 stock_account_usability/__openerp__.py create mode 100644 stock_account_usability/stock.py diff --git a/stock_account_usability/__init__.py b/stock_account_usability/__init__.py new file mode 100644 index 0000000..b857415 --- /dev/null +++ b/stock_account_usability/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import stock diff --git a/stock_account_usability/__openerp__.py b/stock_account_usability/__openerp__.py new file mode 100644 index 0000000..e61f5e3 --- /dev/null +++ b/stock_account_usability/__openerp__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Stock Account Usability module for Odoo +# Copyright (C) 2015 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 Account Usability', + 'version': '0.1', + 'category': 'Inventory, Logistic, Storage', + 'license': 'AGPL-3', + 'summary': 'Several usability enhancements in stock_account', + 'description': """ +Stock Account Usability +======================== + +The usability enhancements inclure: +* tracking on the invoice_state field + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['stock_account'], + 'data': [], + 'installable': True, +} diff --git a/stock_account_usability/stock.py b/stock_account_usability/stock.py new file mode 100644 index 0000000..28f0a51 --- /dev/null +++ b/stock_account_usability/stock.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Stock Account Usability module for Odoo +# Copyright (C) 2015 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 . +# +############################################################################## + +from openerp import models, fields + + +class StockPicking(models.Model): + _inherit = 'stock.picking' + + invoice_state = fields.Selection(track_visibility='onchange')