minor fix
This commit is contained in:
parent
009e26d74f
commit
e1aa848945
|
@ -2,10 +2,10 @@
|
|||
<!-- This file is part sale_shop module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="name_channel"/>
|
||||
<field name="name_channel"/>
|
||||
<label name="channel"/>
|
||||
<field name="channel"/>
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="channel_name"/>
|
||||
<field name="channel_name"/>
|
||||
<label name="company"/>
|
||||
<field name="company"/>
|
||||
<label name="app_id"/>
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<!-- This file is part sale_shop module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||
<tree >
|
||||
<field name="name_channel"/>
|
||||
<field name="channel"/>
|
||||
<field name="name"/>
|
||||
<field name="channel_name"/>
|
||||
<field name="shop"/>
|
||||
<field name="redirect_uri"/>
|
||||
<field name="access_token"/>
|
||||
|
|
|
@ -18,6 +18,7 @@ STATES = {
|
|||
}
|
||||
|
||||
CHANNELS = [
|
||||
('', ''),
|
||||
('mercadolibre', 'Mercado Libre'),
|
||||
('rappi', 'Rappi'),
|
||||
('melhous', 'Melhous'),
|
||||
|
@ -48,12 +49,12 @@ class SaleWebChannel(Workflow, ModelSQL, ModelView):
|
|||
'Web Channel'
|
||||
__name__ = 'sale.web_channel'
|
||||
_rec_name = 'channel_name'
|
||||
name_channel = fields.Char('Name Channel')
|
||||
channel= fields.Selection(CHANNELS, 'Channel', select=True,
|
||||
name = fields.Char('Name Channel')
|
||||
channel_name = fields.Selection(CHANNELS, 'Channel', select=True,
|
||||
required=True, states=STATES)
|
||||
company = fields.Many2One('company.company', 'Company', required=True,
|
||||
states=STATES)
|
||||
shop = fields.Many2One('sale.shop', 'Shop', required=True, domain=[
|
||||
shop = fields.Many2One('sale.shop', 'Shop', domain=[
|
||||
('company', '=', Eval('company'))
|
||||
], states=STATES)
|
||||
secret_key = fields.Char('Secret Key', states={
|
||||
|
|
Loading…
Reference in New Issue