forked from Techsystech/web
[MIG] web_m2x_options: migrated to 10.0
parent
76f2663875
commit
9ba9650f44
|
@ -6,6 +6,9 @@
|
||||||
Add new options for many2one field
|
Add new options for many2one field
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
This modules modifies "many2one" and "many2manytags" form widgets so as to add some new display
|
This modules modifies "many2one" and "many2manytags" form widgets so as to add some new display
|
||||||
control options.
|
control options.
|
||||||
|
|
||||||
|
@ -147,6 +150,7 @@ Contributors
|
||||||
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
|
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
|
||||||
* Zakaria Makrelouf <z.makrelouf@gmail.com>
|
* Zakaria Makrelouf <z.makrelouf@gmail.com>
|
||||||
* Jairo Llopis <jairo.llopis@tecnativa.com>
|
* Jairo Llopis <jairo.llopis@tecnativa.com>
|
||||||
|
* David Vidal <david.vidal@tecnativa.com>
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": 'web_m2x_options',
|
"name": 'web_m2x_options',
|
||||||
"version": "9.0.1.1.0",
|
"version": "10.0.1.0.0",
|
||||||
"depends": [
|
"depends": [
|
||||||
'base',
|
'base',
|
||||||
'web',
|
'web',
|
|
@ -4,13 +4,11 @@
|
||||||
odoo.define('web_m2x_options.web_m2x_options', function (require) {
|
odoo.define('web_m2x_options.web_m2x_options', function (require) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var $ = require("$");
|
|
||||||
var core = require('web.core'),
|
var core = require('web.core'),
|
||||||
data = require('web.data'),
|
data = require('web.data'),
|
||||||
Dialog = require('web.Dialog'),
|
Dialog = require('web.Dialog'),
|
||||||
Model = require('web.Model'),
|
Model = require('web.Model'),
|
||||||
form_relational = require('web.form_relational'),
|
form_relational = require('web.form_relational'),
|
||||||
_ = require('_'),
|
|
||||||
_t = core._t;
|
_t = core._t;
|
||||||
|
|
||||||
var OPTIONS = ['web_m2x_options.create',
|
var OPTIONS = ['web_m2x_options.create',
|
||||||
|
|
|
@ -4,8 +4,10 @@
|
||||||
|
|
||||||
<templates xml:space="preserve">
|
<templates xml:space="preserve">
|
||||||
<t t-extend="FieldMany2One">
|
<t t-extend="FieldMany2One">
|
||||||
<t t-jquery=".oe_m2o_cm_button" t-operation="attributes">
|
<t t-jquery=".o_external_button" t-operation="attributes">
|
||||||
<attribute name="t-if">!(widget.options.no_open || widget.options.no_open_edit)</attribute>
|
<attribute name="t-if">
|
||||||
|
!(widget.options.no_open || widget.options.no_open_edit)
|
||||||
|
</attribute>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</templates>
|
</templates>
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- vim:fdn=3:
|
|
||||||
-->
|
<odoo>
|
||||||
<openerp>
|
|
||||||
<data>
|
<template id="assets_backend" name="m2x options assets"
|
||||||
<template id="assets_backend" name="m2x options assets" inherit_id="web.assets_backend">
|
inherit_id="web.assets_backend">
|
||||||
<xpath expr="." position="inside">
|
<xpath expr="." position="inside">
|
||||||
<script type="text/javascript" src="/web_m2x_options/static/src/js/form.js"></script>
|
<script type="text/javascript"
|
||||||
|
src="/web_m2x_options/static/src/js/form.js"></script>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
</data>
|
|
||||||
</openerp>
|
</odoo>
|
||||||
|
|
Loading…
Reference in New Issue