谢谢回复,这段代码是用在kanban视图的吗?
如果要在res.partner的form和tree里显示,该如何修改?
alanljj
-
如何修改many2many Tags的颜色 -
如何修改many2many Tags的颜色看到有人修改了标签的颜色
[img http://www.geekerconsulting.com.cn/pic/colored-tags.jpg /img]
有哪位大侠知道是怎么修改的吗?有addon?还是修改css? -
字段 `message_follower_ids`不存在!谢谢大家的建议,周末折腾了一下。
重新翻看了mass_mailing的原始模块,然后把class改写为class MassMailingList(osv.Model):
原先我使用的:class mail_mass_mailing_list(osv.Model):
使继承的模块和原始模块的保持一致,结果就安装成功了。
不知道这是不是问题的根源,分享给大家希望有所帮助。 -
字段 `message_follower_ids`不存在![quote author=mrshelly link=topic=17428.msg31563#msg31563 date=1449210422]
<br />...<br />class mail_mass_mailing_list(osv.Model):<br /> _name = "mail.mass_mailing.list"<br /> _inherit = ['mail.thread']<br />...<br />
试试看?
[/quote]
谢谢!刚才试过了,还是一样的错误提示。
我自己开发的模块,添加follow就不会有问题,系统自带的模块用继承方式添加似乎总有问题。
不知道是不是这种情况? -
字段 `message_follower_ids`不存在!想添加follower,首先
class mail_mass_mailing_list(osv.Model):
_inherit = ['mail.mass_mailing.list', 'mail.thread']
[b]然后视图:[/b]
<!-- form view -->
<record model="ir.ui.view" id="geeker_mass_mailing_list_inherit_view_form">
<field name="name">geeker.mass_mailing.list.inherit.form</field>
<field name="model">mail.mass_mailing.list</field>
<field name="type">form</field>
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_list_form" />
<field name="arch" type="xml">
<sheet position="after">
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</sheet>
</field>
</record>
[b]错误log:[/b]
Error details:
字段message_follower_ids
不存在!
错误的上下文:
视图geeker.mass_mailing.list.inherit.form
[view_id: 1707, xml_id: n/a, model: mail.mass_mailing.list, parent_id: 1619]" while parsing /opt/odoo/addons_geeker/geeker_mailingcontact/geeker_mailingcontact_view.xml:18, near
<record model="ir.ui.view" id="geeker_mass_mailing_list_inherit_view_form">
<field name="name">geeker.mass_mailing.list.inherit.form</field>
<field name="model">mail.mass_mailing.list</field>
<field name="type">form</field>
<field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_list_form"/>
<field name="arch" type="xml">
<sheet position="after">
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</sheet>
</field>
</record>
查了好多遍,不知道问题出在那里?求教! -
开源淘宝模块Taobao OpenERP Connector 简要说明 — 欢迎大家参与请问,能同步客户的手机和邮箱到系统吗?是不是也包括支付宝邮箱?
-
OpenERP 6.1.1 日历控件 选择年范围问题实用的东西,记录一下
-
Odoo 8.0 库存不能正常显示我有同样的问你。
还发现所有发布的商品价格都为零。有解决方案了吗 -
Form里自定义显示many2many与one2many的字段谢谢分享,实用的说。
-
Mail.mass_mailing翻译在哪里该模块的其他英文都可以翻译,唯有如下图红框内的几个地方找不到地方翻译,请高手指点一二,谢谢!
[attachimg=1] -
OE7.0订单界面使用欧元问题的解决这个说的很详细,非常好!谢谢!
-
系统上线之前如何清空业务数据或者可以更简单一点<br / [检测到链接无效,已移除] IP:8069/web/database/manager
也可以选择数据库的 -
中文日期显示盖着最后一位的问题不可以直接加到base.css文件里吗?为什么要增加一个css
-
为何新增的字段无法保存?openerp 7.0,在res.partner form的view当中增加了字段,比如行业,为何增加了之后,一点击保存就会消失,一直无法保存。
在增加行业字段之前,该联系人已经添加在res.partner当中了。请问何解? -
Openerp7.0的ir.attachment出错,如何排查错误?哪位大侠指点一下,我该如何排查这个错误。
出现问题现象:文档不能以目录分类来显示,可以用所有者和日期来分类。该如何解决?
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/http.py", line 204, in dispatch
response["result"] = method(self, **self.params)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/controllers/main.py", line 1051, in search_read
return self.do_search_read(req, model, fields, offset, limit, domain, sort)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/controllers/main.py", line 1086, in do_search_read
records = Model.read(ids, fields or False, req.context)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/audittrail/audittrail.py", line 532, in execute_cr
return fct_src(cr, uid, model, method, *args, **kw)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/base/ir/ir_attachment.py", line 269, in read
return super(ir_attachment, self).read(cr, uid, ids, fields_to_read, context, load)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 3679, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 3800, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/fields.py", line 468, in get
context=context))
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/addons/base/res/res_partner.py", line 548, in name_get
name = "%s, %s" % (record.parent_id.name, name)
File "/usr/lib/python2.6/site-packages/openerp-7.0_20140530_231147-py2.6.egg/openerp/osv/orm.py", line 504, in getattr
raise AttributeError(e)
AttributeError: 402 -
如何设置不同条件下的“必填字段”[quote author=digitalsatori link=topic=16423.msg28126#msg28126 date=1401846381]
搜索一下View里面的modifiers的用法
[/quote]
Thanks Tony!
请教我这样写是否可以?
<field name="email" widget="email" attrs="{'invisible': [('is_company','=', True)]}" modifiers="{[('is_company','=', True)], 'required': false}"/> -
如何设置不同条件下的“必填字段”Openerp 7的客户当中(res.partner),我们可以选择输入“人”或者“公司”
有要求:
[list type=decimal]
[li]输入“人”的时候Email字段为必填[/li]
[li]输入公司的时候Email字段为非必填[/li]
[/list]
请问在View设置里可以设置吗?是不是需要domain来约束? -
Openerp7.0 固定顶端菜单[quote author=youring link=topic=5975.msg15017#msg15017 date=1366244979]
鉴于.openerp .oe_notification {<br /> z-index: 1050;<br />}
建议.openerp .oe_topbar {<br /> position: fixed;<br /> z-index: 1049; <br /> filter:alpha(Opacity=80); /*再加点透明效果*/<br /> -moz-opacity:0.8;<br /> opacity: 0.8;<br />}
避免notification被遮住而无法关闭。
不知是否还会遮住其它元素...
[/quote]
谢谢分享,这个很好用。
那位大侠能分享一下左右分别滚动的设置吗?
就是左边滚的时候,右边不滚,反之也可行的方法。 -
OpenERP 在线支付模块-网银在线东西不错,直接把支付宝的放上来就更好了
-
【分享】仅限制公司名唯一这个好用,支持一下!