Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

部分发货, 自动发票错误



  • 6.03
    订单设置:
    装箱方式:部分交货
    运送方式:来自装箱单的发票
    开票一句:已运数量
    —————错误描述
    改订单出库时,直接根据发货单生成发票,部分发货时候,生成的发票数量是未处理数量,而不是理应的已处理完数量
    ---------原因
    生成发票的向导,使用的原来装箱单的id,造成发票数据错误
    —————解决方法, 新的装箱单传 发票生成动作

    file:addons/stock/wizard/stock_partial_picking
             
          -  rpick_obj.do_partial(cr, uid, picking_ids, partial_datas, context=context)
          -  return {'type': 'ir.actions.act_window_close',}
           
          +  res=pick_obj.do_partial(cr, uid, picking_ids, partial_datas, context=context)
          +  return {'type': 'ir.actions.act_window_close','res_do_partial':res}


    file:addons\stock_invoice_directly\wizard\stock_invoice.py
      + active_id=context.get('active_ids')[0]

      +  new_pick_id=result['res_do_partial'][active_id]['delivered_picking']

      +  if new_pick_id:  context['active_ids']=[new_pick_id]








  • https://bugs.launchpad.net/openobject-addons/+bug/1060259

    <br />1	=== modified file &#039;stock_invoice_directly/wizard/stock_invoice.py&#039;<br />2	--- stock_invoice_directly/wizard/stock_invoice.py 2012-03-05 18:40:03 +0000<br />3	+++ stock_invoice_directly/wizard/stock_invoice.py 2012-11-09 09:44:58 +0000<br />4	@@ -31,8 +31,13 @@<br />5	if context is None: context = {}<br />6	result = super(invoice_directly, self).do_partial(cr, uid, ids, context)<br />7	partial = self.browse(cr, uid, ids[0], context)<br />8	- context.update(active_model=&#039;stock.picking&#039;,<br />9	- active_ids=[partial.picking_id.id])<br />10	+ active_ids = partial.picking_id.backorder_id.id<br />11	+ if active_ids:<br />12	+ context.update(active_model=&#039;stock.picking&#039;,<br />13	+ active_ids=[active_ids])<br />14	+ else:<br />15	+ context.update(active_model=&#039;stock.picking&#039;,<br />16	+ active_ids=[partial.picking_id.id])<br />17	if partial.picking_id.invoice_state == &#039;2binvoiced&#039;:<br />18	return {<br />19	&#039;name&#039;: &#039;Create Invoice&#039;,<br />