Merge branch 'pawan_branch' into 'development'

add comment field in project screen

See merge request prakash.jain/cor-odoo!84
This commit is contained in:
pawan.sharma 2021-01-19 00:19:06 -08:00
commit 3977a4a261
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ class Project(models.Model):
consultant_timesheet_hrs = fields.One2many('consultant.timesheet.hrs', 'project_id', "Timesheet Hrs",
copy=False, help="Consultant timesheet hours")
project_cons_hrs = fields.One2many('project.consultant.hrs', 'project_id', 'Consultant Allocation', copy=False)
comment = fields.Text(string='Comment')
def _onchange_calculate_timesheet_hours(self):
self.consultant_timesheet_hrs = [(6, 0, False)]

View File

@ -61,6 +61,7 @@
<field name="project_type" attrs="{'invisible': [('pricing_type', '=', 'fixed_rate')]}"
widget="radio"/>
<field name="budgeted_revenue" required="1" />
<field name="comment"/>
<!-- attrs="{'invisible': [('pricing_type','=','fixed_rate')], 'required': [('pricing_type','!=','fixed_rate')]}"-->
<field name="hour_distribution" widget="radio"