跳转至内容

Odoo 开发与实施交流

No decsciption available
2.3k 主题 10.5k 帖子
  • 个人分析:OpenERP目前的优势

    13
    0 赞同
    13 帖子
    9k 浏览
    A

    非常感谢上楼lonely落叶的建议,非常感谢

  • Openerp7.0运行服务器端报错的问题,请大侠帮忙,谢谢!

    5
    0 赞同
    5 帖子
    2k 浏览
    C

    我的os版本是win10 x64,不是centos,版本新的也报错,比如9

  • 卓忆原创视频:Odoo补货及Odoo生产的简单介绍

    7
    0 赞同
    7 帖子
    5k 浏览
    卓忆

    [quote author=lonely落叶 link=topic=17271.msg32167#msg32167 date=1460819377]
    [quote author=卓忆 link=topic=17271.msg30904#msg30904 date=1440305749]
    Odoo补货及Odoo生产的简单介绍

    在 实际生产中,有这样一种 比较典型的 情况:
    成品通常 不备货 ,按订单生成,
    原料通常备货。在 Odoo中文社区的Mr.shelly , Jeff-wang 以及 Jeffery-chen 帮助下
    我给 客户 设计了这样一个  销售-生产-原料如不足即采购的 补货流程:

    (视频下载链接): [检测到链接无效,已移除]

    文字简介:


    成品A 无库存
    (注,成品需要备库存的 也 默认设置按订单生成MTS,不勾选MTO就是MTS)
    按订单生成(MTO)
    成品A由
    原料Bx1
    原料Cx1
    原料Dx1  组成
    设置原料的最小库存:
    原料B 现有库存2个,补货规则:最小库存为1触发 ,补到最大库存 为 8 ,
    原料C 现有库存3个,补货规则:最小库存为1触发 ,补到最大库存 为 8
    原料D 现有库存4个,补货规则:最小库存为1触发 ,补到最大库存 为 8
    补货路线: 按库存进行补货(MTS,默认即是)
    并且设置供应商,原料都是同一个供应商
    开始测试:
    销售成品A 5个
    按MTO 路线  应该生成 一张 需求单,
    需求单 点 运行补货,生成 生产订单
    观察 是否 自动  按最小 库存 规则 生成了  “满足最大库存值”的  采购需求单
    再观察 生产订单 是否 可以 通过 运行 检查可用 之类的选项 触发 需求单(OP)
    结果:
    不会根据 生产 的 需求单 运行补货 自动生成 采购的 需求单 (mts)
    需要运行 最小库存 规则 ,直接出来 采购询价单 数量 分别为 11  10  9
    数量的说明  2-5 = -3    3-5 = -2    4-5= -1
            -3+11=8  -2+10=8  -1+9=8
    补充:
    关于倍数:jeff 举的例子非常好:
    烟的计量单位 设为支 ,
    但是购买的时候 只能按包买,(一包20支)
    这个 倍数就是 20.


    其他补货流程参考图文(零库存商品但是不使用jit, Make to order): [检测到链接无效,已移除]

    另外,经过设置 (设置-销售-销售选择路线route,路线toute还要 设置为 产品或产品分类可用 )销售的时候 ,也可以 选择 补货路线的,不选就用产品的默认路线。

    还有 :就是 还无视以上 这些,根据 库存 情况 ,手动 生成 采购询价单  🙂

    使用 jit (不使用需求单,安装Jit模块自动生成生产订单及采购询价单)(相对适合贸易型企业) : [检测到链接无效,已移除]




    抛砖引玉,诸位见笑。

    最后,感谢 Odoo中文社区的Mr.shelly , Jeff-wang 以及 Jeffery-chen 在 视频录制前后给予我的帮助,[size=10pt][i]这段视频也算是交给他们的一份作业[/i][/size]。
    同时感谢 Odoo中文社区的其他伙伴们,谢谢大家。
    [/quote]

    实际应用中还有一种方案,是企业不会有库存,需要的时候通过组装然后销售,可能也会有把整个产品 拆卸成零件销售,暂时没有想到好的方法!
    [/quote]

    目前想到是 用 套件/虚项。
    实际真的要解决,方法一般比问题都要多,
    也就是说,通常都有2套方案,
    然后测试,
    然后给客户做选择。
    但是,这里有个关键:
    客户要明确重点,或者说,实现这个需求的目的是什么?
    哪些信息必须要采集?
    当采集遇到问题,
    哪方面的信息的采集更重要?
    如果都重要,
    还是要分先后比较好。

  • 期初建账输入的客户应收账款无法通过付款来核销

    3
    0 赞同
    3 帖子
    3k 浏览
    L

    [quote author=Jeff link=topic=17296.msg30979#msg30979 date=1441682445]
    8.0

    新建期初结转类型的会计凭证,输入凭证行 A客户,应收账款借方30元

    保存,记账

    在 客户付款 菜单新建付款单,A客户付款30元,勾选核销下面出来的行

    保存,记账

    报错:

    用户错误

    帐户的集中程度(OPEJ/2015/0001)已确认。
    [/quote]
    设置取消分录唯一项的勾选

  • 0 赞同
    8 帖子
    7k 浏览
    卓忆



    原文: http://www.odoo.yenthevg.com/inheriting-and-modifying-qweb-reports/
    Inheriting and modifying QWeb reports
    继承及修改QWeb报表

    Hi guys,
    In this tutorial you will learn how to inherit already existing QWeb reports in a custom module. After this tutorial you will be able to inherit and modify any already existing QWeb report in Odoo!
    In this example I will modify the default Quotation / order report through inheritance and I will remove a few elements from the report.
    大家好,
    在这个教程中您会学习到如何写一个模块来继承一个现有的QWeb报表。在这个教程之后,您能继承和修改任何现有的Odoo中的QWeb报表。

    1. Creating a new module创建一个新模型
    The first step is to create a new module. The correct behaviour in Odoo is to always inherit, don’t ever modify existing files. Start by creating yourself a new module.
    Tip: use the scaffold command from Odoo!
    第一步创建一个新模型。在Odoo正确的做法是使用继承,而不是直接修改现有文件。从创建一个新模块开始。
    提示:可以使用在Odoo中使用scaffold命令来创建新模块如下:
    [attachimg=1]

    This will create a new module from scratch and the default structure of your module is already there.
    这会从草稿创建一个包含默认结构的新模块。
    2. Creating your XML file创建XML文件

    The next step is to open up your XML file (in my example templates.xml) and to create a new record to inherit the report. To inherit a report you have to know in which module it is and what the original XML id of the report is. So, how do you find this?
    The easiest way is to go to ‘Settings’ > ‘Reports’ > ‘Reports’ and to search the report you want to modify. In this tutorial this will be the quotation/order report so I’ll search for ‘Order’:
    接下来打开您的XML文件,创建新的纪录来继承报表。您需要知道需要继承的报表的模块的名称以及XML id.
    如何找到他们呢?
    最简单的方法是到‘设置’>‘报表'>'报表’ 中找到您需要修改的报表。在这个教程中我们修改 报价单/订单,所以 我们搜索 'Order'
    [attachimg=2]

    Now that you’ve found your report click on it. This will open a new view where you will find all the technical information you need! For example with the quotation report:
    点击您需要修改的报表。会打开一个新的视图,在这里您会发现您需要的技术参数!例如报价/订单报表中:
    [attachimg=3]

    At the right you will see a clickable link named ‘Search associated QWeb views’. Click on it. This will show you a list of all records that are associated to this specific report. In the example of the quotation report:
    在右边您会看到 "查找QWeb相关视图",点击。它会展示给您此报表的所有相关记录。此例子中:

    [attachimg=4]

    So this usually shows you two XML records. How do you know which one you need? The one that ends with _document is the correct XML record that you need to inherit. Under the column ‘External ID’ you will see there is an unique name, in this example sale.report_saleorder_document. The first part of this text (sale) is the module where the report is from, the second part (report_saleorder_document) is the name of the report that you want to inherit and modify.

    通常这类会显示2条XML记录。您如何知道哪个是您需要的呢?以_document结尾的那个是您需要继承的正确的那个。在 ‘外部ID’ 这类您会看到它(在数据库对于表中)的唯一名称。
    [attachimg=5]

    Remember this value and now open up your XML file. To inherit a QWeb report you need two things: an unique template id and the inherit_id. The template id can be chosen by yourself, just make sure its unique. The inherit_id should contain the value you’ve just found on your report (sale.report_saleorder_document).
    记录下这个值,然后打开您新建模块中的XML文件。
    要继承QWeb报价,您需要做2件事:
    一个唯一的template id以及inherit_id. template id您可以自己定义,只需确保它是唯一的。
    inherit_id需要包含刚才您在需要继承的报表中发现的那个外部id (sale.report_saleorder_document).

    &lt;!--Inherit quotation report(frommodule sale)--&gt;<br />&lt;template id=&quot;report_quotation_inherit_demo&quot;inherit_id=&quot;sale.report_saleorder_document&quot;&gt;<br />&lt;/template&gt;



    That is it! You’re now already on the correct report and are inheriting it. So, how do you now add or remove elements? To do this you will need Xpath expressions to find, modify, replace or add elements. Tip: Don’t know how Xpath expressions work? Follow my tutorial here!
    For this example I will remove the columns that show the amount, the tax and the price per item. The first step is to modify the table header:
    就是这样!您现在已经在正确的报表中并且继承它了。如何增加或者移除元素?您需要Xpath表达式来查找,修改,覆盖或者增加元素。提示:不知道Xpath表达式如何工作?点击这里获得教程 !
    在我们这个例子中,我们 移除其他列,只显示 说明和 价格。第一步是修改表头:

    &lt;!--Finds the first table withasclasstable table-condensed andgives the ability to modify it<br />This will replace everything withing tr(including tr)--&gt;<br />&lt;xpath expr=&quot;//table[@class=&#039;table table-condensed&#039;]//thead//tr&quot;position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &lt;tr style=&quot;background-color:lightgray;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Description&lt;/th&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;th class=&quot;text-right&quot;&gt;Price&lt;/th&gt;<br />&nbsp; &nbsp; &lt;/tr&gt;<br />&lt;/xpath&gt;


    After modifying the table header the table content should also be modified.
    附上原报表文件 表头部分代码 参考:

    &lt;table class=&quot;table table-condensed&quot;&gt;<br /> &lt;thead&gt;<br /> &lt;tr&gt;<br /> &lt;th&gt;Description&lt;/th&gt;<br /> &lt;th&gt;Taxes&lt;/th&gt;<br /> &lt;th class=&quot;text-right&quot;&gt;Quantity&lt;/th&gt;<br /> &lt;th class=&quot;text-right&quot;&gt;Unit Price&lt;/th&gt;<br /> &lt;th groups=&quot;sale.group_discount_per_so_line&quot;&gt;Disc.(%)&lt;/th&gt;<br /> &lt;th class=&quot;text-right&quot;&gt;Price&lt;/th&gt;<br /> &lt;/tr&gt;<br /> &lt;/thead&gt;




    然后修改表的内容:

    &lt;xpath expr=&quot;//tbody[@class=&#039;sale_tbody&#039;]//tr//td[4]&quot;position=&quot;replace&quot;&gt;<br />&lt;/xpath&gt;<br />&lt;xpath expr=&quot;//tbody[@class=&#039;sale_tbody&#039;]//tr//td[3]&quot;position=&quot;replace&quot;&gt;<br />&lt;/xpath&gt;<br />&lt;xpath expr=&quot;//tbody[@class=&#039;sale_tbody&#039;]//tr//td[2]&quot;position=&quot;replace&quot;&gt;<br />&lt;/xpath&gt;


    This code will remove the fourth, third and second td element and all its content but only for the tbody with class ‘sale_tbody’ and inside the tr. 
    (这些代码会移除,class'sale_tbody' 第4,3,2 的td元素及其内容)
    注:去掉的内容 分别是 单价,数量,和税,

    附上原报表的内容部分的代码:

    &lt;tbodyclass=&quot;sale_tbody&quot;&gt;<br />&lt;trt-foreach=&quot;o.order_line&quot;t-as=&quot;l&quot;&gt;<br />&lt;td&gt;<br />&lt;spant-field=&quot;l.name&quot;/&gt;<br />&lt;/td&gt;<br />&lt;td&gt;<br />&lt;spant-esc=&quot;&#039;, &#039;.join(map(lambda x: x.name, l.tax_id))&quot;/&gt;<br />&lt;/td&gt;<br />&lt;tdclass=&quot;text-right&quot;&gt;<br />&lt;spant-field=&quot;l.product_uom_qty&quot;/&gt;<br />&lt;spangroups=&quot;product.group_uom&quot;t-field=&quot;l.product_uom&quot;/&gt;<br />&lt;/td&gt;<br />&lt;tdclass=&quot;text-right&quot;&gt;<br />&lt;spant-field=&quot;l.price_unit&quot;/&gt;<br />&lt;/td&gt;<br />&lt;tdgroups=&quot;sale.group_discount_per_so_line&quot;&gt;<br />&lt;spant-field=&quot;l.discount&quot;/&gt;<br />&lt;/td&gt;<br />&lt;tdclass=&quot;text-right&quot;&gt;<br />&lt;spant-field=&quot;l.price_subtotal&quot;t-field-options=&quot;{&amp;quot;widget&amp;quot;: &amp;quot;monetary&amp;quot;, &amp;quot;display_currency&amp;quot;: &amp;quot;o.pricelist_id.currency_id&amp;quot;}&quot;/&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/tbody&gt;



    So this will replace the header and the table content from this report. Have a look at the full code to inherit and modify your QWeb report  完整的代码如下它会覆盖此报表的表头和表的内容:

    &lt;openerp&gt;<br />&nbsp; &nbsp; &lt;data&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--Inherit quotation report(frommodule sale)--&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;template id=&quot;report_quotation_inherit_demo&quot;inherit_id=&quot;sale.report_saleorder_document&quot;&gt;<br />&nbsp; &nbsp; &lt;!--Finds the first table withasclasstable table-condensed andgives the ability to modify it<br />This will replace everything withing tr(including tr)--&gt;<br />&nbsp; &nbsp; &lt;xpath expr=&quot;//table[@class=&#039;table table-condensed&#039;]//thead//tr&quot;position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr style=&quot;background-color:lightgray;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Description&lt;/th&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th class=&quot;text-right&quot;&gt;Price&lt;/th&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &lt;/xpath&gt;<br />&nbsp; &nbsp; &lt;xpath expr=&quot;//tbody[@class=&#039;sale_tbody&#039;]//tr//td[4]&quot;position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &lt;/xpath&gt;<br />&nbsp; &nbsp; &lt;xpath expr=&quot;//tbody[@class=&#039;sale_tbody&#039;]//tr//td[3]&quot;position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &lt;/xpath&gt;<br />&nbsp; &nbsp; &lt;xpath expr=&quot;//tbody[@class=&#039;sale_tbody&#039;]//tr//td[2]&quot;position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &lt;/xpath&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/template&gt;<br />&nbsp; &nbsp; &lt;/data&gt;<br />&lt;/openerp&gt;



    3. Adding the dependency for the external QWeb report增加依赖

    The next, and final step, is to add a dependency. Because this QWeb report is inside another module Odoo has to know about this module and its content so you should add a dependency. Without this your module will not work and you will get errors.
    Open up your openerp.py file in your custom module and find the line with depends.
    Now take back that ‘External ID’ from the QWeb report and take the first part of the external id (before the dot). This tells you which module you should add as a dependency:
    最后一步,增加依赖。因为这个QWeb报表位于其他模块中Odoo需要知道此模块。不然您的模块不会工作并且会报错。
    打开 您自定义的模块中的  openerp.py文件,找到depends 这行。
    返回QWeb 报表 查看外部id的部分 , 外部id (.之前的)的部分,就是 模块名称,
    [attachimg=5]

    In this example my QWeb comes from the sale module, so I will add it as a dependency.
    在这个例子中,我的QWeb 来自 sale模块,我们把他添加到  openerp.py 的 depends 这行:

    # any module necessary for this one to work correctly<br />&#039;depends&#039;:&#91;&#039;sale&#039;],


    4. Conclusion结尾

    Thats it! You’re done with inheriting and modifying the QWeb report. When you now install this module in your Odoo you will see the modified report.
    Do you want to try a demo module and see the source code of this tutorial? You can view on my Github account.
    Has this tutorial helped you, do you have any feedback or questions? Post away!
    就是这样!您完成了继承和修改QWeb报表。当您安装此模块,您会发现报表已经改变了。

    [attachimg=6]


    点击后面下载此教程的源码:您可以通过作者的Github账户访问. https://github.com/Yenthe666/Odoo_Samples/tree/master/inherit_report_demo

    谢谢大家

  • 0 赞同
    6 帖子
    3k 浏览
    mrshellyM

    这个谁提到官网会比较好一点.....

  • 如何把图片中的这个去掉。。。

    8
    0 赞同
    8 帖子
    4k 浏览
    静静

    options="{'on_open':True}" ..还是学多学学如何看源码吧.

  • Odoo中这个功能是怎么做的

    4
    0 赞同
    4 帖子
    3k 浏览
    静静

    这是js写的,还是比较复杂的,简单的搜索的话,改name_search好了.

  • Openerp7 使用 oe开发工具开发模块时遇到的问题及解决方法

    4
    0 赞同
    4 帖子
    3k 浏览
    佳先生

    [quote author=marsleung link=topic=8017.msg17563#msg17563 date=1373619534]
    1. 通过“模型”,“视图”这两个步骤之后添加了如下模块:
    [img http://i.imgur.com/bSEXFMF.jpg /img]

    2. 这时想增加一个header,把status bar放到header里,同时下面的内容做成sheet。使用管理视图,发现里面不能直接增加<header>,但是可以增加<sheet>。
    [img http://i.imgur.com/Hbo8mUB.jpg /img]
    另外一个是,我这个版本的widget只有pad,不知道是不是bug (version = 版本 7.0-20130706-231041)
    [img http://i.imgur.com/OUYd3cT.jpg /img]

    3. 然后直接到“视图”,想通过手动写XML把视图改成我要的效果,参考了"CRM Phone Call"。
    [img http://i.imgur.com/ikXWIHN.jpg /img]

    4. 但是我按CRM Phone Call的格式写了之后保存提示XML错误,在Q群mrshelly的帮助下,要在form tag增加"version=7.0"才不会报错(原因未知)
    [img http://i.imgur.com/4DoEIM9.jpg /img]

    5. 加完之后,header成功加了并且status bar也在上面了,但下面的field label全没了。
    [img http://i.imgur.com/sk61nlt.jpg /img]

    6. 把下面的field放在一个col=4的group里,就OK了。

    &lt;?xml version=&quot;1.0&quot;?&gt;<br />&lt;form string=&quot;Course Management&quot; version=&quot;7.0&quot;&gt; <br /> &lt;header&gt;<br /> &lt;field name=&quot;x_states&quot; readonly=&quot;1&quot; widget=&quot;statusbar&quot; nolabel=&quot;1&quot;/&gt;<br /> &lt;/header&gt;<br /> &lt;sheet string=&quot;课程&quot;&gt; <br /> &lt;group col=&quot;4&quot;&gt;<br /> &lt;field name=&quot;x_courseName&quot; string=&quot;课程名称&quot; required=&quot;1&quot;&gt; &lt;/field&gt;<br /> &lt;field name=&quot;x_courseType&quot; string=&quot;课程类别&quot;&gt; &lt;/field&gt;<br /> &lt;field name=&quot;x_startDate&quot; string=&quot;开课日期&quot;&gt; &lt;/field&gt;<br /> &lt;field name=&quot;x_endDate&quot; string=&quot;结束日期&quot;&gt; &lt;/field&gt;<br /> &lt;field name=&quot;x_coursePrice&quot; string=&quot;课程价格&quot;&gt; &lt;/field&gt;<br /> &lt;field name=&quot;x_courseHour&quot; string=&quot;课时数&quot;&gt; &lt;/field&gt;<br /> &lt;field name=&quot;x_staff&quot; string=&quot;操作者&quot;&gt; &lt;/field&gt;<br /> &lt;separator colspan=&quot;4&quot;&gt; &lt;/separator&gt;<br /> &lt;field name=&quot;x_courseDesc&quot; string=&quot;课程简介&quot; colspan=&quot;4&quot;&gt; &lt;/field&gt;<br /> &lt;/group&gt;<br /> &lt;/sheet&gt;<br />&lt;/form&gt;



    [img http://i.imgur.com/F3O7N4i.jpg /img]

    总结,OE的开发工具不太好用,有些奇奇怪怪的bug,而且似乎开发完了之后不能export成为addons,所以应该是“鸡肋”功能,需要更多功能的话还是用代码写会比较好点。

    再次感谢各位的帮忙。
    [/quote]


    新建的时候,草稿是不是应该有颜色。。。

  • Odoo qweb报表的头部高度 怎么修改。qweb pdf 输出前的html

    4
    0 赞同
    4 帖子
    4k 浏览
    卓忆

    谢谢分享。


    正好发现个翻译错误,
    定位Orientation应该 为 纸张方向 ,景观Landscape(横),肖像Portrait(竖/纵),
    我去官方翻译平台 修改下。  (嗯,发现8.0 已经是对的,9.0 我已修改)

  • OpenERP分析会计(Analytic Account)应用案例

    6
    0 赞同
    6 帖子
    8k 浏览
    S

    [quote author=mrshelly link=topic=2807.msg9462#msg9462 date=1331468614]
    嗯. 辅助核算, 应该是OE中的核心的东西了...

    只是现在还不知道 OE 怎么把辅助核算的记帐结果, 同系统其它的地方有机地结合起来....

    上面文章讲到了 核助核算凭证的生成. 但是凭证怎么用. 还没有讲到. 老肖继续再给讲讲?
    [/quote]

    是啊,老肖,继续给咱们讲一讲吧 🙂 🙂

  • 0 赞同
    10 帖子
    8k 浏览
    S

    一直搞不懂landed cost怎么用,收藏再学习,谢谢卓忆

  • 0 赞同
    7 帖子
    4k 浏览
    S

    详细,收藏备用,不得不赞  😄 😄

  • 我想在销售订单上记录预计发货日期,如何处理?

    5
    0 赞同
    5 帖子
    2k 浏览
    S

    模块好用,非常感谢卓忆和Jeff的帮助!

  • 0 赞同
    3 帖子
    2k 浏览
    mrshellyM

    嗯. 另一个分享点:

    https://gitter.im/odoo-china/Talk?at=56fb88f68d2a72471b7b56e0

  • Js初探

    14
    0 赞同
    14 帖子
    8k 浏览
    佳先生

    [quote author=panyi5202 link=topic=16514.msg28524#msg28524 date=1405937743]
    openerp.syt_insurance,其中的syt_insurance必须是模块名,否则,这里定义的js对象是不会初始化的。我就是在这个地方浪费了好多事件啊。。。再次感谢Tommy
    [/quote]

    谢谢,不过我这里出现了一个问题,我新建了个模块,加入js,但是怎么也调不到。。,在view里写xml

  • 中文日期显示盖着最后一位的问题

    5
    0 赞同
    5 帖子
    3k 浏览
    佳先生

    [quote author=xtjie link=topic=16628.msg29050#msg29050 date=1411698705]
    static/src/css/下建一个css 文件,加入下面内容,

    .openerp .oe_form_editable .oe_form .oe_form_field_date input {
      width: 120px;
    }
    [/quote]

    我在static/src/css/下新建了一个css 文件,但是在页面内调用不到。odoo8.0,不知道是不是版本原因。我还在xml内引用了,还是不管用。

  • Js/css无法调用

    2
    0 赞同
    2 帖子
    912 浏览
    尚无回复
  • OpenERP从零开始~学习和成长记录帖(lz是公司财务~)

    35
    0 赞同
    35 帖子
    47k 浏览
    S

    楼主的财务模块用的如何了?是时候更新一下啦 🙂

  • 字段在列表内显示文字太长怎么省略???

    3
    0 赞同
    3 帖子
    1k 浏览
    wjfonhandW

    应该用text吧