Skip to content

Commit f796a0f

Browse files
committed
[REF] image_tag: server_environment should not be a required dependency
1 parent 4d047fa commit f796a0f

5 files changed

Lines changed: 29 additions & 20 deletions

File tree

image_tag/README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
=========
26
Image Tag
37
=========
@@ -13,7 +17,7 @@ Image Tag
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github

image_tag/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"license": "AGPL-3",
1010
"author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/storage",
12-
"depends": ["server_environment"],
12+
"depends": ["base"],
1313
"data": [
1414
"security/res_groups.xml",
1515
"security/image_tag.xml",

image_tag/models/image_tag.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
class ImageTag(models.Model):
1010
_name = "image.tag"
11-
_inherit = ["server.env.techname.mixin"]
1211
_description = "Image Tag"
1312

1413
@api.model

image_tag/static/description/index.html

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
65
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
7-
<title>Image Tag</title>
6+
<title>README.rst</title>
87
<style type="text/css">
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="image-tag">
364-
<h1 class="title">Image Tag</h1>
363+
<div class="document">
365364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="image-tag">
370+
<h1>Image Tag</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:05203837238360e0c011f8ed825bbf70e20f56a5157f18585a37353e9a148a86
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/16.0/image_tag"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-image_tag"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/storage&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/storage/tree/16.0/image_tag"><img alt="OCA/storage" src="https://img.shields.io/badge/github-OCA%2Fstorage-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/storage-16-0/storage-16-0-image_tag"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/storage&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>This addon provide only one basic model used to define image’s tags. These
374379
tags are used by other addons to enrich the image’s information of an image
375380
linked to an other model. The <cite>fs_product_multi_image</cite> addon use this model.</p>
@@ -387,37 +392,39 @@ <h1 class="title">Image Tag</h1>
387392
</ul>
388393
</div>
389394
<div class="section" id="usage">
390-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
395+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
391396
<p>To manage the list of available tags, you must have the <tt class="docutils literal">Image Tag Manager</tt>
392397
role.</p>
393398
</div>
394399
<div class="section" id="bug-tracker">
395-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
400+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
396401
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/storage/issues">GitHub Issues</a>.
397402
In case of trouble, please check there if your issue has already been reported.
398403
If you spotted it first, help us to smash it by providing a detailed and welcomed
399404
<a class="reference external" href="https://github.com/OCA/storage/issues/new?body=module:%20image_tag%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
400405
<p>Do not contact contributors directly about support or help with technical issues.</p>
401406
</div>
402407
<div class="section" id="credits">
403-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
408+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
404409
<div class="section" id="authors">
405-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
410+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
406411
<ul class="simple">
407412
<li>ACSONE SA/NV</li>
408413
<li>Akretion</li>
409414
</ul>
410415
</div>
411416
<div class="section" id="contributors">
412-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
417+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
413418
<ul class="simple">
414419
<li>Laurent Mignon &lt;<a class="reference external" href="mailto:laurent.mignon&#64;acsone.eu">laurent.mignon&#64;acsone.eu</a>&gt;</li>
415420
</ul>
416421
</div>
417422
<div class="section" id="maintainers">
418-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
423+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
419424
<p>This module is maintained by the OCA.</p>
420-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
425+
<a class="reference external image-reference" href="https://odoo-community.org">
426+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
427+
</a>
421428
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
422429
mission is to support the collaborative development of Odoo features and
423430
promote its widespread use.</p>
@@ -426,5 +433,6 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
426433
</div>
427434
</div>
428435
</div>
436+
</div>
429437
</body>
430438
</html>

image_tag/views/image_tag.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<field name="arch" type="xml">
66
<tree editable="bottom">
77
<field name="name" />
8-
<field name="tech_name" />
98
<field name="apply_on" />
109
</tree>
1110
</field>
@@ -15,7 +14,6 @@
1514
<field name="arch" type="xml">
1615
<search string="Image Tag">
1716
<field name="name" />
18-
<field name="tech_name" />
1917
</search>
2018
</field>
2119
</record>

0 commit comments

Comments
 (0)