commit
188c79934e
|
@ -191,6 +191,7 @@ class project(osv.osv):
|
|||
'warn_header': fields.text('Mail Header', help="Header added at the beginning of the email for the warning message sent to the customer when a task is closed.", states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
|
||||
'warn_footer': fields.text('Mail Footer', help="Footer added at the beginning of the email for the warning message sent to the customer when a task is closed.", states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
|
||||
'type_ids': fields.many2many('project.task.type', 'project_task_type_rel', 'project_id', 'type_id', 'Tasks Stages', states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
|
||||
'task': fields.boolean('Task',help = "If you check this field tasks appears in kanban view"),
|
||||
}
|
||||
def _get_type_common(self, cr, uid, context):
|
||||
ids = self.pool.get('project.task.type').search(cr, uid, [('project_default','=',1)], context=context)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Project">
|
||||
<group colspan="6" col="6">
|
||||
<group colspan="4" col="8">
|
||||
<field name="name" string="Project Name" select="1"/>
|
||||
<field name="analytic_account_id" invisible="1" required="0"/>
|
||||
<field name="parent_id" string="Parent" domain="[('id','!=',analytic_account_id)]" context="{'current_model': 'project.project'}"/>
|
||||
|
@ -43,6 +43,12 @@
|
|||
<field name="priority"/>
|
||||
<field name="active" attrs="{'invisible':[('state','in',['open', 'pending', 'template'])]}"/>
|
||||
</group>
|
||||
<separator colspan="2" string="Kanban Configuration"/>
|
||||
<newline/>
|
||||
<group col="4" colspan="2" name="kanban">
|
||||
<!--<separator colspan="2" string="Kanban Configuration"/>-->
|
||||
<field name="task"/>
|
||||
</group>
|
||||
<newline/>
|
||||
<separator colspan="4"/>
|
||||
<group col="9" colspan="8">
|
||||
|
|
|
@ -489,7 +489,8 @@ class project(osv.osv):
|
|||
_inherit = "project.project"
|
||||
_columns = {
|
||||
'project_escalation_id' : fields.many2one('project.project','Project Escalation', help='If any issue is escalated from the current Project, it will be listed under the project selected here.', states={'close':[('readonly',True)], 'cancelled':[('readonly',True)]}),
|
||||
'reply_to' : fields.char('Reply-To Email Address', size=256)
|
||||
'reply_to' : fields.char('Reply-To Email Address', size=256),
|
||||
'issues' : fields.boolean('Issues',help = "If you check this field issues are appears in kanban view")
|
||||
}
|
||||
|
||||
def _check_escalation(self, cr, uid, ids, context=None):
|
||||
|
|
|
@ -370,6 +370,9 @@
|
|||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="project.edit_project"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='task']" position="after">
|
||||
<field name="issues"/>
|
||||
</xpath>
|
||||
<field name="priority" position="before">
|
||||
<field name="project_escalation_id"/>
|
||||
<field name="reply_to"/>
|
||||
|
|
|
@ -217,6 +217,7 @@ class project(osv.osv):
|
|||
_inherit = "project.project"
|
||||
_columns = {
|
||||
'phase_ids': fields.one2many('project.phase', 'project_id', "Project Phases"),
|
||||
'phase' : fields.boolean('Phase',help = "If you check this field Phases are appears in kanban view")
|
||||
}
|
||||
def schedule_phases(self, cr, uid, ids, context=None):
|
||||
context = context or {}
|
||||
|
|
|
@ -98,6 +98,17 @@
|
|||
# Project Phase
|
||||
# ------------------------------------------------------
|
||||
|
||||
<record id="project_phase_form" model="ir.ui.view">
|
||||
<field name="name">Inherit project form : Phase</field>
|
||||
<field name="model">project.project</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="project.edit_project"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='task']" position="after">
|
||||
<field name="phase"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_project_phase_form" model="ir.ui.view">
|
||||
<field name="name">project.phase.form</field>
|
||||
<field name="model">project.phase</field>
|
||||
|
|
|
@ -29,6 +29,9 @@ from tools.translate import _
|
|||
class project_project(osv.osv):
|
||||
_inherit = 'project.project'
|
||||
|
||||
_columns = {
|
||||
'timesheets' : fields.boolean('Timesheets',help = "If you check this field timesheets appears in kanban view")
|
||||
}
|
||||
def onchange_partner_id(self, cr, uid, ids, part=False, context=None):
|
||||
res = super(project_project, self).onchange_partner_id(cr, uid, ids, part, context)
|
||||
if part and res and ('value' in res):
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="project.edit_project"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='task']" position='after'>
|
||||
<field name="timesheets"/>
|
||||
</xpath>
|
||||
|
||||
<field name="warn_customer" position="after">
|
||||
<group colspan="4" col="4">
|
||||
<separator colspan="4" string="Invoicing Data"/>
|
||||
|
|
Loading…
Reference in New Issue