diff --git a/cor_custom/models/__init__.py b/cor_custom/models/__init__.py index 1ea025e..57c1fa3 100755 --- a/cor_custom/models/__init__.py +++ b/cor_custom/models/__init__.py @@ -6,4 +6,4 @@ from . import project from . import project_overview from . import analytic from . import product -#from . import sale \ No newline at end of file +from . import sale \ No newline at end of file diff --git a/cor_custom/models/sale.py b/cor_custom/models/sale.py index c2e54c1..5685303 100755 --- a/cor_custom/models/sale.py +++ b/cor_custom/models/sale.py @@ -23,6 +23,9 @@ class SaleOrderLine(models.Model): values['name'] = name if project_mangager_id: values['user_id'] = project_mangager_id + values['allow_billable'] = True + values['bill_type'] = 'customer_project' + values['pricing_type'] = 'fixed_rate' return values