mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] helpdesk_rma: for Odoo 12.0
Additionally hide button if there is no assigned customer
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
'name': 'Helpdesk RMA',
|
'name': 'Helpdesk RMA',
|
||||||
'summary': 'Adds RMA functionality to the Helpdesk App',
|
'summary': 'Adds RMA functionality to the Helpdesk App',
|
||||||
'version': '11.0.1.0.0',
|
'version': '12.0.1.0.0',
|
||||||
'author': "Hibou Corp.",
|
'author': "Hibou Corp.",
|
||||||
'category': 'Helpdesk',
|
'category': 'Helpdesk',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<xpath expr="//button[@name='toggle_active']" position="before">
|
<xpath expr="//button[@name='toggle_active']" position="before">
|
||||||
<button class="oe_stat_button" type="object" name="action_partner_rma"
|
<button class="oe_stat_button" type="object" name="action_partner_rma"
|
||||||
context="{'search_default_partner_id': partner_id}"
|
context="{'search_default_partner_id': partner_id}"
|
||||||
|
attrs="{'invisible': [('partner_id', '=', False)]}"
|
||||||
icon="fa-cubes">
|
icon="fa-cubes">
|
||||||
<field string="RMAs" name="rma_count" widget="statinfo"/>
|
<field string="RMAs" name="rma_count" widget="statinfo"/>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user