# -*- coding: utf-8 -*-
# @author Daniel Yang(daniel.yang.zhenyu@gmail.com)
# License AGPL-3
{
    'name': 'Nice Customer Credit Limit Management',
    'author': "Daniel Yang",
    'website': "https://github.com/zyyang/",
    'support': 'daniel.yang.zhenyu@gmail.com',
    'summary': """
        A nice solution for managing customer credit limit.
        """,
    'description': """
Customer Credit Management for Odoo
===================================
A nice solution for managing customer credit limit.

Features:
---------
1. Individual credit limit v.s. global credit limit for every partner(company type);
2. Support partner with childern partner(s): all ; Compute credit&debit using account app.
3. Include/exclude uninvoiced amount(from sale orders);
4. New user role to approve/disapprove the sale order with state of account_review.
5. Configurable behavior of sale orders of over-limit partner: 
    raising an exception directly or leaving to the concerned role.

Validate steps:
---------------
1. See if we 'Use Global Limit'. If yes, choose the global credit limit as partner's credit limit.
2. See if the partner has an individual credit limit. If yes, choose the individual credit limit  as partner's credit limit.
3. See if we 'Include Uninvoiced Amount', if yes, we add all unvoiced amount to this partner's credit limit.
4. See if we simply raise an exception or set the sale order's state to 'account_review'
    """,
    'category': 'Odex25-Sales/Odex25-Sales',
    'version': '0.0.3',
    'depends': [
    	'sale_management', 'account',
    ],
    'data': [
        'security/groups.xml',
        'views/res_config_settings.xml',
        'views/res_partner.xml',
        'views/sale_views.xml',
    ],
    'installable': True,
    'application': False,
    'auto_install': False,

    'license': 'AGPL-3',
}
