
Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn
由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解
本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!
开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号
如果您登录系统碰到问题,请在微信公众号留言:
Openerp 8.0 oecn_base_fonts 安装
-
openerp 8.0 oecn_base_fonts 直接安装 会报 No module name osv 错误
进入oecn_base_fonts 修改一行代码 为from openerp.osv import fields, osv
安装即可 -
恩,原模块这样写确实不太好,改成楼主这样是很值得的优化。
-
没那个高度,只是copy 了8.0 的sale.py 的写法。试了试.
-
oecn_font_installer.py
原先是:
from osv import fields, osv
改成:
from openerp.osv import fields, osv -
还有一个错误。
arseError: "ValidateError
Field(s)arch
failed against a constraint: Invalid view definition
Error details:
Element '<form version="7.0">' cannot be located in parent view
Error context:
Viewoecn.font.installer.form
[view_id: 422, xml_id: n/a, model: oecn.font.installer, parent_id: 3]" while parsing /opt/openerp2/server/addons/oecn_base_fonts/oecn_font_installer.xml:5, near
<record id="view_font_configuration_installer" model="ir.ui.view">
<field name="name">oecn.font.installer.form</field>
<field name="model">oecn.font.installer</field>
<field name="inherit_id" ref="base.res_config_installer"/>
<field name="arch" type="xml">
<data><form position="attributes" version="7.0">
<attribute name="string">Customer Font Mapping Configuration</attribute>
</form>
<footer position="replace">
<footer>
<button name="action_next" type="object" string="Continue" class="oe_highlight"/>
</footer>
</footer>
<separator string="title" position="replace">
<p class="oe_grey">
Fonts used in the default report may not support the characters in your lanuage. Use the setting here to replace the Original font with the font you choose.
</p>
<group>
<field name="wrap" class="oe_inline"/>
<field name="map_ids" nolabel="1" colspan="4">
<tree string="Font replace" editable="top">
<field name="pdf_font"/>
<field name="new_font" on_change="onchange_new_font(new_font)"/>
<field name="name"/>
</tree>
</field>
</group>
</separator>
</data></field>
</record> -
把这一行
<form position="attributes" version="7.0">
修改为
<form position="attributes">
就好了。 -
8.0 qweb已经直接支持中文了,rml报表也有原生的字体替换方法。