Commit d0763746 authored by Вадим Караваєв's avatar Вадим Караваєв
Browse files

added crnd_survey_template addon

parent 619bc173
Pipeline #13779 failed with stages
in 3 minutes and 8 seconds
11.0.1.2.5
11.0.1.2.6
CRND Survey Template
====================
.. |badge1| image:: https://img.shields.io/badge/pipeline-pass-brightgreen.png
:target: https://github.com/crnd-inc/generic-addons
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/powered%20by-yodoo.systems-00a09d.png
:target: https://yodoo.systems
.. |badge5| image:: https://img.shields.io/badge/maintainer-CR&D-purple.png
:target: https://crnd.pro/
|badge1| |badge2| |badge5|
Technical addon. Adds field to Survey model to mark surveys as a templates.
Launch your own ITSM system in 60 seconds:
''''''''''''''''''''''''''''''''''''''''''
Create your own `Bureaucrat ITSM <https://yodoo.systems/saas/template/itsm-16>`__ database
|badge3|
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/crnd-inc/generic-addons/issues>`_.
In case of trouble, please check there if your issue has already been reported.
Maintainer
''''''''''
.. image:: https://crnd.pro/web/image/3699/300x140/crnd.png
Our web site: https://crnd.pro/
This module is maintained by the Center of Research & Development company.
We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.
For any questions `contact us <mailto:info@crnd.pro>`__.
{
'name': 'CRND Survey Template',
'summary': '',
'version': '11.0.1.0.0',
'author': 'Center of Research and Development',
'license': 'LGPL-3',
'category': 'Others',
'depends': [
'survey',
],
'data': [
'views/survey_view.xml',
],
'images': ['static/description/banner.png'],
'installable': True,
'auto_install': False,
}
from odoo import fields, models
class Survey(models.Model):
_inherit = 'survey.survey'
is_request_template = fields.Boolean(
string="Survey template",
help="Allows to re-use a survey as a template to create new ones",
copy=False,
)
<section style="max-width: 896px; margin: 0 auto;">
<div align="center">
<h1 style="color:#875A7B;">CRND Survey Template</h1>
</div>
<div align="center">
<p><a href="https://github.com/crnd-inc/generic-addons"><img alt="pipeline-pass" src="https://img.shields.io/badge/pipeline-pass-brightgreen.png" /></a> <a href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a href="https://crnd.pro/"><img alt="CR&amp;D" src="https://img.shields.io/badge/maintainer-CR&amp;D-purple.png"/></a>
</p>
<p><br></p>
</div>
</section>
<section style="margin: 0 auto; max-width: 896px;">
<div>
<p>Technical addon. Adds field to Survey model to mark surveys as a templates.</p>
</div>
</section>
<section style="max-width: 896px; margin: 0 auto;">
<div>
<h3>Bug Tracker</h3>
<p>Bugs are tracked on <a href="https://github.com/crnd-inc/generic-addons/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported.
</p>
<p><br></p>
</div>
</section>
<section align="center" style="max-width: 896px; margin: 0 auto;">
<div>
<h2 style="color:#875A7B;">Launch your own ITSM system in 60 seconds:</h2>
<p>Create your own <a href="https://yodoo.systems/saas/template/itsm-16">Bureaucrat ITSM</a> database
<a href="https://yodoo.systems"><img alt="yodoo.systems" src="https://img.shields.io/badge/powered%20by-yodoo.systems-00a09d.png"/></a>
</p>
</div>
</section>
<section align="center" style="max-width: 896px; margin: 0 auto;">
<div>
<h2 style="color: #138c33">Maintainer</h2>
<a href="https://crnd.pro/"><img alt="CR&amp;D" src="https://crnd.pro/web/image/3699/300x140/crnd.png" /></a>
<p>Our web site: <a href="https://crnd.pro">https://crnd.pro</a>
</p>
<p>This module is maintained by the <a href="https://crnd.pro/">Center of Research &amp; Development</a>
company.
</p>
<p>
We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.
</p>
<p>
For any questions <a href="mailto:info@crnd.pro">contact us</a>.
</p>
</div>
</section>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="survey_template_view_form" model="ir.ui.view">
<field name="name">survey.template.view.form</field>
<field name="model">survey.survey</field>
<field name="inherit_id" ref="survey.survey_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='quizz_mode']" position="after">
<field name="is_request_template" />
</xpath>
</field>
</record>
</odoo>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment