跳转至内容

Odoo 新手求助

2.4k 主题 10.6k 帖子

No decsciption available

  • 0 赞同
    8 帖子
    6k 浏览
    K
    Joshua大 您好我的xml中訂義如下 &lt;act_window<br />&nbsp; &nbsp; &nbsp; id=&quot;cr_prescription_act_view&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;Create Prescription&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; view_mode=&quot;form&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; view_type=&quot;form&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; res_model=&quot;create.prescription&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; src_model=&quot;res.partner&quot;<br />&nbsp; /&gt; 我反覆嘗試如果加上target="new"就不會出現Save,Save & Edit,Cancel 等三個按鈕,但是這是彈跳出一個新視窗,這不是我想要的--我想出現在右側主畫面如果沒加target="new"就會出現Save,Save & Edit,Cancel 等三個按鈕懇請指導附件為我整個wizard[quote author=Joshua link=topic=4171.msg11205#msg11205 date=1338254820]不知道你的wizard的view是怎么定义的,下面是价格表的wizard的代码,你可以比较下 &lt;act_window id=&quot;action_product_price_list&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; key2=&quot;client_print_multi&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;Price List&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res_model=&quot;product.price_list&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; src_model=&quot;product.product&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; view_mode=&quot;form&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; target=&quot;new&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; view_type=&quot;form&quot; /&gt; key2这个可以无视,这个只是因为他这里是想显示为打印按钮。[/quote]
  • 0 赞同
    8 帖子
    5k 浏览
    K
    mrshelly大經過您的提點,小弟再仔細比較-原來是function必須放置於_default之前(因為以前寫Java Class就沒有這種順序性的要求,所以一時沒想到會有影響)真是不好意思勞煩您再三提醒  感恩另外一個提問--Save,Save & Edit,Cancel 等三個按鈕不顯現的問題是否是在XML中訂義<act_windowsview_type : "form"/>小弟本來就有寫 但是無作用[quote author=mrshelly link=topic=4170.msg11196#msg11196 date=1338194528]请仔细看我的代码与你的代码. 前前后后, 你都没有说明你的"出"的什么"错"!...[/quote]
  • OE 的送信機制.錯誤 log 如何偵錯啊.

    5
    0 赞同
    5 帖子
    4k 浏览
    JoshuaJ
    换其他邮箱试试,或者跟踪代码到smtplib.py 里面
  • 如何定义新建料号的时候,系统自动给号

    3
    0 赞同
    3 帖子
    3k 浏览
    M
    二次开发 继承修改 物料 对象的 default_get 方法. 写你的自动编号代码
  • Openerp 6.1-1 ubuntu 12.04 安装成功 创建数据库时报错

    5
    0 赞同
    5 帖子
    7k 浏览
    C
    竟有此事?我装了几回也没有遇到。记录下
  • 請教關於many2one欄位畫面資料顯示的問題

    4
    0 赞同
    4 帖子
    3k 浏览
    K
    感恩digitalsatori大不吝指點 謝謝[quote author=digitalsatori link=topic=2940.msg9936#msg9936 date=1337663863]两个方法:1. 再建一个fields.related字段,比如:fields.related('product_id', 'name_template', type='char', string='Name')2. 覆写product.product的name_get方法,并在view中指定context,比如在view中设置context={'name_template':1}def name_get(self, cr, uid, ids, context=None):    if context.get('name_template'):        XXXX #取需要的值,并返回    else:        return super(....).name_get(....)[/quote]
  • 新手求指点

    6
    0 赞同
    6 帖子
    6k 浏览
    W
    购买是最大的支持。
  • 安装模块报错,如何解决,

    3
    0 赞同
    3 帖子
    3k 浏览
    W
    你要安装的是哪个模块?你确定这个模块对你有用么?提示非常清楚了,缺少一个python的module,你去下载装了就行了。
  • 6.1.1 安装错误

    20
    0 赞同
    20 帖子
    15k 浏览
    N
    谢谢指点我查看了 注册表内的相关信息我都删除了还是不能选麻烦不是太想用虚拟机因为有点慢 电脑本来就不是服务器 不用服务器就比较慢了
  • 版本6.1.1 关于模块安装的问题

    3
    0 赞同
    3 帖子
    2k 浏览
    C
    右上角 首选项 注意选择 扩展2. 更新模块列表
  • 客户里边好像不能建立分子公司吧

    4
    0 赞同
    4 帖子
    3k 浏览
    S
    是树形结构的吧
  • 仅打印发票方案求助

    6
    0 赞同
    6 帖子
    4k 浏览
    Q
    我隐藏字段试试,谢谢!
  • 求教如何是 PDF 报表直接在浏览器 内嵌打开 ?

    2
    0 赞同
    2 帖子
    2k 浏览
    尚无回复
  • 请问在北京有合作伙伴吗?能把电话和联系方式留下吗

    4
    0 赞同
    4 帖子
    3k 浏览
    D
    [quote]开源智造咨询有限公司(OSCG)是目前亚太地区最大的OpenERP官方合作伙伴[/quote]请不要做排他性宣传,不要在介绍信息中使用最大,第一,唯一之类的词。况且亚太涉及的地方真的很大呀。请予改正,谢谢
  • Open ERP里的库存管理产品属性问题?

    3
    0 赞同
    3 帖子
    3k 浏览
    M
    衣服尺码 颜色, 可以在 product 的 variants 中去录入. 生产用属性 一般在 BOM 单上去录入..
  • 新人的解答 : readonly 的字段 OE 是不會傳遞到后端的.

    4
    0 赞同
    4 帖子
    4k 浏览
    D
    上海-就这样(1683223795)  13:53:39hr.holidays.py 中.    def onchange_date_from(self, cr, uid, ids, date_to, date_from):        result = {}        if date_to and date_from:            diff_day = self._get_number_of_days(date_from, date_to)            result['value'] = {                'number_of_days_temp': round(diff_day)+1            }            return result        result['value'] = {            'number_of_days_temp': 0,        }        return result其中  if date_to and date_from:这句话是什么用意..因我在使用时...不加这行..都有 exception 说 date_to 及 date_from 是  bool 的 datatype. strptime 只能接受 string .但  date_to 及 date_from 是从 字段中预设值就有的.(日期格式)..带入这 onchange_date_from 中.所以有点搞不太懂这用意...但没有这判断式一定会错..附上    def _get_number_of_days(self, date_from, date_to):        """Returns a float equals to the timedelta between two dates given as string."""        DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S"        from_dt = datetime.datetime.strptime(date_from, DATETIME_FORMAT)        to_dt = datetime.datetime.strptime(date_to, DATETIME_FORMAT)        timedelta = to_dt - from_dt        diff_day = timedelta.days + float(timedelta.seconds) / 86400        return diff_day重庆-mrshelly(49812643)  13:54:47那句是判断你倒底有没有选择日期.如果 起止日期都有选择时, 才执行 if 里面的内容.上海-Jeff(85822082)  13:57:02python中所有数据类型的空值都可以视为逻辑假非空值作为逻辑真openerp里这种判断方式很多很多
  • OpenERP 5.0.16 数据库初始化错误

    4
    0 赞同
    4 帖子
    3k 浏览
    JoshuaJ
    找个错误很多可能性,有可能是你的addons里面的module有问题。试试用官方的原装module
  • 6.1版本的中文化问题

    3
    0 赞同
    3 帖子
    3k 浏览
    R
    问题已经解决。需要进入设置菜单,重新载入一次中文的翻译。这个,也太BT了吧....
  • IE访问POS界面时 出现一个客户端错误

    6
    0 赞同
    6 帖子
    4k 浏览
    JoshuaJ
    建议在FireFox启动POS
  • 新建用户表单,订购单等巧取默认值,提高工作效率

    5
    0 赞同
    5 帖子
    5k 浏览
    JoshuaJ
    俺补充下,在GTK下可以通过右键来设定默认值,而且想删除默认值怎么办呢,可以这样:设置->自定义->底层对象->动作->用户默认值