Back ORder integrated in stock

bzr revid: fp@tinyerp.com-20080908065331-dpxuwxdvi2wpxfdb
This commit is contained in:
Fabien Pinckaers 2008-09-08 08:53:31 +02:00
parent 49908cfc85
commit f1c9e258a4
25 changed files with 52 additions and 1582 deletions

View File

@ -331,6 +331,7 @@ class stock_picking(osv.osv):
'type': fields.selection([('out','Sending Goods'),('in','Getting Goods'),('internal','Internal'),('delivery','Delivery')], 'Shipping Type', required=True, select=True),
'active': fields.boolean('Active'),
'note': fields.text('Notes'),
'back_order_id' : fields.many2one('stock.picking', 'Back Order', readonly=True),
#'location_id': fields.many2one('stock.location', 'Location'),
#'location_dest_id': fields.many2one('stock.location', 'Dest. Location'),

View File

@ -459,12 +459,13 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree color="red:state=='cancel'" string="Packing list">
<field colspan="4" name="name" select="1"/>
<field name="date" select="1"/>
<field name="address_id" select="1" context="{'context_display':'partner'}"/>
<field name="invoice_state" readonly="1"/>
<field name="origin" select="1"/>
<field name="state" readonly="1"/>
<field name="name"/>
<field name="date"/>
<field name="address_id"/>
<field name="invoice_state"/>
<field name="origin"/>
<field name="backorder_id"/>
<field name="state"/>
</tree>
</field>
</record>
@ -476,10 +477,13 @@
<form string="Packing list">
<notebook>
<page string="General Information">
<field name="address_id" select="2" context="{'context_display':'partner'}"/>
<field name="type" select="2" readonly="1"/>
<field name="name" select="1" readonly="1"/>
<field name="date" select="1"/>
<group colspan="4" col="6">
<field name="address_id" select="2" context="{'context_display':'partner'}"/>
<field name="type"/>
<field name="name"/>
<field name="date"/>
<field name="backorder_id"/>
</group>
<newline/>
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
<form string="Stock Moves">
@ -548,11 +552,12 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree color="red:state=='cancel'" string="Packing list">
<field colspan="4" name="name" select="1"/>
<field name="date" select="1"/>
<field name="address_id" select="1" context="{'context_display':'partner'}"/>
<field name="origin" select="1"/>
<field name="state" readonly="1"/>
<field name="name"/>
<field name="date"/>
<field name="address_id"/>
<field name="origin"/>
<field name="backorder_id"/>
<field name="state"/>
</tree>
</field>
</record>
@ -562,10 +567,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Packing list">
<field name="address_id" select="2" context="{'context_display':'partner'}"/>
<field name="origin" select="2"/>
<field name="name" select="1" readonly="1"/>
<field name="date" select="1" readonly="1"/>
<group colspan="4" col="6">
<field name="address_id" select="2" context="{'context_display':'partner'}"/>
<field name="origin" select="2"/>
<field name="name" select="1" readonly="1"/>
<field name="date" select="1" readonly="1"/>
<field name="backorder_id" select="2"/>
</group>
<notebook colspan="4">
<page string="General Information">
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
@ -701,12 +709,13 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree color="red:state=='cancel'" string="Packing list">
<field colspan="4" name="name" select="1"/>
<field name="date" select="1"/>
<field name="address_id" select="1" context="{'context_display':'partner'}"/>
<field name="invoice_state" readonly="1"/>
<field name="origin" select="1"/>
<field name="state" readonly="1"/>
<field name="name"/>
<field name="date"/>
<field name="address_id"/>
<field name="invoice_state"/>
<field name="origin"/>
<field name="backorder_id"/>
<field name="state"/>
</tree>
</field>
</record>
@ -716,10 +725,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Packing list">
<field name="address_id" select="2" context="{'context_display':'partner'}"/>
<field name="date" select="1" readonly="1"/>
<field name="origin" select="2"/>
<field name="name" select="1" readonly="1"/>
<group colspan="4" col="6">
<field name="address_id" select="2" context="{'context_display':'partner'}"/>
<field name="date" select="1" readonly="1"/>
<field name="origin" select="2"/>
<field name="name" select="1" readonly="1"/>
<field name="backorder_id" select="2"/>
</group>
<notebook colspan="4">
<page string="General Information">
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
@ -857,6 +869,7 @@
<field name="address_id" select="1" context="{'context_display':'partner'}"/>
<field name="invoice_state" readonly="1"/>
<field name="origin" select="1"/>
<field name="backorder_id" select="2"/>
<field name="state" readonly="1"/>
</tree>
</field>
@ -867,10 +880,13 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Input Packing List">
<field name="address_id" on_change="onchange_partner_in(address_id)" select="2" context="{'context_display':'partner'}"/>
<field name="origin" select="2"/>
<field name="invoice_state" select="2" string="Invoice Control"/>
<field name="name" readonly="1" select="1"/>
<group colspan="4" col="6">
<field name="address_id" on_change="onchange_partner_in(address_id)" select="2" context="{'context_display':'partner'}"/>
<field name="origin" select="2"/>
<field name="invoice_state" select="2" string="Invoice Control"/>
<field name="name" readonly="1" select="1"/>
<field name="backorder_id" select="2"/>
</group>
<notebook colspan="4">
<page string="General Information">
<field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id}">

View File

@ -153,7 +153,8 @@ def _do_split(self, cr, uid, data, context):
{
'name' : '%s (splitted)' % pick.name,
'move_lines' : [],
'state':'draft'
'state':'draft',
'back_order_id': pick.id
})
new_obj = move_obj.copy(cr, uid, move.id,
{

View File

@ -1,33 +0,0 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
# Fabien Pinckaers <fp@tiny.Be>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import stock
import wizard
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,22 +0,0 @@
# -*- encoding: utf-8 -*-
{
"name" : "Stock Back Order",
"version" : "1.0",
"author" : "Tiny",
"depends" : ["base", "stock",],
"category" : "Generic Modules/Inventory Control",
"description":"""
To manage all back-orders (means partial pickings):
When products coming from suppliers arrive but some are missing, we have to make a partial picking.
The remaining products are called "back-orders" and have to be separated from normal waiting picking (in a predefined list called "Back-Orders").
The same process has to be done for sending goods.
""",
"init_xml" : [],
"demo_xml" : [],
"update_xml" : ["stock_view.xml","stock_wizard.xml"],
"active": False,
"installable": True
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:32:29+0000"
"PO-Revision-Date: 2008-09-04 08:32:29+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr ""
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:33:13+0000"
"PO-Revision-Date: 2008-09-04 08:33:13+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Warenversand"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Lagerverwaltung"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:34:02+0000"
"PO-Revision-Date: 2008-09-04 08:34:02+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Envío de Productos"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Recepción de Productos"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Control de Inventarios (Stock)"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:34:48+0000"
"PO-Revision-Date: 2008-09-04 08:34:48+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Envio Mercancias"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Recepcion Mercancias"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Control Inventario"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:35:53+0000"
"PO-Revision-Date: 2008-09-04 08:35:53+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Livraison de marchandise"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Reception des produits"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Contrôle d'inventaire"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr "Interne"
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr "Listes de colisage"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:36:32+0000"
"PO-Revision-Date: 2008-09-04 08:36:32+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr ""
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:37:25+0000"
"PO-Revision-Date: 2008-09-04 08:37:25+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Beni in spedizione"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Beni in ricezione"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Controllo inventario"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:38:11+0000"
"PO-Revision-Date: 2008-09-04 08:38:11+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Goederen Verzenden"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Getting Goods"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Voorraadbeheer"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:38:52+0000"
"PO-Revision-Date: 2008-09-04 08:38:52+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Enviar artigos"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Recebendo lances"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:39:40+0000"
"PO-Revision-Date: 2008-09-04 08:39:40+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "A Enviar Artigos "
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "A Receber Artigos"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Controlo de Inventário"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:40:19+0000"
"PO-Revision-Date: 2008-09-04 08:40:19+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Expedirea Marfii"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Receptia de marfuri"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:41:03+0000"
"PO-Revision-Date: 2008-09-04 08:41:03+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Отправка продукции"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Получение продукции"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:41:45+0000"
"PO-Revision-Date: 2008-09-04 08:41:45+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "Sändning av varor"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "Hämtning av varor"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "Lagerkontroll"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:42:44+0000"
"PO-Revision-Date: 2008-09-04 08:42:44+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "货物出库"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "货物入库"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr "库存管理"
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr "内部"
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr "装箱单"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,74 +0,0 @@
# Translation of OpenERP Server.
# This file containt the translation of the following modules:
# * stock_back_order
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 4.3.0"
"Report-Msgid-Bugs-To: support@tinyerp.com"
"POT-Creation-Date: 2008-09-04 08:43:25+0000"
"PO-Revision-Date: 2008-09-04 08:43:25+0000"
"Last-Translator: <>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
"Plural-Forms: "
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_goods_list
msgid "Sending Goods"
msgstr "货物发送"
#. module: stock_back_order
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_getting_goods_list
msgid "Getting Goods"
msgstr "货物收乞"
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_control
msgid "Inventory Control"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,back_order_id:0
msgid "Back Order"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_list
msgid "Internal"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_internal_picking_back_order_tree
msgid "Back Orders (internal goods)"
msgstr ""
#. module: stock_back_order
#: field:stock.picking,backorder:0
msgid "Backorder"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_packing_list
msgid "Packing Lists"
msgstr ""
#. module: stock_back_order
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_internal_back_orders_list
#: model:ir.ui.menu,name:stock_back_order.menu_report_inventory_orders_list
msgid "Back Orders"
msgstr ""
#. module: stock_back_order
#: model:ir.actions.act_window,name:stock_back_order.action_report_stock_out_picking_back_order_tree
msgid "Back Orders (sending goods)"
msgstr ""

View File

@ -1,55 +0,0 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
# Fabien Pinckaers <fp@tiny.Be>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from osv import fields,osv
import tools
import ir
import pooler
class stock_picking(osv.osv):
_name = "stock.picking"
_inherit ='stock.picking'
_columns = {
'back_order_id' : fields.many2one('stock.picking', 'Back Order', readonly=True),
'backorder':fields.boolean('Backorder',readonly=True),
}
_defaults = {
'type':lambda *a: 'internal',
'backorder':lambda *a: False,
}
stock_picking()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,81 +0,0 @@
<?xml version="1.0"?>
<terp>
<data>
#--------------------------------------
# picking form view
#--------------------------------------
<record model="ir.ui.view" id="view_picking_form_inherited">
<field name="name">stock.picking.form.inherit</field>
<field name="model">stock.picking</field>
<field name="type">form</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="back_order_id" />
</field>
</field>
</record>
<record model="ir.ui.view" id="view_picking_tree_inherited">
<field name="name">stock.picking.tree.inherit</field>
<field name="model">stock.picking</field>
<field name="type">tree</field>
<field name="inherit_id" ref="stock.vpicktree"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="back_order_id" />
</field>
</field>
</record>
#--------------------------------------
# report back order
#--------------------------------------
<record model="ir.actions.act_window" id="action_report_stock_out_picking_back_order_tree">
<field name="name">Back Orders (sending goods)</field>
<field name="res_model">stock.picking</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('state','&lt;&gt;','done'),('type','=','out'),('backorder','=',True)]</field>
</record>
<menuitem name="Inventory Control" id="menu_report_inventory_control"/>
<menuitem name="Packing Lists" id="menu_report_inventory_packing_list" parent="menu_report_inventory_control"/>
<menuitem name="Sending Goods" id="menu_report_inventory_goods_list" parent="menu_report_inventory_packing_list"/>
<menuitem name="Back Orders" id="menu_report_inventory_orders_list" parent="menu_report_inventory_goods_list" action="action_report_stock_out_picking_back_order_tree"/>
<record model="ir.actions.act_window" id="action_report_stock_in_picking_back_order_tree">
<field name="name">Back Orders (getting goods)</field>
<field name="res_model">stock.picking</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('state','&lt;&gt;','done'),('type','=','in'),('backorder','=',True)]</field>
</record>
<menuitem name="Getting Goods" id="menu_report_inventory_getting_goods_list" parent="menu_report_inventory_packing_list"/>
<menuitem name="Back Orders" id="menu_report_inventory_back_orders_list" parent="menu_report_inventory_getting_goods_list" action="action_report_stock_in_picking_back_order_tree"/>
<record model="ir.actions.act_window" id="action_report_stock_internal_picking_back_order_tree">
<field name="name">Back Orders (internal goods)</field>
<field name="res_model">stock.picking</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('state','&lt;&gt;','done'),('type','=','internal'),('backorder','=',True)]</field>
</record>
<menuitem name="Internal" id="menu_report_inventory_internal_list" parent="menu_report_inventory_packing_list"/>
<menuitem name="Back Orders" id="menu_report_inventory_internal_back_orders_list" parent="menu_report_inventory_internal_list" action="action_report_stock_internal_picking_back_order_tree"/>
</data>
</terp>

View File

@ -1,6 +0,0 @@
<?xml version="1.0"?>
<terp>
<data>
<wizard string="Partial picking" multi="True" model="stock.picking" name="stock.back_order.partial_picking" id="stock.partial_picking" />
</data>
</terp>

View File

@ -1,31 +0,0 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
# Fabien Pinckaers <fp@tiny.Be>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import wizard_partial_picking
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,210 +0,0 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2005-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
#
# $Id: wizard_partial_picking.py 6118 2007-04-25 16:08:50Z ced $
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import time
import netsvc
from tools.misc import UpdateableStr
import pooler
import wizard
from osv import osv
from osv.osv import except_osv
_moves_arch = UpdateableStr()
_moves_fields = {}
_moves_arch_end = '''<?xml version="1.0"?><form string="Picking Result"><label string="The picking has been successfully made !" colspan="4" /></form>'''
_moves_fields_end = {}
def make_default(val):
def fct(uid, data, state):
return val
return fct
def _get_moves(self, cr, uid, data, context):
pick_obj = pooler.get_pool(cr.dbname).get('stock.picking')
pick = pick_obj.browse(cr, uid, [data['id']])[0]
res = {}
_moves_fields.clear()
_moves_arch_lst = ['<?xml version="1.0"?>', '<form string="Make picking">']
for m in pick.move_lines:
quantity = m.product_qty
if m.state<>'assigned':
quantity = 0
_moves_arch_lst.append('<field name="move%s" />' % (m.id,))
_moves_fields['move%s' % m.id] = {'string' : '%s - %s' % (m.product_id.code, m.product_id.name), 'type' : 'float', 'required' : True, 'default' : make_default(quantity)}
if (pick.type == 'in') and (m.product_id.cost_method == 'average'):
price=0
if hasattr(m, 'purchase_line_id') and m.purchase_line_id:
price=m.purchase_line_id.price_unit
currency=0
if hasattr(pick, 'purchase_id') and pick.purchase_id:
currency=pick.purchase_id.pricelist_id.currency_id.id
_moves_arch_lst.append('<group><field name="price%s"/>' % (m.id,))
_moves_fields['price%s' % m.id] = {'string': 'Unit Price', 'type': 'float', 'required': True, 'default': make_default(price)}
_moves_arch_lst.append('<field name="currency%d"/></group>' % (m.id,))
_moves_fields['currency%s' % m.id] = {'string': 'Currency', 'type': 'many2one', 'relation': 'res.currency', 'required': True, 'default': make_default(currency)}
_moves_arch_lst.append('<newline/>')
res.setdefault('moves', []).append(m.id)
_moves_arch_lst.append('</form>')
_moves_arch.string = '\n'.join(_moves_arch_lst)
return res
def _do_print(self, cr, uid, data, context):
pick_obj = pooler.get_pool(cr.dbname).get('stock.picking')
pick = pick_obj.browse(cr, uid, [data['id']])[0]
if pick.type=='out':
return 'print'
return 'end'
def _do_split(self, cr, uid, data, context):
move_obj = pooler.get_pool(cr.dbname).get('stock.move')
pick_obj = pooler.get_pool(cr.dbname).get('stock.picking')
pick = pick_obj.browse(cr, uid, [data['id']])[0]
new_picking = None
new_moves = []
complete, too_many, too_few = [], [], []
for move in move_obj.browse(cr, uid, data['form'].get('moves',[])):
if move.product_qty == data['form']['move%s' % move.id]:
complete.append(move)
elif move.product_qty > data['form']['move%s' % move.id]:
too_few.append(move)
else:
too_many.append(move)
#
# Average price computation
#
if (pick.type == 'in') and (move.product_id.cost_method == 'average'):
product_obj = pooler.get_pool(cr.dbname).get('product.product')
currency_obj = pooler.get_pool(cr.dbname).get('res.currency')
users_obj = pooler.get_pool(cr.dbname).get('res.users')
product = product_obj.browse(cr, uid, [move.product_id.id])[0]
user = users_obj.browse(cr, uid, [uid])[0]
qty = data['form']['move%s' % move.id]
price = data['form']['price%s' % move.id]
currency = data['form']['currency%s' % move.id]
if qty > 0:
new_price = currency_obj.compute(cr, uid, currency, user.company_id.currency_id.id, price)
new_std_price = ((product.standard_price * product.qty_available) + (new_price * qty))/(product.qty_available + qty)
product_obj.write(cr, uid, [product.id], {'standard_price': new_std_price})
for move in too_few:
if not new_picking:
new_picking = pick_obj.copy(cr, uid, pick.id, {'backorder':True,'name' : '%s (splitted)' % pick.name, 'move_lines' : [],'back_order_id':data['id'], 'state':'draft'})
pick.write(cr, uid, [pick.id], {'back_order_id' : new_picking})
new_obj = move_obj.copy(cr, uid, move.id, {'product_qty' : move.product_qty - data['form']['move%s' % move.id], 'product_uos_qty':move.product_qty - data['form']['move%s' % move.id], 'picking_id' : new_picking, 'state': 'assigned', 'move_dest_id': False})
move_obj.write(cr, uid, [move.id], {'product_qty' : data['form']['move%s' % move.id], 'product_uos_qty':data['form']['move%s' % move.id]})
if new_picking:
move_obj.write(cr, uid, [c.id for c in complete], {'picking_id': pick.id})
for move in too_many:
move_obj.write(cr, uid, [move.id], {'product_qty' : data['form']['move%s' % move.id],'product_uos_qty':data['form']['move%s' % move.id] , 'picking_id': pick.id})
else:
for move in too_many:
move_obj.write(cr, uid, [move.id], {'product_qty' : data['form']['move%s' % move.id],'product_uos_qty':data['form']['move%s' % move.id]})
# At first we confirm the new picking (if necessary)
wf_service = netsvc.LocalService("workflow")
if new_picking:
wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_confirm', cr)
# Then we finish the good picking
try:
if new_picking:
pick_obj.action_move(cr, uid, [pick.id])
wf_service.trg_validate(uid, 'stock.picking',pick.id , 'button_done', cr)
wf_service.trg_write(uid, 'stock.picking', new_picking, cr)
else:
pick_obj.action_move(cr, uid, [pick.id])
wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_done', cr)
except except_osv, e:
raise wizard.except_wizard(e.name, e.value)
return {}
# for move in too_few:
# if not new_picking:
# new_picking = pick_obj.copy(cr, uid, pick.id, {'name' : '%s (splitted)' % pick.name, 'move_lines' : [],'back_order_id':data['id'], 'state':'draft'})
# pick.write(cr, uid, [pick.id], {'backorder':True,'back_order_id' : new_picking})
# new_obj = move_obj.copy(cr, uid, move.id, {'product_qty' : data['form']['move%s' % move.id], 'product_uos_qty':data['form']['move%s' % move.id], 'picking_id' : new_picking, 'state': 'assigned', 'move_dest_id': False})
# move_obj.write(cr, uid, [move.id], {'product_qty' : move.product_qty - data['form']['move%s' % move.id], 'product_uos_qty':move.product_qty - data['form']['move%s' % move.id]})
#
# if new_picking:
# move_obj.write(cr, uid, [c.id for c in complete], {'picking_id': new_picking})
# for move in too_many:
# move_obj.write(cr, uid, [move.id], {'product_qty' : data['form']['move%s' % move.id],'product_uos_qty':data['form']['move%s' % move.id] , 'picking_id': new_picking})
# else:
# for move in too_many:
# move_obj.write(cr, uid, [move.id], {'product_qty' : data['form']['move%s' % move.id],'product_uos_qty':data['form']['move%s' % move.id]})
#
# # At first we confirm the new picking (if necessary)
# wf_service = netsvc.LocalService("workflow")
# if new_picking:
# wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_confirm', cr)
# # Then we finish the good picking
# try:
# if new_picking:
# pick_obj.action_move(cr, uid, [new_picking])
# wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_done', cr)
# wf_service.trg_write(uid, 'stock.picking', pick.id, cr)
# else:
# pick_obj.action_move(cr, uid, [pick.id])
# wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_done', cr)
# except except_osv, e:
# raise wizard.except_wizard(e.name, e.value)
#service = netsvc.LocalService("wizard.stock.picking.delivery.report")
#res = service.execute(cr.dbname, uid,{'id': new_picking})
#return {}
class partial_picking(wizard.interface):
states = {
'init' : {
'actions' : [ _get_moves ],
'result' : { 'type' : 'form', 'arch' : _moves_arch, 'fields' : _moves_fields, 'state' : (('end', 'Cancel'),('split', 'Make Picking') )},
},
'split': {
'actions': [_do_split],
'result': {'type': 'state', 'state': 'end'},
},
}
partial_picking('stock.back_order.partial_picking')
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: