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