Browse Source
Merge pull request #69 from njeudy/web_m2x_options_80
Merge pull request #69 from njeudy/web_m2x_options_80
[ADD] 8.0 - Web m2x optionspull/80/head
Sylvain LE GAL
10 years ago
7 changed files with 152 additions and 67 deletions
-
46__unported__/web_m2x_options/__openerp__.py
-
36web_m2x_options/README.rst
-
0web_m2x_options/__init__.py
-
14web_m2x_options/__openerp__.py
-
33web_m2x_options/static/description/index.html
-
76web_m2x_options/static/src/js/form.js
-
12web_m2x_options/views/view.xml
@ -1,46 +0,0 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
{ |
|||
"name": 'web_m2x_options', |
|||
"version": "0.1", |
|||
"description": |
|||
""" |
|||
===================================================== |
|||
Add new options for many2one and many2manytags field: |
|||
===================================================== |
|||
|
|||
- create: true/false -> disable "create" entry in dropdown panel |
|||
- create_edit: true/false -> disable "create and edit" entry in dropdown panel |
|||
- limit: 10 (int) -> change number of selected record return in dropdown panel |
|||
- m2o_dialog: true/false -> disable quick create M20Dialog triggered on error. |
|||
|
|||
Example: |
|||
-------- |
|||
|
|||
<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false}"/> |
|||
|
|||
Note: |
|||
----- |
|||
|
|||
if one of those options are not set, many2one field use default many2one field options. |
|||
|
|||
Thanks to: |
|||
---------- |
|||
|
|||
- Nicolas JEUDY <njeudy@tuxservices.com> |
|||
- Valentin LAB <valentin.lab@kalysto.org> |
|||
|
|||
""", |
|||
"depends": [ |
|||
'base', |
|||
'web', |
|||
], |
|||
"js": [ |
|||
'static/src/js/form.js', |
|||
], |
|||
"author": "Tuxservices", |
|||
'installable' : False, |
|||
"active" : False, |
|||
} |
|||
|
|||
|
@ -0,0 +1,14 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
{ |
|||
"name": 'web_m2x_options', |
|||
"version": "0.1", |
|||
"depends": [ |
|||
'base', |
|||
'web', |
|||
], |
|||
'data': ['views/view.xml'], |
|||
"author": "0k.io", |
|||
"installable": True, |
|||
"active": False, |
|||
} |
@ -0,0 +1,12 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- vim:fdn=3: |
|||
--> |
|||
<openerp> |
|||
<data> |
|||
<template id="assets_backend" name="m2x options assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<script type="text/javascript" src="/web_m2x_options/static/src/js/form.js"></script> |
|||
</xpath> |
|||
</template> |
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue