# -*- coding: utf-8 -*-
#
#    Author: Alexandre Fayolle, Leonardo Pistone
#    Copyright 2014 Camptocamp SA
#
#    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/>.
#
#
{
    'name': "Sale Quotation Sourcing",

    'summary': "manual sourcing of sale quotations",
    'description': """
    This module implements manual sourcing of sale order lines from purchase
    order lines.

    Instead of having a the confirmation of a SO generate procurements which in
    turn may generate PO, we invert the process: in order to generate a quote
    for a customer, it can be necessary to ask our suppliers from some
    quotes. Once the quote is accepted by the customer and the user confirms
    the SO, a wizard is presented which enables choosing the different PO to
    use to source the SO lines.

    The process should mimic closely the way that Odoo handles a MTO, buy
    order. The only difference is that the PO is chosen manually and not
    automatically generated. The end result should be the same.

    To show that, two test cases are provided that show the standard process
    and the manually sourced one.""",

    'author': "Camptocamp",
    'website': "http://www.camptocamp.com",

    'category': 'Sales',
    'version': '0.1',

    'depends': ['sale_stock', 'purchase'],
    'data': ['views/sale_order_sourcing.xml',
             'views/sale_order.xml',
             'security/group.xml',
             ],
    'test': [
        'test/setup_user.yml',
        'test/setup_product.yml',
        'test/test_standard_mto_sourcing.yml',
        'test/test_manual_mto_sourcing.yml',
    ],
}

# -*- coding: utf-8 -*-
#
#    Author: Alexandre Fayolle, Leonardo Pistone
#    Copyright 2014 Camptocamp SA
#
#    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/>.
#
#
{
    'name': "Sale Quotation Sourcing",

    'summary': "manual sourcing of sale quotations",
    'description': """
    This module implements manual sourcing of sale order lines from purchase
    order lines.

    Instead of having the confirmation of a SO generate procurements which in
    turn may generate a PO, we invert the process: in order to generate a quote
    for a customer, we ask quotes to different suppliers.

    Once the sale quotation is accepted by the customer and the user confirms
    it, a wizard is presented to choose which PO to use to source the SO lines.

    The process should mimic closely the way that Odoo handles a MTO, buy
    order. The only difference is that the PO is chosen manually and not
    automatically generated. The end result should be the same.

    To show that, two test cases are provided that show the standard process
    and the manually sourced one.""",

    'author': "Camptocamp",
    'website': "http://www.camptocamp.com",

    'category': 'Sales',
    'version': '0.1',

    'depends': ['sale_stock', 'purchase'],
    'data': ['views/sale_order_sourcing.xml',
             'views/sale_order.xml',
             'security/group.xml',
             ],
    'test': [
        'test/setup_user.yml',
        'test/setup_product.yml',
        'test/test_standard_mto_sourcing.yml',
        'test/test_manual_mto_sourcing.yml',
    ],
}

improve doc