[FIX] sale_timesheet: visibility attrs on Sale Order button
This is a fix of this fix: https://github.com/odoo/odoo/pull/73239 As the button has been moved to another module, the attrs were less coherent with the current (sale_timesheet) module. An inheritance was made to add the correct attrs when this module is installed. opw-2530161 closes odoo/odoo#74192 X-original-commit: 4ea0cddb57608eb7fc75066d2c4ff385c838e10c Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com> Signed-off-by: prro-odoo <proose@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
<xpath expr="//button[@name='%(project.action_project_task_burndown_chart_report)d']" position="after">
|
||||
<button string="Costs / Revenues" class="oe_stat_button" type="object" name="action_view_timesheet" icon="fa-puzzle-piece" attrs="{'invisible': [('allow_billable', '=', False)]}" groups="project.group_project_manager"/>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_view_so']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': ['|', ('allow_billable', '=', False), ('sale_order_id', '=', False)]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//header" position="inside">
|
||||
<button name="action_make_billable" string="Create Sales Order" type="object" attrs="{'invisible': [('display_create_order', '=', False)]}" groups="sales_team.group_sale_salesman"/>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user