mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] helpdesk_sales: for Odoo 12.0
Additionally hide button if there is no assigned customer
This commit is contained in:
committed by
Jared Kipe
parent
974c8967d2
commit
9238b912d9
@@ -1,7 +1,7 @@
|
||||
{
|
||||
'name': 'Helpdesk Sales',
|
||||
'summary': 'Adds smart button on Helpdesk Tickets to see and create Sale Orders',
|
||||
'version': '11.0.1.0.0',
|
||||
'version': '12.0.1.0.0',
|
||||
'author': "Hibou Corp.",
|
||||
'category': 'Helpdesk',
|
||||
'license': 'AGPL-3',
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<xpath expr="//button[@name='toggle_active']" position="before">
|
||||
<button class="oe_stat_button" type="object" name="action_partner_sales"
|
||||
context="{'search_default_partner_id': partner_id}"
|
||||
attrs="{'invisible': [('partner_id', '=', False)]}"
|
||||
icon="fa-usd">
|
||||
<field string="Sales" name="sale_order_count" widget="statinfo"/>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user