Skip to content
Extraits de code Groupes Projets
Valider c1043549 rédigé par Benjamin's avatar Benjamin
Parcourir les fichiers

modification vues et ajout fonctions

parent 6cf299c3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -10,3 +10,8 @@ class ScopTimesheetCode(models.Model): ...@@ -10,3 +10,8 @@ class ScopTimesheetCode(models.Model):
_order = 'name' _order = 'name'
name = fields.Char('Nom') name = fields.Char('Nom')
company_id = fields.Many2one(
comodel_name='res.company',
string='Company',
required=True,
default=lambda self: self.env.user.company_id)
...@@ -16,10 +16,6 @@ class ScopHrTimesheet(models.Model): ...@@ -16,10 +16,6 @@ class ScopHrTimesheet(models.Model):
comodel_name='ur.financial.system', comodel_name='ur.financial.system',
string='Dispositif Financier') string='Dispositif Financier')
# ------------------------------------------------------
# Compute Functions
# ------------------------------------------------------
# ------------------------------------------------------ # ------------------------------------------------------
# OnChange Functions # OnChange Functions
# ------------------------------------------------------ # ------------------------------------------------------
......
...@@ -10,13 +10,7 @@ class ScopProjectTimesheet(models.Model): ...@@ -10,13 +10,7 @@ class ScopProjectTimesheet(models.Model):
cgscop_timesheet_code_id = fields.Many2one( cgscop_timesheet_code_id = fields.Many2one(
comodel_name='cgscop.timesheet.code', comodel_name='cgscop.timesheet.code',
string='Code Activité CG') string='Code Activité CG')
privacy_visibility = fields.Selection(default="employees")
# ------------------------------------------------------
# Compute Functions
# ------------------------------------------------------
# ------------------------------------------------------
# Onchange Functions
# ------------------------------------------------------
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree editable='top'> <tree editable='top'>
<field name="name" /> <field name="name" />
<field name="company_id" groups="base.group_no_one" />
</tree> </tree>
</field> </field>
</record> </record>
......
...@@ -27,5 +27,24 @@ ...@@ -27,5 +27,24 @@
</field> </field>
</record> </record>
<!-- Pivot View Timesheet CG -->
<record id="view_cgscop_hr_timesheet_line_pivot" model="ir.ui.view">
<field name="name">account.analytic.line.timesheet.cgscop.pivot</field>
<field name="model">account.analytic.line</field>
<field name="arch" type="xml">
<pivot string="Rapport">
<field name="project_id" type="row"/>
<field name="date" type="col"/>
<field name="unit_amount" type="measure"/>
</pivot>
</field>
</record>
<!-- Hérite l'action de la fenetre -->
<record id="hr_timesheet.act_hr_timesheet_line" model="ir.actions.act_window">
<field name="view_mode">tree,form,pivot,graph</field>
</record>
</data> </data>
</odoo> </odoo>
\ No newline at end of file
...@@ -37,6 +37,21 @@ ...@@ -37,6 +37,21 @@
<field name="allow_timesheets" invisible="1"/> <field name="allow_timesheets" invisible="1"/>
</group> </group>
</group> </group>
<group string="Configuration" name="project_config" groups="base.group_no_one">
<group>
<field name="user_id" string="Project Manager"
attrs="{'readonly':[('active','=',False)]}"/>
<field name="sequence" groups="base.group_no_one"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
<group >
<field name="allow_timesheets" />
<field name="privacy_visibility" widget="radio"/>
<field name="resource_calendar_id" groups="base.group_no_one"/>
</group>
</group>
</sheet> </sheet>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" help="Follow this project to automatically track the events associated to tasks and issues of this project." groups="base.group_user"/> <field name="message_follower_ids" widget="mail_followers" help="Follow this project to automatically track the events associated to tasks and issues of this project." groups="base.group_user"/>
...@@ -127,13 +142,6 @@ ...@@ -127,13 +142,6 @@
'default_privacy_visibility': 'employees', 'default_privacy_visibility': 'employees',
'default_allow_timesheets': True, 'default_allow_timesheets': True,
}</field> }</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
Create a new project
</p><p>
Organize your activities (plan tasks, track issues, invoice timesheets) for internal, personal or customer projects.
</p>
</field>
</record> </record>
<menuitem <menuitem
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter