minor fix

This commit is contained in:
wilson gomez 2021-08-23 16:43:26 -05:00
parent a032f9cb65
commit 9874090133
2 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
icon="tryton-ok"/>
<button name="finished" string="Finished"
icon="tryton-forward"/>
<button name="refresh_token" string="Finished"
<button name="refresh_token_b" string="Refresh Token"
icon="tryton-ok"/>
</group>

View File

@ -144,8 +144,8 @@ class SaleWebChannel(Workflow, ModelSQL, ModelView):
'finished': {
'invisible': Eval('state') != 'active',
},
'refresh_token': {
'invisible': Eval('channel_name') != 'shopify',
'refresh_token_b': {
'invisible': Eval('channel_name') != 'mercadolibre',
},
})
@ -181,7 +181,7 @@ class SaleWebChannel(Workflow, ModelSQL, ModelView):
@classmethod
@ModelView.button
def refresh_token(cls, records):
def refresh_token_b(cls, records):
if records:
for record in records:
if record.channel_name == 'mercadolibre':