forked from Techsystech/web
[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 copyright10.0
parent
b3ffddfb95
commit
63bfc0f668
|
@ -1,13 +1,20 @@
|
||||||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
|
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
|
||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
: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
|
Credits
|
||||||
=======
|
=======
|
||||||
|
@ -15,18 +22,27 @@ Credits
|
||||||
Images
|
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
|
Contributors
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* Dave Lasley <dave@laslabs.com>
|
* Dave Lasley <dave@laslabs.com>
|
||||||
|
* Brent Hughes <brent.hughes@laslabs.com>
|
||||||
|
|
||||||
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
|
||||||
.. image:: https://laslabs.com/logo.png
|
.. image:: https://odoo-community.org/logo.png
|
||||||
:alt: LasLabs Inc.
|
:alt: Odoo Community Association
|
||||||
:target: https://laslabs.com
|
: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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# © 2016-TODAY LasLabs Inc.
|
# Copyright 2016-2017 LasLabs Inc.
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
from . import models
|
from . import models
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# © 2016-TODAY LasLabs Inc.
|
# Copyright 2016-2017 LasLabs Inc.
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# 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",
|
"summary": "Example usage of the web_widget_slick module",
|
||||||
"version": "9.0.1.0.0",
|
"version": "10.0.1.0.0",
|
||||||
"category": "Hidden",
|
"category": "Hidden",
|
||||||
"website": "https://laslabs.com/",
|
"website": "https://laslabs.com/",
|
||||||
"author": "LasLabs",
|
"author": "LasLabs, Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "LGPL-3",
|
||||||
"application": False,
|
"application": False,
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"depends": [
|
"depends": [
|
||||||
|
@ -21,5 +21,5 @@
|
||||||
],
|
],
|
||||||
"demo": [
|
"demo": [
|
||||||
'demo/slick_example_data.xml',
|
'demo/slick_example_data.xml',
|
||||||
]
|
],
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- 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
|
from . import slick_example
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# © 2016-TODAY LasLabs Inc.
|
# Copyright 2016-2017 LasLabs Inc.
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# 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):
|
class SlickExample(models.Model):
|
||||||
_name = 'slick.example'
|
_name = 'slick.example'
|
||||||
_description = 'Slick Example Model'
|
_description = 'Slick Example Model'
|
||||||
|
|
||||||
image_ids = fields.One2many(
|
image_ids = fields.One2many(
|
||||||
name='Images',
|
name='Images',
|
||||||
comodel_name='ir.attachment',
|
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"?>
|
<?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). -->
|
||||||
|
|
||||||
<!--
|
<odoo>
|
||||||
Copyright (C) 2016-TODAY LasLabs, Inc. [https://laslabs.com]
|
<record id="slick_example_view_form" model="ir.ui.view">
|
||||||
@author Dave Lasley <dave@laslabs.com>
|
<field name="name">slick.example.view.form</field>
|
||||||
@license AGPL-3
|
<field name="model">slick.example</field>
|
||||||
-->
|
<field name="arch" type="xml">
|
||||||
|
<form string="Slick Example">
|
||||||
<openerp>
|
<header />
|
||||||
<data>
|
<sheet>
|
||||||
|
<group>
|
||||||
<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>
|
|
||||||
<field name="image_ids" widget="one2many_slick_images"
|
<field name="image_ids" widget="one2many_slick_images"
|
||||||
options="{'slidesToShow': 2}" />
|
options="{'slidesToShow': 2}" />
|
||||||
</sheet>
|
</group>
|
||||||
<footer />
|
</sheet>
|
||||||
</form>
|
<footer />
|
||||||
</field>
|
</form>
|
||||||
</record>
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="slick_example_view_tree" model="ir.ui.view">
|
<record id="slick_example_view_tree" model="ir.ui.view">
|
||||||
<field name="name">slick.example.view.tree</field>
|
<field name="name">slick.example.view.tree</field>
|
||||||
<field name="model">slick.example</field>
|
<field name="model">slick.example</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree string="Slick Example">
|
<tree string="Slick Example">
|
||||||
<field name="id" />
|
<field name="id" />
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="slick_example_action" model="ir.actions.act_window">
|
<record id="slick_example_action" model="ir.actions.act_window">
|
||||||
<field name="name">Slick Examples</field>
|
<field name="name">Slick Examples</field>
|
||||||
<field name="res_model">slick.example</field>
|
<field name="res_model">slick.example</field>
|
||||||
<field name="type">ir.actions.act_window</field>
|
<field name="type">ir.actions.act_window</field>
|
||||||
<field name="view_type">form</field>
|
<field name="view_type">form</field>
|
||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<menuitem id="slick_example_menu"
|
<menuitem id="slick_example_menu"
|
||||||
name="Slick"
|
name="Slick"
|
||||||
parent="base.menu_custom"
|
parent="base.menu_custom"
|
||||||
action="slick_example_action"
|
action="slick_example_action"
|
||||||
sequence="1" />
|
sequence="1" />
|
||||||
|
</odoo>
|
||||||
</data>
|
|
||||||
</openerp>
|
|
||||||
|
|
Loading…
Reference in New Issue