跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

T

timwang

@timwang
关于
帖子
8
主题
3
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • GreenOpenERP -- 绿色版 OpenERP for windows/linux , 源码运行 解压即用
    T timwang

    我的是报这个错,怎么回事啊?
    原版的OPENERP是可以运行的。


  • 定义的action不执行
    T timwang

    <button name="action_partial_process" string="入出库操作" type="action" states="assigned,confirmed" class="oe_highlight"/>

    这句话里面的type="action"改成type="object"就好了。

    看来代码不能乱抄。


  • 定义的action不执行
    T timwang

    已经忙了几个小时了,实在找不到原因,求助大家。

    原意是在出货View里面把“全部处理”去掉,改成分批处理,定义的方法是“action_partial_process”。但是Button始终不触发事件。不知道哪里出了问题。

    view.xml代码如下:
    <!-- 入出库Form中去掉全部处理、设为可用功能,增加分批发货功能 -->
            <record id="view_move_form_x_sale" model="ir.ui.view">
                <field name="name">stock.move.form</field>
                <field name="model">stock.move</field>
                <field name="inherit_id" ref="stock.view_move_form"/>
                <field name="arch" type="xml">
                    <data>
                        <xpath expr="//button[@name='action_done']" position="replace">                 
                            <button name="action_done" invisible="1"/>
                        </xpath>                   
                        <xpath expr="//button[@name='force_assign']" position="replace">                 
                            <button name="force_assign" invisible="1"/>
                        </xpath>                   
    [color=red]                    <button name="%(stock.action_partial_move_server)d" position="replace">
                        <button name="action_partial_process" string="入出库操作" type="action" states="assigned,confirmed" class="oe_highlight"/>
                        </button>
    [/color]                   
                        <!-- 
                        <xpath expr="//button[@name='Process Partially']" position="replace">                 
                        <button name="action_partial_process" string="入出库操作" type="action" states="assigned,confirmed" class="oe_highlight"/>
                        </xpath>
                        -->
                    </data>
              </field>
            </record>   

    py里面的代码如下

    class stock_move(osv.osv):
        _name = 'stock.move'
        _inherit = 'stock.move'
        log_create = True
       
        def test(self, cr, uid, ids, context=None):
            raise osv.except_osv(
    ('Warning!'), '123456')
            return True
       
    [color=red]    def action_partial_process(self, cr, uid, ids, context=None):
            if context is None: context = {}
           
            logging.log(10, "12345")


            context.update({
                'active_model': self.name,
                'active_ids': ids,
                'active_id': len(ids) and ids[0] or False
            })
            return {
                'name':
    ("Products to Process"),
                'view_mode': 'form',
                'view_id': False,
                'view_type': 'form',
                'res_model': 'stock.partial.move',
                'type': 'ir.actions.act_window',
                'nodestroy': True,
                'target': 'new',
                'domain': '[]',
                'context': context
            }  [/color]
           
        def do_partial(self, cr, uid, ids, partial_datas, context=None):
            """
            @param partial_datas : Dictionary containing details of partial picking
                              like partner_id, partner_id, delivery_date,
                              delivery moves with product_id, product_qty, uom
            @return: Dictionary of values
            """
           
            picking_obj = self.pool.get('stock.picking')
                   
            delivery_date = partial_datas['delivery_date']
           
            res = super(stock_move,self).do_partial(cr, uid, ids, partial_datas, context)
           
            self.write(cr, uid, res, {'date': delivery_date})
           
            for move in self.browse(cr, uid, res, context=context):
                picking_obj.write(cr, uid, [move.picking_id.id], {'date_done': delivery_date})
                       
            return res

        _columns = {
            'date_expected': fields.date('计划日期', required=False),   
            'date': fields.date('实际日期', required=False),   
        }

        _defaults = {
            'date': lambda *a: time.strftime('%Y-%m-%d'),
        }


  • 求助:7.0 Server 突然启动不了了
    T timwang

    见鬼了.
    重新把OpenERP的文件复制了一遍又好了.
    难道是我的文件系统有问题?


  • 求助:7.0 Server 突然启动不了了
    T timwang

    上午还用的很好,下午突然连接不上去, 检查服务,已经停止了.
    重新启动,就再也启动不了了.
    我的是XP的系统. 系统日志里面报错:
    The instance's SvcRun() method failed
    Traceback (most recent call last):
      File "win32serviceutil.pyo", line 806, in SvcRun
      File "OpenERPServerService.pyo", line 68, in SvcDoRun
      File "OpenERPServerService.pyo", line 65, in StartTERP
      File "subprocess.pyo", line 633, in init
      File "subprocess.pyo", line 842, in _execute_child
    WindowsError: [Error 2] 
    %2: %3

    但是OpenERP 的server日志里面没有任何输出, 这是怎么回事啊?


  • 问一个弱智问题,6.1里面销售订单在那里设置发货时间啊?
    T timwang

    sorry,sorry, 太粗心了。
    找到了。谢谢。


  • 问一个弱智问题,6.1里面销售订单在那里设置发货时间啊?
    T timwang

    怪了。是不是什么模块没装啊?我找死了都没找到"送货提前期"


  • 问一个弱智问题,6.1里面销售订单在那里设置发货时间啊?
    T timwang

    我们是根据客户的订单交期进行交货。
    但是我找不到设置订单交期的地方。

    求助各位了,万分感谢。

  • 登录

  • 没有帐号? 注册

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组