@@ -308,7 +308,7 @@
Designation
|
- [[ cont.function.name or '' ]]
+ [[ cont.job_id.name or '' ]]
|
Phone No.
@@ -427,7 +427,7 @@
- [[repeatIn(cont.function.line_ids,'line')]]
+ [[repeatIn(cont.struct_id.line_ids,'line')]]
@@ -550,3 +550,4 @@
+
diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml
index d612706257f..9f8100cd184 100644
--- a/addons/hr_timesheet/hr_timesheet_view.xml
+++ b/addons/hr_timesheet/hr_timesheet_view.xml
@@ -52,7 +52,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml
index 8ab227a1870..4515215e4a1 100644
--- a/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml
+++ b/addons/hr_timesheet_sheet/report/hr_timesheet_report_view.xml
@@ -58,7 +58,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
index 0a4aaf1dbf3..cff67ddca5e 100644
--- a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
+++ b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
@@ -76,7 +76,7 @@
-
+
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index 9b0f555fc80..21ca506bb83 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -920,7 +920,6 @@ class sale_order_line(osv.osv):
})
cr.execute('insert into sale_order_line_invoice_rel (order_line_id,invoice_id) values (%s,%s)', (line.id, inv_id))
self.write(cr, uid, [line.id], {'invoiced': True})
-
sales[line.order_id.id] = True
create_ids.append(inv_id)
# Trigger workflow events
@@ -935,11 +934,11 @@ class sale_order_line(osv.osv):
for line in self.browse(cr, uid, ids, context=context):
if line.invoiced:
raise osv.except_osv(_('Invalid action !'), _('You cannot cancel a sale order line that has already been invoiced !'))
- for pick in line.order_id.picking_ids:
- if pick.state != 'cancel':
+ for move_line in line.move_ids:
+ if move_line.state != 'cancel':
raise osv.except_osv(
_('Could not cancel sale order line!'),
- _('You must first cancel all pickings attached with sale order.'))
+ _('You must first cancel stock moves attached to this sale order line.'))
message = _('Sale order line') + " '" + line.name + "' "+_("is cancelled")
self.log(cr, uid, id, message)
return self.write(cr, uid, ids, {'state': 'cancel'})
diff --git a/addons/sale/test/invoice_on_shipped_qty.yml b/addons/sale/test/invoice_on_shipped_qty.yml
index 5a608aff9b8..95191569886 100644
--- a/addons/sale/test/invoice_on_shipped_qty.yml
+++ b/addons/sale/test/invoice_on_shipped_qty.yml
@@ -106,7 +106,7 @@
Creating a account invoice pay entry.
-
!record {model: account.invoice.pay, id: account_invoice_pay_tst1}:
- amount: 20000.0
+ amount: 40000.0
date: '2010-07-17'
journal_id: sale.account_journal_bankjournal0
name: tst
diff --git a/addons/sale/test/so_make_line_invoice.yml b/addons/sale/test/so_make_line_invoice.yml
index 9725a169b2c..6a5ea58f6da 100644
--- a/addons/sale/test/so_make_line_invoice.yml
+++ b/addons/sale/test/so_make_line_invoice.yml
@@ -134,7 +134,6 @@
I click on the "Create Invoice" button of sale order and verify that it gives a warning message
-
!python {model: sale.order}: |
- sale_order_obj = self.pool.get('sale.order')
import netsvc
wf_service = netsvc.LocalService("workflow")
try:
diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml
index ebd4e0af226..c5b4237a1d8 100644
--- a/addons/stock/report/picking.rml
+++ b/addons/stock/report/picking.rml
@@ -241,11 +241,11 @@
- [[ repeatIn([line for line in picking.move_lines if (line.state == 'assigned' )],'move_lines') or removeParentNode('section') ]]
+ [[ 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.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 '' ]]
@@ -268,16 +268,16 @@
- [[ (move_lines.state == 'done' or move_lines.state == 'confirmed') and removeParentNode('s') ]]
+ [[ (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') ]]
- [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') ]]
+ [[ repeatIn([line for line in picking.move_lines if (line.state != 'assigned' )],'move_lines') and removeParentNode('section') ]]
|
- [ [[ move_lines.product_id.default_code ]] ] [[ 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 '' ]]
| | | |