diff --git a/sale_stock_usability/__init__.py b/sale_stock_usability/__init__.py new file mode 100644 index 0000000..7aa13ee --- /dev/null +++ b/sale_stock_usability/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import sale_stock diff --git a/sale_stock_usability/__openerp__.py b/sale_stock_usability/__openerp__.py new file mode 100644 index 0000000..841375b --- /dev/null +++ b/sale_stock_usability/__openerp__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Sale Stock 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': 'Sale Stock Usability', + 'version': '0.2', + 'category': 'Sales Management', + 'license': 'AGPL-3', + 'summary': 'use management', + 'description': """ +Sale Stock Usability +==================== + +The usability enhancements include: + +* *To invoice* filter on pickings filters on invoice_state = 2binvoiced AND state = done + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['sale_stock'], + 'data': ['sale_stock_view.xml'], + 'installable': True, +} diff --git a/sale_stock_usability/sale_stock.py b/sale_stock_usability/sale_stock.py new file mode 100644 index 0000000..2f706e2 --- /dev/null +++ b/sale_stock_usability/sale_stock.py @@ -0,0 +1,30 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Usability Extension 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 SaleOrder(models.Model): + _inherit = 'sale.order' + + warehouse_id = fields.Many2one(track_visibility='onchange') + incoterm = fields.Many2one(track_visibility='onchange') diff --git a/sale_stock_usability/sale_stock_view.xml b/sale_stock_usability/sale_stock_view.xml new file mode 100644 index 0000000..e986110 --- /dev/null +++ b/sale_stock_usability/sale_stock_view.xml @@ -0,0 +1,26 @@ + + + + + + + + + + sale_stock_usability.picking.search + stock.picking + + + + [('invoice_state', '=', '2binvoiced'), ('state', '=', 'done')] + + + + + + +