minor fix
This commit is contained in:
parent
a032f9cb65
commit
9874090133
|
@ -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>
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue