@@ -267,13 +267,17 @@
+
+
+
+
+
+
- [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('section') ]]
- Non Assigned Products: [[ ( move_lines.state == 'assigned' or move_lines.state == 'done' or move_lines.state == 'confirmed' ) and removeParentNode('para') ]]
- [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('para') ]]
+ [[ ([line for line in picking.move_lines if (line.state == 'draft' or line.state=='waiting' )]) and 'Non Assigned Products:' or removeParentNode('para') ]]
- [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') and removeParentNode('section') ]]
+ [[ repeatIn([line for line in picking.move_lines if (line.state == 'draft' or line.state=='waiting')],'move_lines') ]]
[[ picking.move_lines or removeParentNode('blockTable')]]
|
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index 5b7d46f9c20..9230270feeb 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -1583,7 +1583,7 @@ class stock_move(osv.osv):
'address_id': picking.address_id.id,
'invoice_state': 'none',
'date': picking.date,
- 'sale_id': picking.sale_id.id
+ 'sale_id':' sale_id' in picking._columns.keys() and picking.sale_id.id or False
})
for move, (loc, auto, delay, journal, company_id, ptype) in todo:
new_id = move_obj.copy(cr, uid, move.id, {
diff --git a/addons/stock/stock_report.xml b/addons/stock/stock_report.xml
index 68b324dc9b2..f1adfc33816 100644
--- a/addons/stock/stock_report.xml
+++ b/addons/stock/stock_report.xml
@@ -3,7 +3,7 @@
-
+
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index e57a000deda..772726743be 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -355,55 +355,6 @@
-
-
-
-
-
-
-
-
stock.location.form
stock.location
@@ -415,7 +366,6 @@
-
@@ -627,7 +577,7 @@
-
+
@@ -1596,7 +1546,7 @@
-
+
@@ -1653,7 +1603,7 @@
-
+
diff --git a/addons/stock_location/__openerp__.py b/addons/stock_location/__openerp__.py
index 18d8457a4a3..beb24997fb8 100644
--- a/addons/stock_location/__openerp__.py
+++ b/addons/stock_location/__openerp__.py
@@ -49,4 +49,3 @@ This module may be useful for different purposes:
'certificate': '0046505115101',
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/survey/security/ir.model.access.csv b/addons/survey/security/ir.model.access.csv
index aa2f6794eda..9944a84996d 100644
--- a/addons/survey/security/ir.model.access.csv
+++ b/addons/survey/security/ir.model.access.csv
@@ -38,9 +38,7 @@
"access_survey_response_answer","survey.response.answer","model_survey_response_answer","base.group_hr_manager",1,1,1,1
"access_survey_res_users","res.users","base.model_res_users","base.group_hr_manager",1,1,1,1
"access_survey_request","survey.request","model_survey_request","base.group_hr_manager",1,1,1,1
-"access_survey_name_wiz_user","survey.name.wiz.user","model_survey_name_wiz","base.group_survey_user",1,1,1,0
"access_survey_history_survey_manager","survey.history manager","model_survey_history","base.group_survey_manager",1,0,0,0
-"access_survey_name_wiz_system","survey.name.wiz.system","model_survey_name_wiz","base.group_system",1,0,0,0
"access_survey_type_system","survey.type system","model_survey_type","base.group_system",1,0,0,0
"access_survey_question_system","survey.question system","model_survey_question","base.group_system",1,0,0,0
"access_survey_history_system","survey.history.system","model_survey_history","base.group_system",1,0,0,0
| |