|
- [[ ob['location_name'] ]]
+ [[ (not ob['product']) and removeParentNode('blockTable') ]][[ ob['location_name'] ]]
|
@@ -178,9 +178,7 @@
|
-
-
-
+ [[ (not ob['product']) and removeParentNode('blockTable') ]]
|
Total:
diff --git a/addons/stock/report/packing.rml b/addons/stock/report/packing.rml
deleted file mode 100644
index 15fa35e07e9..00000000000
--- a/addons/stock/report/packing.rml
+++ /dev/null
@@ -1,310 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ repeatIn(objects,'picking') ]]
-
-
-
-
-
- |
-
-
-
- |
-
- [[ (picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.title) or '' ]] [[ picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.name ]]
- [[ picking.address_id and picking.address_id.street or '' ]]
- [[ picking.address_id and picking.address_id.zip or '' ]] [[ picking.address_id and picking.address_id.city or '']]
-
-
-
-
-
-
-
- |
-
-
- |
-
-
-
- |
-
- [[ 'sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and 'Shipping Address :' or removeParentNode('para') ]]
- [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]] [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]]
- [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.street) or '' ]]
- [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.zip) or '' ]] [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.city) or '' ]] [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or '' ]]
- [[ ('sale_id' in picking._columns.keys() and picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]]
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
- Packing List: [[ picking.name ]]
- |
-
-
-
-
-
-
-
-
-
-
- |
- Order(Origin)
- |
-
- Recipient
- |
-
- Expected Shipping Date
- |
-
- Weight
- |
-
-
-
-
- |
- [[ picking.origin ]]
- |
-
- [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.title) or '' ]] [[ ('sale_id' in picking._columns.keys() and picking.sale_id and picking.sale_id.partner_shipping_id and picking.sale_id.partner_shipping_id.name) or '' ]]
- |
-
- [[ formatLang(picking.min_date,date_time = True) ]]
- |
-
- [[ 'weight' in picking._columns.keys() and picking.weight or '']]
- |
-
-
-
-
-
-
-
- |
- Description
- |
-
- Tracking Lot
- |
-
- Lot
- |
-
- State
- |
-
- Quantity
- |
-
- Location
- |
-
-
-
-
-
-
-
-
-
- [[ repeatIn([line for line in picking.move_lines if (line.state == 'assigned' )],'move_lines') ]]
-
-
- |
- [ [[ move_lines.product_id.default_code ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]
- |
-
- [[ (move_lines.tracking_id and move_lines.tracking_id.name) or '/' ]]
- |
-
- [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]
- |
-
- [[ move_lines.state ]]
- |
-
- [[ move_lines.product_qty ]]
- |
-
- [[ move_lines.product_uom.name ]]
- |
-
- [[ (move_lines.location_id and move_lines.location_id.name) or '' ]]
- |
-
-
-
-
-
-
-
- [[ ([line for line in picking.move_lines if (line.state == 'draft' )]) and 'Non Assigned Products:' or removeParentNode('para') ]]
-
-
- [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') ]]
-
- |
- [ [[ move_lines.product_id.default_code ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]
- |
-
- [[ (move_lines.tracking_id and move_lines.tracking_id.name) or '/' ]]
- |
-
- [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]
- |
-
- [[ move_lines.state ]]
- |
-
- [[ move_lines.product_qty ]]
- |
-
- [[ move_lines.product_uom.name ]]
- |
-
- [[ (move_lines.location_id and move_lines.location_id.name) or '' ]]
- |
-
-
-
-
-
diff --git a/addons/stock/report/picking.py b/addons/stock/report/picking.py
index 675aedb4eb0..29a53fba7a2 100644
--- a/addons/stock/report/picking.py
+++ b/addons/stock/report/picking.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -15,7 +15,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
+# along with this program. If not, see .
#
##############################################################################
@@ -32,5 +32,4 @@ class picking(report_sxw.rml_parse):
})
report_sxw.report_sxw('report.stock.picking.list','stock.picking','addons/stock/report/picking.rml',parser=picking)
-report_sxw.report_sxw('report.stock.packing.list2','stock.picking','addons/stock/report/packing.rml',parser=picking)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml
index 3b837f51844..0cf3111781a 100644
--- a/addons/stock/report/picking.rml
+++ b/addons/stock/report/picking.rml
@@ -1,6 +1,6 @@
-
+
@@ -69,7 +69,6 @@
-
@@ -79,17 +78,16 @@
-
-
+
-
-
-
-
+
+
+
+
@@ -97,13 +95,13 @@
-
+
-
-
-
-
+
+
+
+
@@ -116,10 +114,10 @@
+
-
- [[ repeatIn(objects,'picking') ]]
+ [[repeatIn(objects,'picking')]]
@@ -128,16 +126,16 @@
[[ (picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.title) or '' ]] [[ picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.name ]]
[[ picking.address_id and picking.address_id.street or '' ]]
- [[ picking.address_id and picking.address_id.street2 or removeParentNode('para') ]]
- [[ picking.address_id and picking.address_id.zip or '' ]] [[ picking.address_id and picking.address_id.city or '']]
- [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or removeParentNode('para') ]]
+ [[ (picking.address_id and picking.address_id.street2) or removeParentNode('para') ]]
+ [[ picking.address_id and picking.address_id.zip or '' ]] [[ picking.address_id and picking.address_id.city or '' ]]
+ [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or removeParentNode('para') ]]
[[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]]
|
- [[ (picking.address_id and picking.address_id.title) or '' ]] [[ (picking.address_id and picking.address_id.name) or '' ]]
- [[ (picking.address_id and picking.address_id.street) or '' ]]
- [[ (picking.address_id and picking.address_id.street2) or removeParentNode('para') ]]
- [[ (picking.address_id and picking.address_id.zip) or '' ]] [[ (picking.address_id and picking.address_id.city) or '' ]]
+ [[ picking.address_id and picking.address_id.title or '' ]] [[ picking.address_id and picking.address_id.name or '' ]]
+ [[ picking.address_id and picking.address_id.street or '' ]]
+ [[ (picking.address_id and picking.address_id.street2) or removeParentNode('para') ]]
+ [[ picking.address_id and picking.address_id.zip or '' ]] [[ picking.address_id and picking.address_id.city or '' ]]
[[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or removeParentNode('para') ]]
[[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]]
|
@@ -155,7 +153,7 @@
|
- Picking List: [[ picking.name ]]
+ Packing List: [[ picking.name ]]
|
@@ -177,30 +175,30 @@
Expected Shipping Date
|
- Weight
+ weight
|
|
- [[ picking.origin ]]
+ [[ picking.origin or '']]
|
- [[ (picking.address_id and picking.address_id.title) or '' ]] [[ (picking.address_id and and picking.address_id.name) or '' ]]
+ [[ (picking.address_id and picking.address_id.title) or '' ]] [[ (picking.address_id and and picking.address_id.name) or '' ]]
|
[[ formatLang(picking.min_date,date_time = True) ]]
|
- [[ 'weight' in picking._columns.keys() and picking.weight or '']]
+ [[ 'weight' in picking._columns.keys() and picking.weight or '']]
|
-
+
|
Description
@@ -212,59 +210,29 @@
State
|
- Quantity
+ Quantity
|
- Location
+ Location
|
[[ repeatIn([line for line in picking.move_lines if (line.state == 'confirmed' or line.state=='done' or line.state=='assigned')],'move_lines') ]]
- [[ picking.move_lines or removeParentNode('blockTable')]]
+ [[ picking.move_lines or removeParentNode('section')]]
+
|
- [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]
+ [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]
|
- [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]
+ [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]
|
[[ move_lines.state ]]
|
- [[ move_lines.product_qty ]]
- |
-
- [[ move_lines.product_uom.name ]]
- |
-
- [[ (move_lines.location_id and move_lines.location_id.name) or '' ]]
- |
-
-
-
-
-
- [[ ([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 == 'draft' or line.state=='waiting')],'move_lines') ]]
- [[ picking.move_lines or removeParentNode('blockTable')]]
-
- |
- [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]
- |
-
- [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]
- |
-
- [[ move_lines.state ]]
- |
-
- [[ move_lines.product_qty ]]
- |
-
- [[ move_lines.product_uom.name ]]
+ [[ move_lines.product_qty ]] [[ move_lines.product_uom.name ]]
|
[[ (move_lines.location_id and move_lines.location_id.name) or '' ]]
@@ -272,11 +240,32 @@
|
-
-
-
-
-
-
+ [[ ([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 == 'draft' or line.state=='waiting')],'move_lines') ]]
+ [[ picking.move_lines or removeParentNode('section')]]
+
+
+ |
+ [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']]
+ |
+
+ [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]
+ |
+
+ [[ move_lines.state ]]
+ |
+
+ [[ move_lines.product_qty ]] [[ move_lines.product_uom.name ]]
+ |
+
+ [[ (move_lines.location_id and move_lines.location_id.name) or '' ]]
+ |
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/addons/stock/report/stock_inventory_move.rml b/addons/stock/report/stock_inventory_move.rml
index 285c9bf3a86..7cb18a4e161 100755
--- a/addons/stock/report/stock_inventory_move.rml
+++ b/addons/stock/report/stock_inventory_move.rml
@@ -1,6 +1,6 @@
-
+
@@ -47,7 +47,6 @@
-
@@ -56,19 +55,16 @@
-
-
-
-
+
+
-
@@ -155,22 +151,19 @@
-
+
|
Location
|
- Production Lot
+ Production Lot
|
Product
|
- Quantity
- |
-
- UOM
+ Quantity
|
@@ -179,42 +172,30 @@
[[ repeatIn(o.inventory_line_id, 'p') ]]
-
+
|
[[ p.location_id.name ]]
|
- [[ p.prod_lot_id and p.prod_lot_id.name or '' ]]
+ [[ p.prod_lot_id and p.prod_lot_id.name or '' ]]
|
[[ p.product_id.name ]]
|
- [[ p.product_qty ]]
- |
-
- [[ p.product_uom.name ]]
+ [[ formatLang(p.product_qty) ]] [[ p.product_uom.name ]]
|
-
-
-
-
-
-
-
+
|
Total:
|
- [[ format(qty_total(o.inventory_line_id)['quantity']) ]]
- |
-
- [[ format(qty_total(o.inventory_line_id)['uom']) ]]
+ [[ format(qty_total(o.inventory_line_id)['quantity']) ]] [[ format(qty_total(o.inventory_line_id)['uom']) ]]
|
diff --git a/addons/stock_planning/test/stock_planning.yml b/addons/stock_planning/test/stock_planning.yml
index 178c361a10c..23cfc43c821 100644
--- a/addons/stock_planning/test/stock_planning.yml
+++ b/addons/stock_planning/test/stock_planning.yml
@@ -8,35 +8,35 @@
-
!record {model: stock.period, id: stock_period_01}:
date_start: '2010-07-01 00:00:00'
- date_stop: '2010/07/06 23:59:00'
+ date_stop: '2010-07-06 23:59:00'
name: 2010, week 27
-
I create stock period for the second week of July.
-
!record {model: stock.period, id: stock_period_02}:
- date_start: '2010/07/07 00:00:00'
- date_stop: '2010/07/12 23:59:00'
+ date_start: '2010-07-07 00:00:00'
+ date_stop: '2010-07-12 23:59:00'
name: 2010, week 28
-
I create stock period for the third week of July.
-
!record {model: stock.period, id: stock_period_03}:
- date_start: '2010/07/15 00:00:00'
- date_stop: '2010/07/20 23:59:00'
+ date_start: '2010-07-15 00:00:00'
+ date_stop: '2010-07-20 23:59:00'
name: 2010, week 29
-
I create stock period for the fourth week of July.
-
!record {model: stock.period, id: stock_period_04}:
- date_start: '2010/07/22 00:00:00'
- date_stop: '2010/07/27 23:59:00'
+ date_start: '2010-07-22 00:00:00'
+ date_stop: '2010-07-27 23:59:00'
name: 2010, week 30
-
I create stock period for the fifth week of July.
-
!record {model: stock.period, id: stock_period_05}:
- date_start: '2010/07/29 00:00:00'
- date_stop: '2010/07/31 23:59:00'
+ date_start: '2010-07-29 00:00:00'
+ date_stop: '2010-07-31 23:59:00'
name: 2010, week 31
-
Now I create the forecast for this period for all PCs.
diff --git a/addons/subscription/subscription.py b/addons/subscription/subscription.py
index 934f1a42707..8fa330b1fb5 100644
--- a/addons/subscription/subscription.py
+++ b/addons/subscription/subscription.py
@@ -53,7 +53,7 @@ class subscription_document_fields(osv.osv):
_rec_name = 'field'
_columns = {
'field': fields.many2one('ir.model.fields', 'Field', domain="[('model_id', '=', parent.model)]", required=True),
- 'value': fields.selection([('false','False'),('date','Current Date')], 'Default Value', size=40),
+ 'value': fields.selection([('false','False'),('date','Current Date')], 'Default Value', size=40, help="User can set new values for the field when new document is generated"),
'document_id': fields.many2one('subscription.document', 'Subscription Document', ondelete='cascade'),
}
_defaults = {}
@@ -77,9 +77,9 @@ class subscription_subscription(osv.osv):
'exec_init': fields.integer('Number of documents'),
'date_init': fields.datetime('First Date'),
'state': fields.selection([('draft','Draft'),('running','Running'),('done','Done')], 'State'),
- 'doc_source': fields.reference('Source Document', required=True, selection=_get_document_types, size=128),
+ 'doc_source': fields.reference('Source Document', required=True, selection=_get_document_types, size=128, help="User can choose the source document on which he wants to create documents"),
'doc_lines': fields.one2many('subscription.subscription.history', 'subscription_id', 'Documents created', readonly=True),
- 'cron_id': fields.many2one('ir.cron', 'Cron Job'),
+ 'cron_id': fields.many2one('ir.cron', 'Cron Job', help="Scheduler which run on subscription"),
'note': fields.text('Notes', help="Description or Summary of Subscription"),
}
_defaults = {
diff --git a/addons/subscription/subscription_view.xml b/addons/subscription/subscription_view.xml
index 0c416c86a20..abe58ced56d 100644
--- a/addons/subscription/subscription_view.xml
+++ b/addons/subscription/subscription_view.xml
@@ -101,7 +101,7 @@
- All Subscriptions
+ Subscriptions
ir.actions.act_window
subscription.subscription
form
diff --git a/addons/survey/report/survey_analysis_report.py b/addons/survey/report/survey_analysis_report.py
index 560212ccb09..e72034e11d2 100644
--- a/addons/survey/report/survey_analysis_report.py
+++ b/addons/survey/report/survey_analysis_report.py
@@ -115,18 +115,19 @@ class survey_analysis(report_rml):
-
- Answer Summary
-
-
-
- """
+ """
if datas.has_key('form') and datas['form']['survey_ids']:
ids = datas['form']['survey_ids']
for survey in surv_obj.browse(cr, uid, ids):
- rml += """
+ rml += """
+ Answer Summary
+
+
+
+
+
|
Survey Title
@@ -420,9 +421,9 @@ class survey_analysis(report_rml):
| """ + tools.ustr(survey.tot_start_survey - que.tot_resp) + """ |
"""
- rml += """"""
+ rml += """"""
- rml += """"""
+ rml += """"""
report_type = datas.get('report_type', 'pdf')
create_doc = self.generators[report_type]
pdf = create_doc(rml, title=self.title)
diff --git a/addons/survey/security/ir.model.access.csv b/addons/survey/security/ir.model.access.csv
index 10c07dc0b08..9d7c9c44ee4 100644
--- a/addons/survey/security/ir.model.access.csv
+++ b/addons/survey/security/ir.model.access.csv
@@ -24,7 +24,7 @@
"access_survey_tbl_column_heading_manager","survey.tbl.column.heading manager","model_survey_tbl_column_heading","base.group_tool_manager",1,1,1,1
"access_survey_tbl_column_heading_user","survey.tbl.column.heading user","model_survey_tbl_column_heading","base.group_tool_user",1,1,1,1
"access_survey_response_line_manager","survey.response.line manager","model_survey_response_line","base.group_tool_manager",1,1,1,1
-"access_survey_response_line_manager","survey.response.line manager","model_survey_response_line","base.group_tool_user",1,1,1,1
+"access_survey_response_line_user","survey.response.line user","model_survey_response_line","base.group_tool_user",1,1,1,1
"access_survey_type","survey.type","model_survey_type","base.group_hr_manager",1,1,1,1
"access_survey","survey","model_survey","base.group_hr_manager",1,1,1,1
"access_survey_history_manager","survey.history","model_survey_history","base.group_hr_manager",1,1,1,1
@@ -44,4 +44,8 @@
"access_survey_history_system","survey.history.system","model_survey_history","base.group_system",1,0,0,0
"access_survey_answer_system","survey.answer system","model_survey_answer","base.group_system",1,0,0,0
"access_survey_answer_base_user","survey.answer.base.user","model_survey_answer","base.group_user",1,1,1,1
-"access_survey_question_base_user","survey.question.base.user","model_survey_question","base.group_user",1,1,1,
+"access_survey_question_base_user","survey.question.base.user","model_survey_question","base.group_user",1,1,1,1
+"access_survey_res_partner_address_user","survey.res.partner.address.user","base.model_res_partner_address","base.group_tool_user",1,1,1,0
+"access_survey_request_employee","survey.request.employee","model_survey_request","base.group_user",1,0,0,0
+"access_survey_response_employee","survey.response employee","model_survey_response","base.group_user",1,0,0,0
+"access_survey_employee","survey.employee","model_survey","base.group_user",1,0,0,0
diff --git a/addons/survey/survey.py b/addons/survey/survey.py
index d1d392c5479..61d96f792f8 100644
--- a/addons/survey/survey.py
+++ b/addons/survey/survey.py
@@ -60,7 +60,7 @@ class survey(osv.osv):
'response_user': fields.integer('Maximum Answer per User',
help="Set to one if you require only one Answer per user"),
'state': fields.selection([('draft', 'Draft'), ('open', 'Open'), ('close', 'Closed'), ('cancel', 'Cancelled')], 'Status', readonly=True),
- 'responsible_id': fields.many2one('res.users', 'Responsible'),
+ 'responsible_id': fields.many2one('res.users', 'Responsible', help="User responsible for survey"),
'tot_start_survey': fields.integer("Total Started Survey", readonly=1),
'tot_comp_survey': fields.integer("Total Completed Survey", readonly=1),
'note': fields.text('Description', size=128),
diff --git a/addons/survey/survey_view.xml b/addons/survey/survey_view.xml
index ec3b1677db6..2aa3eac089d 100644
--- a/addons/survey/survey_view.xml
+++ b/addons/survey/survey_view.xml
@@ -476,7 +476,6 @@
-
@@ -1106,7 +1105,7 @@
-
+
@@ -1119,6 +1118,7 @@
survey.request
form
tree,form
+ [('user_id','=',uid)]
|