mirror of https://github.com/OCA/web.git
[MIG] web_widget_slick_example: Migrate to v10
* Bump version * Rename __openerp__.py -> __manifest__.py * Replace openerp import, tags with odoo * Remove data tags * Replace LasLabs icon w/ OCA icon * Update readme * Update license (AGPL -> LGPL) * Update copyrightpull/706/head
parent
b3ffddfb95
commit
63bfc0f668
|
@ -1,13 +1,20 @@
|
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
|
||||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
||||
:alt: License: LGPL-3
|
||||
|
||||
====================
|
||||
Slick Widget Example
|
||||
====================
|
||||
=============================
|
||||
Slick Carousel Widget Example
|
||||
=============================
|
||||
|
||||
This module provides an example of how to implement the web_widget_slick module
|
||||
This module provides an example of how to implement the web_widget_slick module.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/web/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smash it by providing detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
@ -15,18 +22,27 @@ Credits
|
|||
Images
|
||||
------
|
||||
|
||||
* LasLabs: `Icon <https://repo.laslabs.com/projects/TEM/repos/odoo-module_template/browse/module_name/static/description/icon.svg?raw>`_.
|
||||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Dave Lasley <dave@laslabs.com>
|
||||
* Brent Hughes <brent.hughes@laslabs.com>
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: https://laslabs.com/logo.png
|
||||
:alt: LasLabs Inc.
|
||||
:target: https://laslabs.com
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
This module is maintained by LasLabs Inc.
|
||||
This module is maintained by the OCA.
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © 2016-TODAY LasLabs Inc.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
# Copyright 2016-2017 LasLabs Inc.
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from . import models
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © 2016-TODAY LasLabs Inc.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
# Copyright 2016-2017 LasLabs Inc.
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
{
|
||||
"name": "Slick Widget Example",
|
||||
"name": "Slick Carousel Widget Example",
|
||||
"summary": "Example usage of the web_widget_slick module",
|
||||
"version": "9.0.1.0.0",
|
||||
"version": "10.0.1.0.0",
|
||||
"category": "Hidden",
|
||||
"website": "https://laslabs.com/",
|
||||
"author": "LasLabs",
|
||||
"license": "AGPL-3",
|
||||
"author": "LasLabs, Odoo Community Association (OCA)",
|
||||
"license": "LGPL-3",
|
||||
"application": False,
|
||||
"installable": True,
|
||||
"depends": [
|
||||
|
@ -21,5 +21,5 @@
|
|||
],
|
||||
"demo": [
|
||||
'demo/slick_example_data.xml',
|
||||
]
|
||||
],
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2016-2017 LasLabs Inc.
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from . import slick_example
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# © 2016-TODAY LasLabs Inc.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
# Copyright 2016-2017 LasLabs Inc.
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from openerp import models, fields
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class SlickExample(models.Model):
|
||||
_name = 'slick.example'
|
||||
_description = 'Slick Example Model'
|
||||
|
||||
image_ids = fields.One2many(
|
||||
name='Images',
|
||||
comodel_name='ir.attachment',
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.2 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 932 KiB After Width: | Height: | Size: 45 KiB |
|
@ -1,52 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2016-2017 LasLabs Inc.
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->
|
||||
|
||||
<!--
|
||||
Copyright (C) 2016-TODAY LasLabs, Inc. [https://laslabs.com]
|
||||
@author Dave Lasley <dave@laslabs.com>
|
||||
@license AGPL-3
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="slick_example_view_form" model="ir.ui.view">
|
||||
<field name="name">slick.example.view.form</field>
|
||||
<field name="model">slick.example</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Slick Example">
|
||||
<header />
|
||||
<sheet>
|
||||
<odoo>
|
||||
<record id="slick_example_view_form" model="ir.ui.view">
|
||||
<field name="name">slick.example.view.form</field>
|
||||
<field name="model">slick.example</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Slick Example">
|
||||
<header />
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="image_ids" widget="one2many_slick_images"
|
||||
options="{'slidesToShow': 2}" />
|
||||
</sheet>
|
||||
<footer />
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
options="{'slidesToShow': 2}" />
|
||||
</group>
|
||||
</sheet>
|
||||
<footer />
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="slick_example_view_tree" model="ir.ui.view">
|
||||
<field name="name">slick.example.view.tree</field>
|
||||
<field name="model">slick.example</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Slick Example">
|
||||
<field name="id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="slick_example_action" model="ir.actions.act_window">
|
||||
<field name="name">Slick Examples</field>
|
||||
<field name="res_model">slick.example</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="slick_example_menu"
|
||||
name="Slick"
|
||||
parent="base.menu_custom"
|
||||
action="slick_example_action"
|
||||
sequence="1" />
|
||||
<record id="slick_example_view_tree" model="ir.ui.view">
|
||||
<field name="name">slick.example.view.tree</field>
|
||||
<field name="model">slick.example</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Slick Example">
|
||||
<field name="id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
<record id="slick_example_action" model="ir.actions.act_window">
|
||||
<field name="name">Slick Examples</field>
|
||||
<field name="res_model">slick.example</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="slick_example_menu"
|
||||
name="Slick"
|
||||
parent="base.menu_custom"
|
||||
action="slick_example_action"
|
||||
sequence="1" />
|
||||
</odoo>
|
||||
|
|
Loading…
Reference in New Issue