Browse Source

[MIG] web_m2x_options: migrated to 10.0

pull/622/head
David Vidal 8 years ago
committed by Pedro M. Baeza
parent
commit
dcadf506b1
  1. 4
      web_m2x_options/README.rst
  2. 2
      web_m2x_options/__manifest__.py
  3. 2
      web_m2x_options/static/src/js/form.js
  4. 6
      web_m2x_options/static/src/xml/base.xml
  5. 17
      web_m2x_options/views/view.xml

4
web_m2x_options/README.rst

@ -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
web_m2x_options/__manifest__.py

@ -2,7 +2,7 @@
{
"name": 'web_m2x_options',
"version": "9.0.1.1.0",
"version": "10.0.1.0.0",
"depends": [
'base',
'web',

2
web_m2x_options/static/src/js/form.js

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

6
web_m2x_options/static/src/xml/base.xml

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

17
web_m2x_options/views/view.xml

@ -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…
Cancel
Save