diff --git a/stock_available/README.rst b/stock_available/README.rst index e2b71b3be..e2fd42825 100644 --- a/stock_available/README.rst +++ b/stock_available/README.rst @@ -31,6 +31,7 @@ Contributors ------------ * Lionel Sausin (Numérigraphe) +* Sodexis * many others contributed to sub-modules, please refer to each sub-module's credits Maintainer diff --git a/stock_available/__init__.py b/stock_available/__init__.py index 036bf665c..4016a3092 100644 --- a/stock_available/__init__.py +++ b/stock_available/__init__.py @@ -1,21 +1,5 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# This module is copyright (C) 2014 Numérigraphe SARL. All Rights Reserved. -# -# 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 . -# -############################################################################## +# © 2014 Numérigraphe, Sodexis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/stock_available/__openerp__.py b/stock_available/__openerp__.py index 027c5c02a..14dcb7397 100644 --- a/stock_available/__openerp__.py +++ b/stock_available/__openerp__.py @@ -1,27 +1,11 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# This module is copyright (C) 2014 Numérigraphe SARL. All Rights Reserved. -# -# 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 . -# -############################################################################## +# © 2014 Numérigraphe, Sodexis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Stock available to promise', - 'version': '8.0.2.0.0', - "author": u"Numérigraphe,Odoo Community Association (OCA)", + 'version': '9.0.1.0.0', + "author": "Numérigraphe, Sodexis, Odoo Community Association (OCA)", 'category': 'Warehouse', 'depends': ['stock'], 'license': 'AGPL-3', @@ -30,4 +14,5 @@ 'views/product_product_view.xml', 'views/res_config_view.xml', ], + 'installable': True, } diff --git a/stock_available/models/__init__.py b/stock_available/models/__init__.py index bf26a289f..c74571e26 100644 --- a/stock_available/models/__init__.py +++ b/stock_available/models/__init__.py @@ -1,23 +1,5 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# This module is copyright (C) 2014 Numérigraphe SARL. All Rights Reserved. -# -# 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 . -# -############################################################################## +# © 2014 Numérigraphe, Sodexis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import product_template -from . import product_product -from . import res_config +from . import product_template, product_product, res_config diff --git a/stock_available/models/product_product.py b/stock_available/models/product_product.py index 7335f641a..e9fe960e4 100644 --- a/stock_available/models/product_product.py +++ b/stock_available/models/product_product.py @@ -1,28 +1,13 @@ -#-*- coding: utf-8 -*- -############################################################################## -# -# This module is copyright (C) 2014 Numérigraphe SARL. All Rights Reserved. -# -# 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 . -# -############################################################################## +# -*- coding: utf-8 -*- +# © 2014 Numérigraphe, Sodexis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api from openerp.addons import decimal_precision as dp class ProductProduct(models.Model): + """Add a field for the stock available to promise. Useful implementations need to be installed through the Settings menu or by installing one of the modules stock_available_* diff --git a/stock_available/models/product_template.py b/stock_available/models/product_template.py index fe55ecc47..cdff1f35e 100644 --- a/stock_available/models/product_template.py +++ b/stock_available/models/product_template.py @@ -1,22 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# This module is copyright (C) 2014 Numérigraphe SARL. All Rights Reserved. -# -# 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 . -# -############################################################################## +# © 2014 Numérigraphe, Sodexis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api from openerp.addons import decimal_precision as dp diff --git a/stock_available/models/res_config.py b/stock_available/models/res_config.py index a07c9552a..11cc77614 100644 --- a/stock_available/models/res_config.py +++ b/stock_available/models/res_config.py @@ -1,27 +1,12 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# This module is copyright (C) 2014 Numérigraphe SARL. All Rights Reserved. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -############################################################################## +# © 2014 Numérigraphe, Sodexis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields class StockConfig(models.TransientModel): + """Add options to easily install the submodules""" _inherit = 'stock.config.settings' diff --git a/stock_available/views/product_product_view.xml b/stock_available/views/product_product_view.xml index 22dd36b2e..3c0a2c8bb 100644 --- a/stock_available/views/product_product_view.xml +++ b/stock_available/views/product_product_view.xml @@ -1,20 +1,27 @@ + + - + Quantity available to promise (variant tree) product.product - + - - - red:immediately_usable_qty<0;blue:immediately_usable_qty>=0 and state in ('draft', 'end', 'obsolete');black:immediately_usable_qty>=0 and state not in ('draft', 'end', 'obsolete') - - - - - + + + - + \ No newline at end of file diff --git a/stock_available/views/product_template_view.xml b/stock_available/views/product_template_view.xml index 2b2ee78be..d24322f18 100644 --- a/stock_available/views/product_template_view.xml +++ b/stock_available/views/product_template_view.xml @@ -1,43 +1,50 @@ + + Quantity available to promise (form) product.template - + - - - - + + + - Quantity available to promise (tree) product.template - - - red:immediately_usable_qty<0;blue:immediately_usable_qty>=0 and state in ('draft', 'end', 'obsolete');black:immediately_usable_qty>=0 and state not in ('draft', 'end', 'obsolete') - - - - - + + red:immediately_usable_qty<0;blue:immediately_usable_qty>=0 and state in ('draft', 'end', 'obsolete');black:immediately_usable_qty>=0 and state not in ('draft', 'end', 'obsolete') + + + + - Quantity available to promise (kanban) product.template - -
  • Available to promise:
  • -
    +
      +
    • Available to Promise:
    • +
    -
    + \ No newline at end of file diff --git a/stock_available/views/res_config_view.xml b/stock_available/views/res_config_view.xml index 850355b67..51eaca46f 100644 --- a/stock_available/views/res_config_view.xml +++ b/stock_available/views/res_config_view.xml @@ -1,4 +1,7 @@ + + @@ -12,7 +15,8 @@