Merge branch 'cr_task' into 'master'
Cr task See merge request prakash.jain/cor-odoo!209
This commit is contained in:
commit
519ef222e8
|
@ -134,10 +134,15 @@ class Project(models.Model):
|
|||
record.timesheet_hour = timesheet_hour
|
||||
total_exp = record.consultant_cost + record.expenses_amt
|
||||
record.total_expenses = total_exp
|
||||
profit_amt = record.budgeted_revenue - total_exp
|
||||
record.profit_amt = profit_amt
|
||||
if record.profit_amt > 0 and record.budgeted_revenue > 0:
|
||||
record.profit_per = (record.profit_amt / record.budgeted_revenue) * 100
|
||||
#record.profit_amt = record.budgeted_revenue - total_exp
|
||||
# if record.profit_amt > 0 and record.budgeted_revenue > 0:
|
||||
# record.profit_per = (record.profit_amt / record.budgeted_revenue) * 100
|
||||
|
||||
##### CR Changes
|
||||
record.profit_amt = record.actual_revenue - record.consultant_cost
|
||||
if record.profit_amt > 0:
|
||||
record.profit_per = (record.profit_amt / record.actual_revenue) * 100
|
||||
########################
|
||||
if record.project_type == 'hours_in_consultant' and record.budgeted_hours > 0.0:
|
||||
record.hourly_rate = (record.budgeted_revenue / record.budgeted_hours)
|
||||
# if record.project_type == 'hours_no_limit' and record.budgeted_hours2 > 0.0:
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<field name="currency_id" invisible="1"/>
|
||||
<field name="budgeted_qty"
|
||||
attrs="{'readonly': [('parent.project_type', '=', 'hours_no_limit')]}"/>
|
||||
<field name="cost"/>
|
||||
<field name="cost" string="Budgeted"/>
|
||||
<!--<field name="timesheet_product_id"
|
||||
attrs="{'column_invisible': [('parent.sale_order_id', '!=', False)]}"/>-->
|
||||
<!--<field name="budgeted_uom"
|
||||
|
|
Loading…
Reference in New Issue