请问,你找到解决方案了吗?

Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn
由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解
本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!
开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号
如果您登录系统碰到问题,请在微信公众号留言:
H
Latest posts made by handen
-
关于odoo12 对于弹窗类数据的修改记录
odoo12中one2many或者many2many一类中点击修改其中的数据,弹窗下面不出现修改记录。
one2many对应的模型中已经添加了_inherit = ['mail.thread', 'mail.activity.mixin'] name = fields.Char(string="Name") inout = fields.Selection(string="InOut", selection=[('Import', '进口'), ('Export', '出口'), ], track_visibility='always',) contract_num = fields.Char(string="Contract Num", track_visibility='onchange')
页面中已添加
<div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers"/> <field name="activity_ids" widget="mail_activity"/> <field name="message_ids" widget="mail_thread"/> </div>
但是,在点击one2many修改其中的数据下方还是不会出现修改记录。
-
RE: BOM 不同地点仓库 物料清单设置问题!求帮助
你说的,是不是同个仓库用一个物料清单是可以的。你可以创建一个清单。在不同的字段上,配置不同的权限。这样,两个清单就可以用了,两个仓库互不影响
-
RE: 关于动态domain域值,相关提问。
这个应该是两个两个数据模型吧。可以添加一个关系型数据,例如:many2one,或者many2many这种的来使得两个模型之间有联系,你可以通过def方法来实现。因为不知道你们的项目是什么样子的。你可以试试?
-
RE: 关于登录用户的部门对某些字段隐形隐藏和显示
<record id="techenical_support" model="ir.rule"> <field name="name">control techenical support</field> <field name="model_id" ref="model_work_coordination_order"/> <field name="domain_force">[([user.], '=', '技术支持')]</field> <field name="perm_read" eval="False"/> <field name="perm_write" eval="False"/> <field name="perm_create" eval="False"/> <field name="perm_unlink" eval="False"/> </record> <record id="not_techenical_support" model="ir.rule"> <field name="name">control techenical support</field> <field name="model_id" ref="model_work.coordination.order"/> <field name="domain_force">[('hr.department.name', '!=', '技术支持')]</field> <field name="perm_read" eval="False"/> <field name="perm_write" eval="False"/> <field name="perm_create" eval="False"/> <field name="perm_unlink" eval="False"/> </record>
大佬,我现在想把我外部条件的“技术支持”的这个部门加入组里面,那我该怎么正确的写呢?
-
使用field_view_get过程中遇到的问题,望大佬解疑!!!
def fields_view_get(self, cr, uid, view_id='work_coordination_order_tree_view', view_type='tree', context=None, toolbar=False, submenu=False): if context is None: context = {} res = super(work_coordination_order,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) if view_type == 'tree': for node in doc.xpath("//field[@name='project']"): node.addnext(etree.Element('field', {'name': 'state', 'string': 'state', 'nolabel': '1'})) node.addnext(etree.Element('field', {'name': 'contact_telephone', 'string': 'contact_telephone','nolabel': '1'})) node.addnext(etree.Element('field', {'name': 'project_contact', 'string': 'project_contact', 'nolabel': '1'})) res['arch'] = etree.tostring(doc) return res
为什么我使用后,我添加的字段的值像many2one,many2many,one2many一类的关系性值,只显示对应的id,而不显示,对应的id的值呢。
还有就是,添加的这些字段,原来都是有翻译的,新添加进去就没有了,只显示我添加的string所对应的值。