Browse Source

Removed additional filter by model

pull/3/head
x620 9 years ago
parent
commit
f0678b2943
  1. 8
      res_partner_mails_count/static/src/js/main.js
  2. 10
      res_partner_mails_count/templates.xml

8
res_partner_mails_count/static/src/js/main.js

@ -0,0 +1,8 @@
openerp.res_partner_mails_count = function(instance){
instance.mail.Wall.include({
init: function(){
this._super.apply(this, arguments);
delete this.defaults.model;
}
});
};

10
res_partner_mails_count/templates.xml

@ -1,7 +1,15 @@
<?xml version="1.0"?>
<openerp>
<data>
<record id="view_task_partner_info_form1" model="ir.ui.view">
<template id="res_partner_mails_count_assets_backend"
name="res_partner_mails_count_assets_backend"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script src="/res_partner_mails_count/static/src/js/main.js"
type="text/javascript"></script>
</xpath>
</template>
<record id="view_res_partner_mails_count_info_form" model="ir.ui.view">
<field name="name">res.partner.mails.count</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>

Loading…
Cancel
Save