mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_widget_many2one_simple: Add a demo view to better test the functionality.
TT40367
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||
<title>Simple many2one widget</title>
|
||||
<style type="text/css">
|
||||
|
||||
@@ -422,6 +422,13 @@ without any extra features (no autocomplete and no partial search).</p>
|
||||
<h1><a class="toc-backref" href="#id4">Usage</a></h1>
|
||||
<p>You need to declare the usage of the new widget as follows:
|
||||
<tt class="docutils literal"><field <span class="pre">name="xxx"</span> <span class="pre">widget="many2one_simple"</span> <span class="pre">options="..."></span></tt></p>
|
||||
<p>If you have a database with demo data, you can test this widget following these instructions:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to Contacts.</li>
|
||||
<li>Create or edit a record.</li>
|
||||
<li>Set “Industry” field (in Sales & Purchase tab).</li>
|
||||
<li>Only if you set the correct industry name (“Administrative” for example), it will be defined. Otherwise, it will try to create one with that name.</li>
|
||||
</ol>
|
||||
<div class="section" id="example">
|
||||
<h2><a class="toc-backref" href="#id5">Example:</a></h2>
|
||||
<pre class="code xml literal-block">
|
||||
|
||||
Reference in New Issue
Block a user