Navigation

    Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. handen
    H
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    handen

    @handen

    0
    Reputation
    20
    Posts
    33
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    handen Follow

    Best posts made by handen

    This user hasn't posted anything yet.

    Latest posts made by handen

    • RE: odoo 如何显示百分比字段,比如说3.21%

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

      posted in Odoo 新手求助
      H
      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修改其中的数据下方还是不会出现修改记录。

      posted in Odoo 开发与实施交流
      H
      handen
    • RE: 请问:安装会计科目报错,是什么原因?如何解决?

      你安装地址不能出现中文或者其他非法字符。
      你试试看。

      posted in Odoo 新手求助
      H
      handen
    • RE: BOM 不同地点仓库 物料清单设置问题!求帮助

      你说的,是不是同个仓库用一个物料清单是可以的。你可以创建一个清单。在不同的字段上,配置不同的权限。这样,两个清单就可以用了,两个仓库互不影响

      posted in Odoo 新手求助
      H
      handen
    • RE: Odoo 12 社区版 怎么隐藏 【创建并编辑】

      你说的是不是左上角的那两个按钮,创建和编辑啊

      posted in Odoo 新手求助
      H
      handen
    • RE: 关于关系性m2m,m2o,o2m求大佬们教一下

      已解决。利用many2many和one2many的更新id的方法实现。

      posted in Odoo 新手求助
      H
      handen
    • RE: 关于动态domain域值,相关提问。

      这个应该是两个两个数据模型吧。可以添加一个关系型数据,例如:many2one,或者many2many这种的来使得两个模型之间有联系,你可以通过def方法来实现。因为不知道你们的项目是什么样子的。你可以试试?

      posted in Python 开发
      H
      handen
    • RE: 关于登录用户的部门对某些字段隐形隐藏和显示

      @hui

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

      大佬,我现在想把我外部条件的“技术支持”的这个部门加入组里面,那我该怎么正确的写呢?

      posted in Odoo 新手求助
      H
      handen
    • RE: odoo 12生成pdf字体很小

      PDF默认的纸张大小是A4纸的大小。字体过小的话,你看看你原文的内容打印在A4上大概有多大,看能不能调整一下布局。

      posted in Odoo 新手求助
      H
      handen
    • 使用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所对应的值。

      posted in Odoo 开发与实施交流
      H
      handen