[IMP] Moved Timesheet link to the right place in the project kanban view.

This commit is contained in:
Benjamin Lechalupe 2019-06-12 18:28:38 +02:00
parent 596a39b83a
commit da3086d6fd
2 changed files with 2 additions and 9 deletions

View File

@ -5,15 +5,9 @@
<field name="model">project.project</field>
<field name="inherit_id" ref="project.view_project_kanban"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('o_kanban_card_manage_section')]" position="inside">
<div>
<!-- <a name="open_timesheets_matrix" type="object">Timesheet</a> -->
<button name="open_timesheets_matrix" type="object" string="Workers" class="oe_stat_button" icon="fa-edit" />
</div>
<xpath expr="//a[hasclass('o_project_kanban_box')]" position="before">
<a class="o_project_kanban_box" name="open_timesheets_matrix" type="object">Timesheets</a>
</xpath>
<!-- <field name="task_count" position="after">
<button name="open_project_timesheet_matrix" type="object" string="Timesheet Workers" class="oe_stat_button" icon="fa-edit" />
</field> -->
</field>
</record>
</odoo>

View File

@ -4,7 +4,6 @@ class ProjectTimesheetMatrixWizard(models.TransientModel):
_name = 'project.timesheet.matrix.wiz'
def _default_line_ids(self):
import pdb; pdb.set_trace()
recs = self.env['account.analytic.account'].search([])
users = self.env['account.analytic.line'].search([]).mapped('user_id')