3
0
Fork 0

[MIG] web_m2x_options: migrated to 10.0

16.0
David Vidal 2017-05-16 12:55:02 +02:00 committed by Diep Huu Hoang
parent 76f2663875
commit 9ba9650f44
5 changed files with 18 additions and 13 deletions

View File

@ -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
---------- ----------

View File

@ -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',

View File

@ -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',

View File

@ -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>

View File

@ -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>