diff --git a/cor_custom/models/project.py b/cor_custom/models/project.py
index 0a644f0..cc8acce 100755
--- a/cor_custom/models/project.py
+++ b/cor_custom/models/project.py
@@ -178,7 +178,8 @@ class InheritProjectProductEmployeeMap(models.Model):
val.cost = val.project_id.budgeted_revenue * (val.project_id.manager_per/100) * (val.distribution_per/100)
else:
val.cost = val.project_id.budgeted_revenue * (val.project_id.employee_per/100) * (val.distribution_per/100)
- val.budgeted_qty = val.cost/val.price_unit
+ if val.price_unit > 0.0:
+ val.budgeted_qty = val.cost/val.price_unit
else:
val.cost = 0.0
#val.cost = val.budgeted_qty * val.price_unit
diff --git a/cor_custom/views/project_view.xml b/cor_custom/views/project_view.xml
index e88a31e..c173815 100755
--- a/cor_custom/views/project_view.xml
+++ b/cor_custom/views/project_view.xml
@@ -44,7 +44,7 @@
+ attrs="{'invisible': ['|',('project_type','!=','hours_in_consultant'),('pricing_type','=','fixed_rate')]}"/>