Commit d803d49d by Maria Agustina

terminada 853

0 parents
# -*- coding: utf-8 -*-
from . import models
\ No newline at end of file
# -*- coding: utf-8 -*-
{
'name': "hgt_mercadolibre",
'summary': """
hgt_mercadolibre """,
'description': """
hgt_mercadolibre
""",
'author': 'HGT',
# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml
# for the full list
'category': '',
'version': '0.00.00.21',
# any module necessary for this one to work correctly
'depends': ['base',
'hgt_dispositivos',
],
# always loaded
'data': [
'security/ir.model.access.csv',
'views/mercadolibre_vista.xml',
'views/menu_vista.xml',
],
# only loaded in demonstration mode
'demo': [
#'demo/demo.xml',
],
}
\ No newline at end of file
# -*- coding: utf-8 -*-
from . import mercadolibre
\ No newline at end of file
No preview for this file type
No preview for this file type
# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions
class hgt_mercadolibre(models.Model):
_name = 'hgt.mercadolibre'
ml_nombre = fields.Char(
string="Nombre",
)
ml_token = fields.Char(
string="Token",
)
ml_hoock = fields.Char(
string="Hoock",
)
\ No newline at end of file
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hgt_mercadolibre,access_hgt_mercadolibre,model_hgt_mercadolibre,,1,1,1,1
\ No newline at end of file
<odoo>
<data>
<menuitem name="Servicios externos" sequence="90" id="hgt_mercadolibre_servicios" parent="hgt_dispositivos.hgt_dispositivos_root"/>
<menuitem name="Mercado Pago"
id="hgt_mercadolibre_servicios_mercado"
parent="hgt_mercadolibre_servicios"
action="hgt_mercadolibre_list_action"/>
</data>
</odoo>
\ No newline at end of file
<odoo>
<data>
<record model="ir.actions.act_window" id="hgt_mercadolibre_list_action">
<field name="name">Mercado Libre</field>
<field name="res_model">hgt.mercadolibre</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<record id="view_tree_mercadolibre_ui" model="ir.ui.view">
<field name="name">Mercado Libre</field>
<field name="model">hgt.mercadolibre</field>
<field name="arch" type="xml">
<tree>
<field name="ml_nombre" />
<field name="ml_token" />
<field name="ml_hoock" />
</tree>
</field>
</record>
<record id="view_form_mercadolibre_ui" model="ir.ui.view">
<field name="name">Mercado Libre</field>
<field name="model">hgt.mercadolibre</field>
<field name="arch" type="xml">
<form>
<header>
</header>
<sheet>
<group col='4'>
<field name="ml_nombre" colspan="2" />
<field name="ml_token" colspan="2"/>
<field name="ml_hoock"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_search_mercadolibre" model="ir.ui.view">
<field name="name">Mercado Libre</field>
<field name="model">hgt.mercadolibre</field>
<field name="arch" type="xml">
<search>
<field name="ml_nombre"/>
<field name="ml_token"/>
<field name="ml_hoock"/>
</search>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
# -*- coding: utf-8 -*-
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!