...
 
Commits (2)
......@@ -87,7 +87,7 @@ class ProjectProject(models.Model):
# return ret
code = fields.Char(string='Code', readonly=True)
# ~ description = fields.Char(related='analytic_account_id.name', string='Description')
# description = fields.Char(related='analytic_account_id.name', string='Description')
establishment = fields.Char(string='Establishment')
objective_ids = fields.One2many('project.project.objectives', 'project_id', string='Objetives')
risk_ids = fields.One2many('project.project.risks', 'project_id',
......@@ -109,14 +109,21 @@ class ProjectProject(models.Model):
# ],
# string='Project Type',
# )
# interested = fields.Char(string='Interested')
# short_name = fields.Char(string='Short Name')
# contact_id = fields.Many2one('res.partner', string='Contacto')
# company_id = fields.Many2one(related='analytic_account_id.company_id', readonly=True)
project_type_id = fields.Many2one('project.type', string='Project Type')
sponsor_id = fields.Many2one('res.users', 'Interested in the Project')
notes = fields.Text(string='Notes')
company_code = fields.Char(string='Company Code')
date_due_sale_order = fields.Date('Quote Expiration Date')
certificacion = fields.Text(string='Certifications')
alcance = fields.Text(string='Scope')
# contact_id = fields.Many2one('res.partner', string='Contacto')
contact = fields.Char(string='Contact')
# ~ company_id = fields.Many2one(related='analytic_account_id.company_id', readonly=True)
city = fields.Char(string='City')
state_id = fields.Many2one('res.country.state', string='State')
task_count = fields.Integer(compute="_calc_task_count")
......
......@@ -255,6 +255,9 @@
<field name="partner_id" position="attributes">
<attribute name="string">Client</attribute>
</field>
<field name="partner_id" position="after">
<field name="company_code"/>
</field>
</field>
</record>
......@@ -266,13 +269,11 @@
<xpath expr="//field[@name='name']" position="before">
<field name="code"/>
</xpath>
<!--
<xpath expr="//a[@name='%(project.act_project_project_2_project_task_all)d']" position="replace">
<a type="open">
<t t-raw="record.task_count.raw_value"/> Tasks
</a>
</xpath>
-->
<!-- <xpath expr="//a[@name='%(project.act_project_project_2_project_task_all)d']" position="replace"> -->
<!-- <a type="open"> -->
<!-- <t t&#45;raw="record.task_count.raw_value"/> Tasks -->
<!-- </a> -->
<!-- </xpath> -->
</field>
</record>
......@@ -344,9 +345,9 @@
<field name="parent_id" domain="[('id', '!=', id)]" invisible="1"/>
</field>
<!-- <field name="user_id" position="replace">
<field name="members_ids" widget="many2many_tags" invisible="1"/>
</field> -->
<!-- <field name="user_id" position="replace"> -->
<!-- <field name="members_ids" widget="many2many_tags" invisible="1"/> -->
<!-- </field> -->
<!-- <field name="reviewer_id" position="attributes"> -->
<!-- <attribute name="invisible">1</attribute> -->
<!-- </field> -->
......