- Each quotation or sales order must be linked to a shop. The
- shop also defines the warehouse from which the products will be
- delivered for each particular sales.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
From c1e0521566c9c8b893b424f6b03d2ea65d845f55 Mon Sep 17 00:00:00 2001
From: Amit Dodiya
Date: Fri, 8 Mar 2013 18:32:27 +0530
Subject: [PATCH 17/69] [FIX]: account: when we create invoice from portal menu
got the error becuase in context we have passed list in type so code cannot
handle the list
bzr revid: ado@tinyerp.com-20130308130227-bvm08cab4gjkco71
---
addons/account/account_invoice.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py
index 17135ed1f76..269a2367c5f 100644
--- a/addons/account/account_invoice.py
+++ b/addons/account/account_invoice.py
@@ -53,9 +53,12 @@ class account_invoice(osv.osv):
company_id = context.get('company_id', user.company_id.id)
type2journal = {'out_invoice': 'sale', 'in_invoice': 'purchase', 'out_refund': 'sale_refund', 'in_refund': 'purchase_refund'}
journal_obj = self.pool.get('account.journal')
- res = journal_obj.search(cr, uid, [('type', '=', type2journal.get(type_inv, 'sale')),
- ('company_id', '=', company_id)],
- limit=1)
+ domain = [('company_id', '=', company_id)]
+ if isinstance(type_inv, list):
+ domain.append(('type', 'in', [type2journal.get(type) for type in type_inv if type2journal.get(type)]))
+ else:
+ domain.append(('type', '=', type2journal.get(type_inv, 'sale')))
+ res = journal_obj.search(cr, uid, domain, limit=1)
return res and res[0] or False
def _get_currency(self, cr, uid, context=None):
From f97c97d672b4acd8945f5cd0ae97cc4fe68948f6 Mon Sep 17 00:00:00 2001
From: "Pinakin Nayi (OpenERP)"
Date: Wed, 13 Mar 2013 12:30:29 +0530
Subject: [PATCH 18/69] [IMP]account_followup,hr_timesheet_sheet:in analysis
report create button is there but no need of it
bzr revid: pna@tinyerp.com-20130313070029-9ojiilbnl2tn7f3g
---
addons/account_followup/report/account_followup_report.xml | 2 +-
addons/hr_timesheet_sheet/report/timesheet_report_view.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/account_followup/report/account_followup_report.xml b/addons/account_followup/report/account_followup_report.xml
index 6fee6a77ac1..b7c38e89f5e 100644
--- a/addons/account_followup/report/account_followup_report.xml
+++ b/addons/account_followup/report/account_followup_report.xml
@@ -6,7 +6,7 @@
account_followup.stat.treeaccount_followup.stat
-
+
diff --git a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
index aee07fc23b6..ddc66260cf0 100644
--- a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
+++ b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
@@ -16,7 +16,7 @@
timesheet.report.treetimesheet.report
-
+
From 7daa6807eee4835ab892206d4dcf4b5a80e8061f Mon Sep 17 00:00:00 2001
From: "Somesh Khare (OpenERP)"
Date: Fri, 15 Mar 2013 14:35:17 +0530
Subject: [PATCH 19/69] [FIX]account_move_line:due to boolean value for
journal_id and period_id error occurred (Case: ref 589954)
bzr revid: skh@tinyerp.com-20130315090517-84g17n9ax2iijh0j
---
addons/account/account_move_line.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index a96ed889aae..06f597768b3 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -1070,12 +1070,12 @@ class account_move_line(osv.osv):
for line in self.browse(cr, uid, ids, context=context):
ctx = context.copy()
- if ('journal_id' not in ctx):
+ if not ctx.get('journal_id'):
if line.move_id:
ctx['journal_id'] = line.move_id.journal_id.id
else:
ctx['journal_id'] = line.journal_id.id
- if ('period_id' not in ctx):
+ if not ctx.get('period_id'):
if line.move_id:
ctx['period_id'] = line.move_id.period_id.id
else:
From 52efab6820cabad5c663c39242c7a77991820863 Mon Sep 17 00:00:00 2001
From: Nehal Panchal
Date: Tue, 19 Mar 2013 15:12:36 +0530
Subject: [PATCH 20/69] [FIX] warning : changed the inherited view of product
form of warning module
bzr revid: nep@tinyerp.com-20130319094236-calq1peyb6onmpuz
---
addons/warning/warning_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/warning/warning_view.xml b/addons/warning/warning_view.xml
index 1df38771e9c..04a35530bd2 100644
--- a/addons/warning/warning_view.xml
+++ b/addons/warning/warning_view.xml
@@ -41,7 +41,7 @@
product.warning.form.inheritproduct.product
-
+
From aa9e1d83aeeb85d93716b2daf945d4b45b7a0fa4 Mon Sep 17 00:00:00 2001
From: Rifakat
Date: Wed, 20 Mar 2013 17:22:38 +0530
Subject: [PATCH 21/69] [FIX] hr_timesheet_sheet: analytic items created from
timesheet line have amount as blank
bzr revid: rha@tinyerp.com-20130320115238-ae1w2p6ae0mytmy8
---
.../hr_timesheet_sheet/static/src/js/timesheet.js | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/addons/hr_timesheet_sheet/static/src/js/timesheet.js b/addons/hr_timesheet_sheet/static/src/js/timesheet.js
index fe7d0c82767..6bd1b26bd8a 100644
--- a/addons/hr_timesheet_sheet/static/src/js/timesheet.js
+++ b/addons/hr_timesheet_sheet/static/src/js/timesheet.js
@@ -175,8 +175,13 @@ openerp.hr_timesheet_sheet = function(instance) {
$(this).val(self.sum_box(account, day_count));
} else {
account.days[day_count].lines[0].unit_amount += num - self.sum_box(account, day_count);
- self.display_totals();
- self.sync();
+ var product = (account.days[day_count].lines[0].product_id instanceof Array) ? account.days[day_count].lines[0].product_id[0] : account.days[day_count].lines[0].product_id
+ var journal = (account.days[day_count].lines[0].journal_id instanceof Array) ? account.days[day_count].lines[0].journal_id[0] : account.days[day_count].lines[0].journal_id
+ new instance.web.Model("hr.analytic.timesheet").call("on_change_unit_amount", [[], product, account.days[day_count].lines[0].unit_amount, false, false, journal]).then(function(res) {
+ account.days[day_count].lines[0]['amount'] = res.value.amount || 0;
+ self.display_totals();
+ self.sync();
+ });
}
});
} else {
@@ -282,10 +287,10 @@ openerp.hr_timesheet_sheet = function(instance) {
generate_o2m_value: function() {
var self = this;
var ops = [];
-
+
_.each(self.accounts, function(account) {
var auth_keys = _.extend(_.clone(account.account_defaults), {
- name: true, unit_amount: true, date: true, account_id:true,
+ name: true, amount:true, unit_amount: true, date: true, account_id:true,
});
_.each(account.days, function(day) {
_.each(day.lines, function(line) {
From 5824011dc98718e39b980fade748d201112fb02d Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Mon, 25 Mar 2013 15:40:41 +0530
Subject: [PATCH 22/69] [IMP] Removed the HISTORY tab from the customers form
view including the following items 'Events', 'Registrations', 'Claims',
'Tasks' and 'Campaign'.
bzr revid: psa@tinyerp.com-20130325101041-c95snbhicnah4jgl
---
addons/crm_claim/crm_claim.py | 12 ++++++------
addons/crm_claim/crm_claim_view.xml | 5 ++---
addons/event/res_partner.py | 4 ++--
addons/event/res_partner_view.xml | 7 +++----
addons/marketing_campaign/res_partner.py | 6 +++---
addons/marketing_campaign/res_partner_view.xml | 4 ++--
addons/project/res_partner_view.xml | 4 ++--
7 files changed, 20 insertions(+), 22 deletions(-)
diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py
index 275d9edaab4..348dd8cea0c 100644
--- a/addons/crm_claim/crm_claim.py
+++ b/addons/crm_claim/crm_claim.py
@@ -227,11 +227,11 @@ class crm_claim(base_stage, osv.osv):
update_vals[key] = res.group(2).lower()
return super(crm_claim,self).message_update(cr, uid, ids, msg, update_vals=update_vals, context=context)
-
-class res_partner(osv.osv):
- _inherit = 'res.partner'
- _columns = {
- 'claims_ids': fields.one2many('crm.claim', 'partner_id', 'Claims'),
- }
+#
+#class res_partner(osv.osv):
+# _inherit = 'res.partner'
+# _columns = {
+# 'claims_ids': fields.one2many('crm.claim', 'partner_id', 'Claims'),
+# }
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index b1ab72e20f6..7bce61dc557 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -217,7 +217,7 @@
-
+
+
+
\ No newline at end of file
diff --git a/addons/marketing_campaign/res_partner.py b/addons/marketing_campaign/res_partner.py
index c151c2f4050..3db0cfa745b 100644
--- a/addons/marketing_campaign/res_partner.py
+++ b/addons/marketing_campaign/res_partner.py
@@ -25,9 +25,9 @@ class res_partner(osv.osv):
_inherit = 'res.partner'
_columns = {
- 'workitem_ids': fields.one2many('marketing.campaign.workitem',
- 'partner_id', 'Workitems',
- readonly=True),
+ # 'workitem_ids': fields.one2many('marketing.campaign.workitem',
+# 'partner_id', 'Workitems',
+# readonly=True),
}
def copy(self, cr, uid, id, default={}, context=None):
diff --git a/addons/marketing_campaign/res_partner_view.xml b/addons/marketing_campaign/res_partner_view.xml
index 63c65ccd97f..9524dddc17d 100644
--- a/addons/marketing_campaign/res_partner_view.xml
+++ b/addons/marketing_campaign/res_partner_view.xml
@@ -3,7 +3,7 @@
-
+
diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml
index d668e3c7092..e17695dec29 100644
--- a/addons/project/res_partner_view.xml
+++ b/addons/project/res_partner_view.xml
@@ -3,7 +3,7 @@
-
+
From fcedbce385b68f048c3633d13253e5c565293c34 Mon Sep 17 00:00:00 2001
From: "Ravish (Open ERP)"
Date: Tue, 26 Mar 2013 11:09:34 +0530
Subject: [PATCH 23/69] [FIX] Entering an analytic account not posible in
journal
bzr revid: rmu@tinyerp.com-20130326053934-qg2i8g0ezocogfsl
---
addons/account_analytic_plans/account_analytic_plans_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/account_analytic_plans/account_analytic_plans_view.xml b/addons/account_analytic_plans/account_analytic_plans_view.xml
index 3dcbcda6952..d0de19372dd 100644
--- a/addons/account_analytic_plans/account_analytic_plans_view.xml
+++ b/addons/account_analytic_plans/account_analytic_plans_view.xml
@@ -10,7 +10,7 @@
-
+
From b51362d554f8b8dc221f837e6bf4a60b2349dd41 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Tue, 26 Mar 2013 17:08:12 +0530
Subject: [PATCH 24/69] [IMP] Removed the History tab from customer form. >>>
Remove the related one2many:>> 1)Tasks 2)Events 3)Registrations
4)Campaign 5)Claims. >>> Add act_window buttons in the top right corner:>>
1)Tasks 2)Claims.
bzr revid: psa@tinyerp.com-20130326113812-xzqpcgwk2yhyike2
---
addons/crm_claim/crm_claim.py | 12 ++---
addons/crm_claim/crm_claim_view.xml | 49 +++++++++--------
addons/event/__init__.py | 1 -
addons/event/__openerp__.py | 1 -
addons/event/res_partner.py | 36 -------------
addons/event/res_partner_view.xml | 44 ---------------
addons/marketing_campaign/__init__.py | 1 -
addons/marketing_campaign/__openerp__.py | 1 -
addons/marketing_campaign/res_partner.py | 42 ---------------
.../marketing_campaign/res_partner_view.xml | 23 --------
addons/project/res_partner_view.xml | 53 ++++++++++++-------
11 files changed, 68 insertions(+), 195 deletions(-)
delete mode 100644 addons/event/res_partner.py
delete mode 100644 addons/event/res_partner_view.xml
delete mode 100644 addons/marketing_campaign/res_partner.py
delete mode 100644 addons/marketing_campaign/res_partner_view.xml
diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py
index 348dd8cea0c..275d9edaab4 100644
--- a/addons/crm_claim/crm_claim.py
+++ b/addons/crm_claim/crm_claim.py
@@ -227,11 +227,11 @@ class crm_claim(base_stage, osv.osv):
update_vals[key] = res.group(2).lower()
return super(crm_claim,self).message_update(cr, uid, ids, msg, update_vals=update_vals, context=context)
-#
-#class res_partner(osv.osv):
-# _inherit = 'res.partner'
-# _columns = {
-# 'claims_ids': fields.one2many('crm.claim', 'partner_id', 'Claims'),
-# }
+
+class res_partner(osv.osv):
+ _inherit = 'res.partner'
+ _columns = {
+ 'claims_ids': fields.one2many('crm.claim', 'partner_id', 'Claims'),
+ }
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index 7bce61dc557..42696e58825 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -217,33 +217,40 @@
-
+ res.partner.claim.info.formres.partner
- 20
+ 30
-
- False
-
-
-
-
-
-
-
-
-
+
+
- -->
-
+
diff --git a/addons/event/__init__.py b/addons/event/__init__.py
index ce8b64ed9a9..eb9690ec3bc 100644
--- a/addons/event/__init__.py
+++ b/addons/event/__init__.py
@@ -22,6 +22,5 @@
import event
import wizard
import report
-import res_partner
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/event/__openerp__.py b/addons/event/__openerp__.py
index 54b77c82f69..699bf8398d8 100644
--- a/addons/event/__openerp__.py
+++ b/addons/event/__openerp__.py
@@ -48,7 +48,6 @@ Key Features
'event_data.xml',
'report/report_event_registration_view.xml',
'board_association_view.xml',
- 'res_partner_view.xml',
'email_template.xml',
],
'demo': ['event_demo.xml'],
diff --git a/addons/event/res_partner.py b/addons/event/res_partner.py
deleted file mode 100644
index 892cd8ed0c2..00000000000
--- a/addons/event/res_partner.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 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 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 .
-#
-##############################################################################
-
-from openerp.osv import fields, osv
-
-class res_partner(osv.osv):
- _inherit = 'res.partner'
-
- _columns = {
- 'speaker': fields.boolean('Speaker', help="Check this box if this contact is a speaker."),
- # 'event_ids': fields.one2many('event.event','main_speaker_id', readonly=True),
- # 'event_registration_ids': fields.one2many('event.registration','partner_id', readonly=True),
- }
-
-
-res_partner()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/event/res_partner_view.xml b/addons/event/res_partner_view.xml
deleted file mode 100644
index f596df57ee5..00000000000
--- a/addons/event/res_partner_view.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
\ No newline at end of file
diff --git a/addons/marketing_campaign/__init__.py b/addons/marketing_campaign/__init__.py
index 23796d1baaf..d37d8604380 100644
--- a/addons/marketing_campaign/__init__.py
+++ b/addons/marketing_campaign/__init__.py
@@ -20,7 +20,6 @@
##############################################################################
import marketing_campaign
-import res_partner
import report
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/marketing_campaign/__openerp__.py b/addons/marketing_campaign/__openerp__.py
index a51347fd1bb..0a37f8aae0b 100644
--- a/addons/marketing_campaign/__openerp__.py
+++ b/addons/marketing_campaign/__openerp__.py
@@ -59,7 +59,6 @@ input segments, workflow.
'marketing_campaign_view.xml',
'marketing_campaign_data.xml',
'marketing_campaign_workflow.xml',
- 'res_partner_view.xml',
'report/campaign_analysis_view.xml',
'security/marketing_campaign_security.xml',
'security/ir.model.access.csv'
diff --git a/addons/marketing_campaign/res_partner.py b/addons/marketing_campaign/res_partner.py
deleted file mode 100644
index 3db0cfa745b..00000000000
--- a/addons/marketing_campaign/res_partner.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 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 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 .
-#
-##############################################################################
-
-from openerp.osv import fields,osv
-
-class res_partner(osv.osv):
- _inherit = 'res.partner'
-
- _columns = {
- # 'workitem_ids': fields.one2many('marketing.campaign.workitem',
-# 'partner_id', 'Workitems',
-# readonly=True),
- }
-
- def copy(self, cr, uid, id, default={}, context=None):
- default.update({
- 'workitem_ids': [],
- })
- return super(res_partner, self).copy(cr, uid, id, default=default, context=context)
-
-res_partner()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/marketing_campaign/res_partner_view.xml b/addons/marketing_campaign/res_partner_view.xml
deleted file mode 100644
index 9524dddc17d..00000000000
--- a/addons/marketing_campaign/res_partner_view.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml
index e17695dec29..633426d3060 100644
--- a/addons/project/res_partner_view.xml
+++ b/addons/project/res_partner_view.xml
@@ -2,30 +2,45 @@
+
+ res.partner.project.task.tree
+ project.task
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tasks
+ project.task
+ form
+ tree,form,calendar
+ {'search_default_partner_id': [active_id]}
+ [['partner_id','=', active_id]]
+
+
+
-
+
+
From 74388f30f68dc02972107fb4c17a46dbfec2a11d Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Tue, 26 Mar 2013 17:43:02 +0530
Subject: [PATCH 25/69] [IMP] Added default_partner_id in tasks.
bzr revid: psa@tinyerp.com-20130326121302-0kthhnpyo3xn7jca
---
addons/project/res_partner_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml
index 633426d3060..49f0c836ecb 100644
--- a/addons/project/res_partner_view.xml
+++ b/addons/project/res_partner_view.xml
@@ -22,7 +22,7 @@
project.taskformtree,form,calendar
- {'search_default_partner_id': [active_id]}
+ {'search_default_partner_id': [active_id], 'default_partner_id': active_id}[['partner_id','=', active_id]]
From b644629fe1896b32de292d761026a5aabbe2a971 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Tue, 26 Mar 2013 18:39:32 +0530
Subject: [PATCH 26/69] [IMP] Removed domain partner_id bcz not needed.
bzr revid: psa@tinyerp.com-20130326130932-gs0q1b5db849jm5o
---
addons/crm_claim/crm_claim_view.xml | 1 -
addons/project/res_partner_view.xml | 1 -
2 files changed, 2 deletions(-)
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index 42696e58825..1f985ee76d5 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -233,7 +233,6 @@
formtree,form,calendar{'search_default_partner_id': [active_id]}
- [['partner_id','=', active_id]]
diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml
index 49f0c836ecb..c927b315faa 100644
--- a/addons/project/res_partner_view.xml
+++ b/addons/project/res_partner_view.xml
@@ -23,7 +23,6 @@
formtree,form,calendar{'search_default_partner_id': [active_id], 'default_partner_id': active_id}
- [['partner_id','=', active_id]]
From 8ac6fc4098c9db795e7ac6278b0efa952bee9856 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Tue, 26 Mar 2013 19:01:10 +0530
Subject: [PATCH 27/69] [IMP] Added domain
bzr revid: psa@tinyerp.com-20130326133110-xr3s65kfo6r8lrb0
---
addons/project/res_partner_view.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml
index c927b315faa..49f0c836ecb 100644
--- a/addons/project/res_partner_view.xml
+++ b/addons/project/res_partner_view.xml
@@ -23,6 +23,7 @@
formtree,form,calendar{'search_default_partner_id': [active_id], 'default_partner_id': active_id}
+ [['partner_id','=', active_id]]
From b861514201b3d8c329e63c63880b9f4971e59310 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Wed, 3 Apr 2013 16:45:28 +0530
Subject: [PATCH 28/69] [IMP] Added access rights for the Claims and Task
buttons in Customers form view.
bzr revid: psa@tinyerp.com-20130403111528-to7chtzbydovdt3n
---
addons/crm_claim/crm_claim_view.xml | 3 ++-
addons/project/res_partner_view.xml | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index 1f985ee76d5..d6502dbc0fa 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -246,7 +246,8 @@
+ string="Claims"
+ groups="base.group_sale_salesman" />
diff --git a/addons/project/res_partner_view.xml b/addons/project/res_partner_view.xml
index 49f0c836ecb..d89e874075c 100644
--- a/addons/project/res_partner_view.xml
+++ b/addons/project/res_partner_view.xml
@@ -37,7 +37,8 @@
+ string="Tasks"
+ groups="project.group_project_user" />
From 5a4dcc4819bbc0ec66663ab7a8865bf27040fe5a Mon Sep 17 00:00:00 2001
From: "Ravish (Open ERP)"
Date: Fri, 5 Apr 2013 10:05:10 +0530
Subject: [PATCH 29/69] analytic journal must follow analytical group
bzr revid: rmu@tinyerp.com-20130405043510-cxannthx2gkm35a6
---
addons/account/project/project_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index aa567d2fc79..903316ea347 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -361,7 +361,7 @@
-
+
From 4bb708e79e4cdd8b6c06fbdf670b8204ac050093 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Tue, 9 Apr 2013 11:25:07 +0530
Subject: [PATCH 30/69] [IMP] Added action for the *Issues* button in Customers
form view. On clicking the *Claims* button in Customer form view it is
showing the filter like 'Partner' so made it as 'Customer' Added field
Partner_id in search view of Project.
bzr revid: psa@tinyerp.com-20130409055507-7v15i2hppum0exoz
---
addons/crm_claim/crm_claim_view.xml | 2 +-
addons/project/project_view.xml | 1 +
addons/project_issue/project_issue_view.xml | 21 +++++++++++++++++++--
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index ebd832f484e..28aa55ac2e2 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -201,7 +201,7 @@
-
+
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index a016c46e0e0..fbc06bb0416 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -32,6 +32,7 @@
+
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml
index f888ff9da77..cfbdadbe349 100644
--- a/addons/project_issue/project_issue_view.xml
+++ b/addons/project_issue/project_issue_view.xml
@@ -154,7 +154,7 @@
-
+
@@ -316,6 +316,23 @@
+
+ project.issue
+ form
+ Issues
+ kanban,tree,form,calendar,graph
+ {'search_default_partner_id': [active_id], 'default_partner_id': active_id}
+
+
+ Click to report a new issue.
+
+ The OpenERP issues tacker allows you to efficiently manage things
+ like internal requests, software development bugs, customer
+ complaints, project troubles, material breakdowns, etc.
+
- The OpenERP issues tacker allows you to efficiently manage things
- like internal requests, software development bugs, customer
- complaints, project troubles, material breakdowns, etc.
-
From 12a8feb93983f94bf29598e13408ce5611813dab Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Thu, 16 May 2013 18:13:37 +0530
Subject: [PATCH 41/69] [IMP] Added action for the Customers form > Claims
button to inhibit the double filter Partner and Responsible and shifted the
code in crm_view.
bzr revid: psa@tinyerp.com-20130516124337-7l6kxh92l3wb4yt7
---
addons/crm_claim/crm_claim_menu.xml | 16 ----------------
addons/crm_claim/crm_claim_view.xml | 28 ++++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/addons/crm_claim/crm_claim_menu.xml b/addons/crm_claim/crm_claim_menu.xml
index 44566c16cb5..b3b821c777d 100644
--- a/addons/crm_claim/crm_claim_menu.xml
+++ b/addons/crm_claim/crm_claim_menu.xml
@@ -46,22 +46,6 @@
-
-
- res.partner.claim.info.form
- res.partner
-
- 30
-
-
-
-
-
-
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index fe8db7ab53a..238394d8c57 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -217,5 +217,33 @@
+
+
+ res.partner.claim.info.form
+ res.partner
+
+ 30
+
+
+
+
+
+
+
+
+ Claims
+ crm.claim
+ form
+ tree,calendar,form
+
+ {"stage_type":'claim'}
+
+ Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+
+
From 4009942cf6128e662c9d2c589f1519121082a908 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Thu, 16 May 2013 18:32:58 +0530
Subject: [PATCH 42/69] Improved.
bzr revid: psa@tinyerp.com-20130516130258-ylme998oo1us9nk8
---
addons/crm_claim/crm_claim_view.xml | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index 238394d8c57..7ae5435c6b0 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -217,6 +217,18 @@
+
+
+ Claims
+ crm.claim
+ form
+ tree,calendar,form
+
+ {"stage_type":'claim'}
+
+ Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+
+
res.partner.claim.info.form
@@ -233,17 +245,6 @@
-
-
- Claims
- crm.claim
- form
- tree,calendar,form
-
- {"stage_type":'claim'}
-
- Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
-
From 1c7e3fa732f441dd730d8fa7bdc185aba5ab08d4 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Fri, 24 May 2013 10:27:41 +0530
Subject: [PATCH 43/69] [IMP] Improved code as in trunk.
bzr revid: psa@tinyerp.com-20130524045741-3hx0kozz9eobv69b
---
addons/base_calendar/crm_meeting.py | 28 -----------------------
addons/base_calendar/crm_meeting_view.xml | 18 ++-------------
addons/crm/res_partner_view.xml | 4 ++++
3 files changed, 6 insertions(+), 44 deletions(-)
diff --git a/addons/base_calendar/crm_meeting.py b/addons/base_calendar/crm_meeting.py
index 0d4b5b06816..aa476002abc 100644
--- a/addons/base_calendar/crm_meeting.py
+++ b/addons/base_calendar/crm_meeting.py
@@ -44,32 +44,6 @@ class crm_meeting(base_state, osv.Model):
_description = "Meeting"
_order = "id desc"
_inherit = ["calendar.event", "mail.thread", "ir.needaction_mixin"]
-
- def _get_attendee(self, cursor, user, ids, name, arg, context=None):
- res = {}
- return res
-
- def _attendees_search(self, cursor, user, obj, name, args, context=None):
- if not len(args):
- return []
- clause = ''
- res = False
- for field, operator, value in args:
- if operator == '=':
- if value:
- clause = 'rel.partner_id ' + operator + str(value)
- elif operator == 'ilike':
- if value:
- clause = 'p.id = rel.partner_id and p.name ' + operator + "'%" + str(value) +"%'"
- if clause:
- cursor.execute('SELECT rel.meeting_id, p.name ' \
- 'FROM crm_meeting_partner_rel AS rel, res_partner AS p ' \
- 'WHERE ' + clause)
- res = cursor.fetchall()
- if not res:
- return [('id', '=', 0)]
- return [('id', 'in', [x[0] for x in res])]
-
_columns = {
# base_state required fields
'create_date': fields.datetime('Creation Date', readonly=True),
@@ -78,8 +52,6 @@ class crm_meeting(base_state, osv.Model):
'date_closed': fields.datetime('Closed', readonly=True),
'partner_ids': fields.many2many('res.partner', 'crm_meeting_partner_rel', 'meeting_id', 'partner_id',
string='Attendees', states={'done': [('readonly', True)]}),
- 'partner_id': fields.function(_get_attendee, string='Attendees',
- fnct_search=_attendees_search, type='many2one', relation='res.partner'),
'state': fields.selection(
[('draft', 'Unconfirmed'), ('open', 'Confirmed')],
string='Status', size=16, readonly=True, track_visibility='onchange'),
diff --git a/addons/base_calendar/crm_meeting_view.xml b/addons/base_calendar/crm_meeting_view.xml
index 98db03da62d..d9b659b91fa 100644
--- a/addons/base_calendar/crm_meeting_view.xml
+++ b/addons/base_calendar/crm_meeting_view.xml
@@ -234,7 +234,7 @@
-
+
@@ -291,20 +291,6 @@
-
-
- res.partner.view.buttons.meeting
- res.partner
-
-
-
-
-
-
-
-
+
diff --git a/addons/crm/res_partner_view.xml b/addons/crm/res_partner_view.xml
index 3cc4162f36e..dd6c50dbaba 100644
--- a/addons/crm/res_partner_view.xml
+++ b/addons/crm/res_partner_view.xml
@@ -99,6 +99,10 @@
+
From 58ee646b46bb6bfc0ac2c2544875cd0e8db150be Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Fri, 24 May 2013 11:28:55 +0530
Subject: [PATCH 44/69] [IMP] Improved the string from Attendees => Invited
People.
bzr revid: psa@tinyerp.com-20130524055855-p9p7dhm655opo4t6
---
addons/base_calendar/crm_meeting.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/base_calendar/crm_meeting.py b/addons/base_calendar/crm_meeting.py
index aa476002abc..1051a7a894c 100644
--- a/addons/base_calendar/crm_meeting.py
+++ b/addons/base_calendar/crm_meeting.py
@@ -60,7 +60,7 @@ class crm_meeting(base_state, osv.Model):
'categ_ids': fields.many2many('crm.meeting.type', 'meeting_category_rel',
'event_id', 'type_id', 'Tags'),
'attendee_ids': fields.many2many('calendar.attendee', 'meeting_attendee_rel',\
- 'event_id', 'attendee_id', 'Attendees', states={'done': [('readonly', True)]}),
+ 'event_id', 'attendee_id', 'Invited People', states={'done': [('readonly', True)]}),
}
_defaults = {
'state': 'open',
From dd5fc2479cd21bcf5592d84498e00ead719ec561 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Mon, 27 May 2013 12:12:47 +0530
Subject: [PATCH 45/69] [IMP] Improved the action name and added a new create
arrow in actions.
bzr revid: psa@tinyerp.com-20130527064247-sqaf8jpsktc7vevk
---
addons/crm_claim/crm_claim_menu.xml | 8 +++++++-
addons/crm_claim/crm_claim_view.xml | 14 ++++++++++----
2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/addons/crm_claim/crm_claim_menu.xml b/addons/crm_claim/crm_claim_menu.xml
index 5abfcabbc71..8ba3aab8b51 100644
--- a/addons/crm_claim/crm_claim_menu.xml
+++ b/addons/crm_claim/crm_claim_menu.xml
@@ -15,7 +15,13 @@
{"search_default_user_id":uid, "stage_type":'claim'}
- Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+
+
+ Click to create a new claim.
+
+ Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+
+
diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml
index 7ae5435c6b0..e9bc2b6cfb9 100644
--- a/addons/crm_claim/crm_claim_view.xml
+++ b/addons/crm_claim/crm_claim_view.xml
@@ -218,7 +218,7 @@
-
+ Claimscrm.claimform
@@ -226,11 +226,17 @@
{"stage_type":'claim'}
- Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+
+
+ Click to create a new claim.
+
+ Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+
- Click to create a new claim.
+ Click here to create a new claim.
Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
- Click to create a new claim.
+ Click here to create a new claim.
Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.
+ The OpenERP issues tacker allows you to efficiantly manage things
+ like internal requests, software development bugs, customer
+ complaints, project troubles, material breakdowns, etc.
+
+
+
+
res.partner.issues.button.viewres.partner
-
+
+ name="%(act_res_partner_2_project_issue)d"
+ groups="project.group_project_user"/>
From cef85ce5a861a8334471709ed5374771bd16d678 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Thu, 6 Jun 2013 15:42:25 +0530
Subject: [PATCH 51/69] [IMP] updated filter for partner_id when the customers
is searched.
bzr revid: psa@tinyerp.com-20130606101225-85ssqpgpb8x1l1yk
---
addons/crm/crm_lead_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index 6ddd06c1c90..72e83f5854c 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -331,7 +331,7 @@
-
+
From 5418e395731507f1ac2bd06642aeb05d4c481fea Mon Sep 17 00:00:00 2001
From: "sgo@tinyerp.com" <>
Date: Fri, 7 Jun 2013 15:31:29 +0530
Subject: [PATCH 52/69] [IMP]make warehouse required true and improve warning
when there is no warehouse define for current company
bzr revid: sgo@tinyerp.com-20130607100129-vyvxbhbckakc7kr6
---
addons/sale_stock/sale_stock.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py
index 9c71382af17..8fcf6fc47a7 100644
--- a/addons/sale_stock/sale_stock.py
+++ b/addons/sale_stock/sale_stock.py
@@ -70,7 +70,7 @@ class sale_order(osv.osv):
company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
warehouse_ids = self.pool.get('stock.warehouse').search(cr, uid, [('company_id','=',company_id)], context=context)
if not warehouse_ids:
- raise osv.except_osv(_('Error!'), _('There is no default location for the current user\'s company!'))
+ raise osv.except_osv(_('Error!'), _('There is no warehouse defined for the current company!'))
return warehouse_ids[0]
# This is False
@@ -140,7 +140,7 @@ class sale_order(osv.osv):
'picking_ids': fields.one2many('stock.picking.out', 'sale_id', 'Related Picking', readonly=True, help="This is a list of delivery orders that has been generated for this sales order."),
'shipped': fields.boolean('Delivered', readonly=True, help="It indicates that the sales order has been delivered. This field is updated only after the scheduler(s) have been launched."),
'picked_rate': fields.function(_picked_rate, string='Picked', type='float'),
- 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse'),
+ 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse',required=True),
'invoice_quantity': fields.selection([('order', 'Ordered Quantities'), ('procurement', 'Shipped Quantities')], 'Invoice on',
help="The sales order will automatically create the invoice proposition (draft invoice).\
You have to choose if you want your invoice based on ordered ", required=True, readonly=True, states={'draft': [('readonly', False)]}),
From 8f5433c9901c602591b46b6d7aaebc1bcc9a1d04 Mon Sep 17 00:00:00 2001
From: "sgo@tinyerp.com" <>
Date: Fri, 7 Jun 2013 17:21:31 +0530
Subject: [PATCH 53/69] [IMP]add group by warehouse in sales analysis
bzr revid: sgo@tinyerp.com-20130607115131-m72rx8ulr54sur9a
---
addons/sale_stock/report/sale_report.py | 3 +++
addons/sale_stock/report/sale_report_view.xml | 11 +++++++++++
2 files changed, 14 insertions(+)
diff --git a/addons/sale_stock/report/sale_report.py b/addons/sale_stock/report/sale_report.py
index c1f79e323b7..0feb3ee2392 100644
--- a/addons/sale_stock/report/sale_report.py
+++ b/addons/sale_stock/report/sale_report.py
@@ -27,6 +27,7 @@ class sale_report(osv.osv):
_columns = {
'shipped': fields.boolean('Shipped', readonly=True),
'shipped_qty_1': fields.integer('Shipped', readonly=True),
+ 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse',readonly=True),
'state': fields.selection([
('draft', 'Quotation'),
('waiting_date', 'Waiting Schedule'),
@@ -58,6 +59,7 @@ class sale_report(osv.osv):
s.partner_id as partner_id,
s.user_id as user_id,
s.company_id as company_id,
+ s.warehouse_id as warehouse_id,
extract(epoch from avg(date_trunc('day',s.date_confirm)-date_trunc('day',s.create_date)))/(24*60*60)::decimal(16,2) as delay,
s.state,
t.categ_id as categ_id,
@@ -82,6 +84,7 @@ class sale_report(osv.osv):
s.date_confirm,
s.partner_id,
s.user_id,
+ s.warehouse_id,
s.company_id,
s.state,
s.shipped,
diff --git a/addons/sale_stock/report/sale_report_view.xml b/addons/sale_stock/report/sale_report_view.xml
index ae8b12ca168..6642bffcede 100644
--- a/addons/sale_stock/report/sale_report_view.xml
+++ b/addons/sale_stock/report/sale_report_view.xml
@@ -7,9 +7,20 @@
+
+
+ sale.report.search.sale.stock
+ sale.report
+
+
+
+
+
+
+
\ No newline at end of file
From dbf432ee258c1e737e2b41ff5938e6d12aafe7a2 Mon Sep 17 00:00:00 2001
From: Paramjit Singh Sahota
Date: Mon, 10 Jun 2013 18:49:08 +0530
Subject: [PATCH 54/69] [REM] Removed the filter_domain which is added by
mistake.
bzr revid: psa@tinyerp.com-20130610131908-8r4ufv7vjnqppdw6
---
addons/crm/crm_lead_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index 72e83f5854c..6ddd06c1c90 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -331,7 +331,7 @@
-
+
From c99ac69e618dc3c3a80d4c9b30173fa6f2b5599b Mon Sep 17 00:00:00 2001
From: "sgo@tinyerp.com" <>
Date: Tue, 11 Jun 2013 14:08:59 +0530
Subject: [PATCH 55/69] [IMP]improve message string
bzr revid: sgo@tinyerp.com-20130611083859-tamafus1vdohpjyg
---
addons/sale_stock/sale_stock.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py
index 8fcf6fc47a7..af3555d07f8 100644
--- a/addons/sale_stock/sale_stock.py
+++ b/addons/sale_stock/sale_stock.py
@@ -70,7 +70,7 @@ class sale_order(osv.osv):
company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
warehouse_ids = self.pool.get('stock.warehouse').search(cr, uid, [('company_id','=',company_id)], context=context)
if not warehouse_ids:
- raise osv.except_osv(_('Error!'), _('There is no warehouse defined for the current company!'))
+ raise osv.except_osv(_('Error!'), _('There is no warehouse defined for current company.'))
return warehouse_ids[0]
# This is False
From bbbb085e5ddc3910f299fe91d302c4e825f21252 Mon Sep 17 00:00:00 2001
From: Launchpad Translations on behalf of openerp <>
Date: Thu, 13 Jun 2013 06:09:19 +0000
Subject: [PATCH 56/69] Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130613060919-s8otvph34f6m5k5m
---
addons/account/i18n/nl.po | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/addons/account/i18n/nl.po b/addons/account/i18n/nl.po
index cbdf2ae761d..f2f292f6314 100644
--- a/addons/account/i18n/nl.po
+++ b/addons/account/i18n/nl.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
-"PO-Revision-Date: 2013-06-08 11:14+0000\n"
+"PO-Revision-Date: 2013-06-12 13:19+0000\n"
"Last-Translator: Erwin van der Ploeg (Endian Solutions) \n"
"Language-Team: Dutch \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-06-09 06:16+0000\n"
+"X-Launchpad-Export-Date: 2013-06-13 06:09+0000\n"
"X-Generator: Launchpad (build 16667)\n"
#. module: account
@@ -970,7 +970,7 @@ msgstr "Het relatiekenmerk of deze factuur"
#. module: account
#: view:account.invoice.report:0
msgid "Supplier Invoices And Refunds"
-msgstr "Leveranciers facturen en teruggaves"
+msgstr "Leverancier facturen en credit facturen"
#. module: account
#: code:addons/account/account_move_line.py:851
From 2652bd586d4ff38c0c1a0c2fe82bc25900e50ae7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?=
Date: Thu, 13 Jun 2013 10:20:29 +0200
Subject: [PATCH 57/69] [FIX] mail: message_subscribe_users: refactoring of the
algorithm to achieve better computation time. Previous implementation did a
search on mail.followers with subtype_ids=False, leading to a very bad
computation time. This search is now avoided.
bzr revid: tde@openerp.com-20130613082029-lmd63s3mqwxasy4j
---
addons/mail/mail_thread.py | 53 +++++++++++++++++++++++---------------
1 file changed, 32 insertions(+), 21 deletions(-)
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py
index 9ebd67f0eb5..51eed7c7f8f 100644
--- a/addons/mail/mail_thread.py
+++ b/addons/mail/mail_thread.py
@@ -1160,7 +1160,10 @@ class mail_thread(osv.AbstractModel):
def message_subscribe(self, cr, uid, ids, partner_ids, subtype_ids=None, context=None):
""" Add partners to the records followers. """
- user_pid = self.pool.get('res.users').read(cr, uid, uid, ['partner_id'], context=context)['partner_id'][0]
+ mail_followers_obj = self.pool.get('mail.followers')
+ subtype_obj = self.pool.get('mail.message.subtype')
+
+ user_pid = self.pool.get('res.users').browse(cr, uid, uid, context=context).partner_id.id
if set(partner_ids) == set([user_pid]):
try:
self.check_access_rights(cr, uid, 'read')
@@ -1169,27 +1172,35 @@ class mail_thread(osv.AbstractModel):
else:
self.check_access_rights(cr, uid, 'write')
- # subscribe partners
- self.write(cr, SUPERUSER_ID, ids, {'message_follower_ids': [(4, pid) for pid in partner_ids]}, context=context)
+ for record in self.browse(cr, SUPERUSER_ID, ids, context=context):
+ existing_pids = set([f.id for f in record.message_follower_ids
+ if f.id in partner_ids])
+ new_pids = set(partner_ids) - existing_pids
- # subtype specified: update the subscriptions
- fol_obj = self.pool.get('mail.followers')
- if subtype_ids is not None:
- fol_ids = fol_obj.search(cr, SUPERUSER_ID, [('res_model', '=', self._name), ('res_id', 'in', ids), ('partner_id', 'in', partner_ids)], context=context)
- fol_obj.write(cr, SUPERUSER_ID, fol_ids, {'subtype_ids': [(6, 0, subtype_ids)]}, context=context)
- # no subtypes: default ones for new subscription, do not update existing subscriptions
- else:
- # search new subscriptions: subtype_ids is False
- fol_ids = fol_obj.search(cr, SUPERUSER_ID, [
- ('res_model', '=', self._name),
- ('res_id', 'in', ids),
- ('partner_id', 'in', partner_ids),
- ('subtype_ids', '=', False)
- ], context=context)
- if fol_ids:
- subtype_obj = self.pool.get('mail.message.subtype')
- subtype_ids = subtype_obj.search(cr, uid, [('default', '=', True), '|', ('res_model', '=', self._name), ('res_model', '=', False)], context=context)
- fol_obj.write(cr, SUPERUSER_ID, fol_ids, {'subtype_ids': [(6, 0, subtype_ids)]}, context=context)
+ # subtype_ids specified: update already subscribed partners
+ if subtype_ids and existing_pids:
+ fol_ids = mail_followers_obj.search(cr, SUPERUSER_ID, [
+ ('res_model', '=', self._name),
+ ('res_id', 'in', ids),
+ ('partner_id', 'in', list(existing_pids)),
+ ], context=context)
+ mail_followers_obj.write(cr, SUPERUSER_ID, fol_ids, {'subtype_ids': [(6, 0, subtype_ids)]}, context=context)
+ # subtype_ids not specified: do not update already subscribed partner, fetch default subtypes for new partners
+ else:
+ subtype_ids = subtype_obj.search(cr, uid, [
+ ('default', '=', True),
+ '|',
+ ('res_model', '=', self._name),
+ ('res_model', '=', False)
+ ], context=context)
+ # subscribe new followers
+ for new_pid in new_pids:
+ mail_followers_obj.create(cr, SUPERUSER_ID, {
+ 'res_model': self._name,
+ 'res_id': record.id,
+ 'partner_id': new_pid,
+ 'subtype_ids': [(6, 0, subtype_ids)],
+ }, context=context)
return True
From d38a1c54fdea6417efa1d86c61ee91a638a765bf Mon Sep 17 00:00:00 2001
From: "Dhruti Shastri (OpenERP)"
Date: Thu, 13 Jun 2013 14:14:41 +0530
Subject: [PATCH 58/69] [sale_stock] : Auto complete on Quotations with
special product configuration(Case:593519)
bzr revid: dhs@tinyerp.com-20130613084441-gi9xkf2d2sl68a45
---
addons/sale_stock/sale_stock.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py
index d7208b63859..e8f3bf95668 100644
--- a/addons/sale_stock/sale_stock.py
+++ b/addons/sale_stock/sale_stock.py
@@ -593,9 +593,6 @@ class sale_order_line(osv.osv):
return res
#update of result obtained in super function
- res_packing = self.product_packaging_change(cr, uid, ids, pricelist, product, qty, uom, partner_id, packaging, context=context)
- res['value'].update(res_packing.get('value', {}))
- warning_msgs = res_packing.get('warning') and res_packing['warning']['message'] or ''
product_obj = product_obj.browse(cr, uid, product, context=context)
res['value']['delay'] = (product_obj.sale_delay or 0.0)
res['value']['type'] = product_obj.procure_method
@@ -608,6 +605,10 @@ class sale_order_line(osv.osv):
uom = False
if not uom2:
uom2 = product_obj.uom_id
+ # Calling product_packaging_change function after updating updating UoM
+ res_packing = self.product_packaging_change(cr, uid, ids, pricelist, product, qty, uom, partner_id, packaging, context=context)
+ res['value'].update(res_packing.get('value', {}))
+ warning_msgs = res_packing.get('warning') and res_packing['warning']['message'] or ''
compare_qty = float_compare(product_obj.virtual_available * uom2.factor, qty * product_obj.uom_id.factor, precision_rounding=product_obj.uom_id.rounding)
if (product_obj.type=='product') and int(compare_qty) == -1 \
and (product_obj.procure_method=='make_to_stock'):
From 41311b9f33cb6e904a95be8b1d72c499b3fa1743 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?=
Date: Thu, 13 Jun 2013 11:52:28 +0200
Subject: [PATCH 59/69] [FIX] mail: fixed id of record in a loop (record.id,
not all ids).
bzr revid: tde@openerp.com-20130613095228-b4r8kca7hkjd6ppa
---
addons/mail/mail_thread.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py
index 51eed7c7f8f..349122e5942 100644
--- a/addons/mail/mail_thread.py
+++ b/addons/mail/mail_thread.py
@@ -1181,7 +1181,7 @@ class mail_thread(osv.AbstractModel):
if subtype_ids and existing_pids:
fol_ids = mail_followers_obj.search(cr, SUPERUSER_ID, [
('res_model', '=', self._name),
- ('res_id', 'in', ids),
+ ('res_id', '=', record.id),
('partner_id', 'in', list(existing_pids)),
], context=context)
mail_followers_obj.write(cr, SUPERUSER_ID, fol_ids, {'subtype_ids': [(6, 0, subtype_ids)]}, context=context)
From cf4b1f79505f9859227000b8ac6f6bc639e9c613 Mon Sep 17 00:00:00 2001
From: Martin Trigaux
Date: Thu, 13 Jun 2013 13:33:05 +0200
Subject: [PATCH 60/69] [MERGE] [FIX] account: better check of context when
writing account.move.line
bzr revid: mat@openerp.com-20130613113305-j7j6rgj1lzkzdf9q
---
addons/account/account_move_line.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index 92eb83ed38b..db031a745ed 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -1067,12 +1067,12 @@ class account_move_line(osv.osv):
for line in self.browse(cr, uid, ids, context=context):
ctx = context.copy()
- if ('journal_id' not in ctx):
+ if not ctx.get('journal_id'):
if line.move_id:
ctx['journal_id'] = line.move_id.journal_id.id
else:
ctx['journal_id'] = line.journal_id.id
- if ('period_id' not in ctx):
+ if not ctx.get('period_id'):
if line.move_id:
ctx['period_id'] = line.move_id.period_id.id
else:
From 448e19e550bae03a0c05e42228cdf5c4fbc6dddc Mon Sep 17 00:00:00 2001
From: Christophe Simonis
Date: Thu, 13 Jun 2013 16:39:31 +0200
Subject: [PATCH 61/69] [FIX] email_template: correct creation/deletion of
context action
bzr revid: chs@openerp.com-20130613143931-tpnx0diyvkovr2xe
---
addons/email_template/email_template.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py
index c7efb9582fe..b4bac5e852c 100644
--- a/addons/email_template/email_template.py
+++ b/addons/email_template/email_template.py
@@ -26,7 +26,6 @@ import logging
import openerp
from openerp import SUPERUSER_ID
from openerp.osv import osv, fields
-from openerp.osv import fields
from openerp import tools
from openerp.tools.translate import _
from urllib import urlencode, quote as quote
@@ -192,7 +191,6 @@ class email_template(osv.osv):
}
def create_action(self, cr, uid, ids, context=None):
- vals = {}
action_obj = self.pool.get('ir.actions.act_window')
data_obj = self.pool.get('ir.model.data')
for template in self.browse(cr, uid, ids, context=context):
@@ -200,7 +198,7 @@ class email_template(osv.osv):
model_data_id = data_obj._get_id(cr, uid, 'mail', 'email_compose_message_wizard_form')
res_id = data_obj.browse(cr, uid, model_data_id, context=context).res_id
button_name = _('Send Mail (%s)') % template.name
- vals['ref_ir_act_window'] = action_obj.create(cr, SUPERUSER_ID, {
+ act_id = action_obj.create(cr, SUPERUSER_ID, {
'name': button_name,
'type': 'ir.actions.act_window',
'res_model': 'mail.compose.message',
@@ -212,27 +210,29 @@ class email_template(osv.osv):
'target': 'new',
'auto_refresh':1
}, context)
- vals['ref_ir_value'] = self.pool.get('ir.values').create(cr, SUPERUSER_ID, {
+ ir_values_id = self.pool.get('ir.values').create(cr, SUPERUSER_ID, {
'name': button_name,
'model': src_obj,
'key2': 'client_action_multi',
- 'value': "ir.actions.act_window," + str(vals['ref_ir_act_window']),
+ 'value': "ir.actions.act_window,%s" % act_id,
'object': True,
}, context)
- self.write(cr, uid, ids, {
- 'ref_ir_act_window': vals.get('ref_ir_act_window',False),
- 'ref_ir_value': vals.get('ref_ir_value',False),
- }, context)
+
+ template.write({
+ 'ref_ir_act_window': act_id,
+ 'ref_ir_value': ir_values_id,
+ })
+
return True
def unlink_action(self, cr, uid, ids, context=None):
for template in self.browse(cr, uid, ids, context=context):
try:
if template.ref_ir_act_window:
- self.pool.get('ir.actions.act_window').unlink(cr, uid, template.ref_ir_act_window.id, context)
+ self.pool.get('ir.actions.act_window').unlink(cr, SUPERUSER_ID, template.ref_ir_act_window.id, context)
if template.ref_ir_value:
ir_values_obj = self.pool.get('ir.values')
- ir_values_obj.unlink(cr, uid, template.ref_ir_value.id, context)
+ ir_values_obj.unlink(cr, SUPERUSER_ID, template.ref_ir_value.id, context)
except Exception:
raise osv.except_osv(_("Warning"), _("Deletion of the action record failed."))
return True
From ba46fc11168da37fd955aaeaee6ab7532d78ec9e Mon Sep 17 00:00:00 2001
From: Martin Trigaux
Date: Thu, 13 Jun 2013 18:08:12 +0200
Subject: [PATCH 62/69] [IMP] remove typo
bzr revid: mat@openerp.com-20130613160812-6nrz02oejrdl13tb
---
addons/sale_stock/sale_stock.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py
index e8f3bf95668..1cf6f87f4b0 100644
--- a/addons/sale_stock/sale_stock.py
+++ b/addons/sale_stock/sale_stock.py
@@ -605,7 +605,8 @@ class sale_order_line(osv.osv):
uom = False
if not uom2:
uom2 = product_obj.uom_id
- # Calling product_packaging_change function after updating updating UoM
+
+ # Calling product_packaging_change function after updating UoM
res_packing = self.product_packaging_change(cr, uid, ids, pricelist, product, qty, uom, partner_id, packaging, context=context)
res['value'].update(res_packing.get('value', {}))
warning_msgs = res_packing.get('warning') and res_packing['warning']['message'] or ''
From 1ae74e8907ea90d383753f0f9ee2c8256a783d3c Mon Sep 17 00:00:00 2001
From: Christophe Simonis
Date: Fri, 14 Jun 2013 11:44:39 +0200
Subject: [PATCH 63/69] [FIX] mail: default value for email_reply_to variable
(merge messup)
bzr revid: chs@openerp.com-20130614094439-iqji8aimvaf4x5t6
---
addons/mail/mail_mail.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/addons/mail/mail_mail.py b/addons/mail/mail_mail.py
index 24fa7e9a1d1..5263fb127b1 100644
--- a/addons/mail/mail_mail.py
+++ b/addons/mail/mail_mail.py
@@ -90,6 +90,7 @@ class mail_mail(osv.Model):
if values.get('reply_to'):
return values.get('reply_to')
format_name = True # whether to use a 'Followers of Pigs
Date: Fri, 14 Jun 2013 12:30:05 +0200
Subject: [PATCH 64/69] [FIX] mail: reply_to is set to email_from as a last
resort
bzr revid: chs@openerp.com-20130614103005-9x5r0b22b25jll1g
---
addons/mail/mail_mail.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/addons/mail/mail_mail.py b/addons/mail/mail_mail.py
index 5263fb127b1..d9e00353d49 100644
--- a/addons/mail/mail_mail.py
+++ b/addons/mail/mail_mail.py
@@ -118,6 +118,10 @@ class mail_mail(osv.Model):
if catchall_domain and catchall_alias:
email_reply_to = '%s@%s' % (catchall_alias, catchall_domain)
+ # still no reply_to -> reply_to will be the email_from
+ if not email_reply_to and email_from:
+ email_reply_to = email_from
+
# format 'Document name '
if email_reply_to and model and res_id and format_name:
emails = tools.email_split(email_reply_to)
From 484148e8e4040830a4eebf0949100c1cc2a4a011 Mon Sep 17 00:00:00 2001
From: Christophe Simonis
Date: Fri, 14 Jun 2013 13:42:58 +0200
Subject: [PATCH 65/69] [FIX] mail: compare splitted email in tests
bzr revid: chs@openerp.com-20130614114258-iar6h3ctaaqrb4on
---
addons/mail/tests/test_mail_features.py | 4 ++--
addons/mail/tests/test_mail_gateway.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/addons/mail/tests/test_mail_features.py b/addons/mail/tests/test_mail_features.py
index 46f4555349d..ca9c156c8cb 100644
--- a/addons/mail/tests/test_mail_features.py
+++ b/addons/mail/tests/test_mail_features.py
@@ -22,7 +22,7 @@
from openerp.addons.mail.mail_mail import mail_mail
from openerp.addons.mail.mail_thread import mail_thread
from openerp.addons.mail.tests.test_mail_base import TestMailBase
-from openerp.tools import mute_logger
+from openerp.tools import mute_logger, email_split
from openerp.tools.mail import html_sanitize
@@ -479,7 +479,7 @@ class test_mail(TestMailBase):
'message_post: notification email sent to more than one email address instead of a precise partner')
self.assertIn(sent_email['email_to'][0], test_emailto,
'message_post: notification email email_to incorrect')
- self.assertEqual(sent_email['reply_to'], 'r@r', # was '"Followers of Pigs" ', but makes no sense
+ self.assertEqual(email_split(sent_email['reply_to']), ['r@r'], # was '"Followers of Pigs" ', but makes no sense
'message_post: notification email reply_to incorrect: should have raoul email')
self.assertEqual(_mail_subject, sent_email['subject'],
'message_post: notification email subject incorrect')
diff --git a/addons/mail/tests/test_mail_gateway.py b/addons/mail/tests/test_mail_gateway.py
index 01e4dd2c9cb..9e05bb049c1 100644
--- a/addons/mail/tests/test_mail_gateway.py
+++ b/addons/mail/tests/test_mail_gateway.py
@@ -20,7 +20,7 @@
##############################################################################
from openerp.addons.mail.tests.test_mail_base import TestMailBase
-from openerp.tools import mute_logger
+from openerp.tools import mute_logger, email_split
MAIL_TEMPLATE = """Return-Path:
To: {to}
@@ -274,7 +274,7 @@ class TestMailgateway(TestMailBase):
mail_id = self.mail_mail.create(cr, uid, {'mail_message_id': msg_id, 'state': 'cancel'})
mail = self.mail_mail.browse(cr, uid, mail_id)
# Test: mail_mail content
- self.assertEqual(mail.reply_to, msg.email_from,
+ self.assertEqual(email_split(mail.reply_to), email_split(msg.email_from),
'mail_mail: reply_to should be equal to mail_message.email_from when having no document or default alias')
# Data: set catchall domain
From 45780c147d676ac52dfbed8be75ca6babced9a18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?=
Date: Fri, 14 Jun 2013 14:05:40 +0200
Subject: [PATCH 66/69] [IMP] Partner View Improvement: remove history tab.
This server branch comes with an addons branch where the various items of the
history tab are removed and transformed into contextual buttons. Names are
added to two pages of the partner notebook to be able to reference them in
future inheritance.
bzr revid: tde@openerp.com-20130614120540-5qvvh07cu2quwi71
---
openerp/addons/base/res/res_partner_view.xml | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/openerp/addons/base/res/res_partner_view.xml b/openerp/addons/base/res/res_partner_view.xml
index 2e7b6f0c14d..f02021313c0 100644
--- a/openerp/addons/base/res/res_partner_view.xml
+++ b/openerp/addons/base/res/res_partner_view.xml
@@ -293,10 +293,10 @@
-
+
-
+
-
-
-
From bc58a5a2241a887da8445c693c42d95d68b15a82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?=
Date: Fri, 14 Jun 2013 16:16:43 +0200
Subject: [PATCH 67/69] [CLEAN] Misc cleaning before merging.
bzr revid: tde@openerp.com-20130614141643-29z9zslusyhj4u5j
---
addons/point_of_sale/point_of_sale.py | 6 +++---
addons/sale/sale.py | 6 +++---
addons/sale_stock/sale_stock.py | 14 +++++++-------
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py
index 7ad2cc64b04..370aa2e55ff 100644
--- a/addons/point_of_sale/point_of_sale.py
+++ b/addons/point_of_sale/point_of_sale.py
@@ -115,11 +115,11 @@ class pos_config(osv.osv):
def _default_warehouse(self, cr, uid, context=None):
user = self.pool.get('res.users').browse(cr, uid, uid, context)
- res = self.pool.get('stock.warehouse').search(cr, uid, [('company_id','=',user.company_id.id)], context=context)
+ res = self.pool.get('stock.warehouse').search(cr, uid, [('company_id', '=', user.company_id.id)], limit=1, context=context)
return res and res[0] or False
-
+
def _default_pricelist(self, cr, uid, context=None):
- res = self.pool.get('product.pricelist').search(cr, uid, [('type', '=', 'sale')])
+ res = self.pool.get('product.pricelist').search(cr, uid, [('type', '=', 'sale')], limit=1, context=context)
return res and res[0] or False
_defaults = {
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index 61168d92464..6f4275e7730 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -150,9 +150,9 @@ class sale_order(osv.osv):
for line in self.pool.get('sale.order.line').browse(cr, uid, ids, context=context):
result[line.order_id.id] = True
return result.keys()
-
+
def _get_default_company(self, cr, uid, context=None):
- company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
+ company_id = self.pool.get('res.users')._get_company(cr, uid, uid, context=context)
if not company_id:
raise osv.except_osv(_('Error!'), _('There is no default company for the current user!'))
return company_id
@@ -219,7 +219,7 @@ class sale_order(osv.osv):
'invoice_quantity': fields.selection([('order', 'Ordered Quantities')], 'Invoice on', help="The sales order will automatically create the invoice proposition (draft invoice).", required=True, readonly=True, states={'draft': [('readonly', False)]}),
'payment_term': fields.many2one('account.payment.term', 'Payment Term'),
'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'),
- 'company_id': fields.many2one('res.company','Company')
+ 'company_id': fields.many2one('res.company', 'Company'),
}
_defaults = {
'date_order': fields.date.context_today,
diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py
index af3555d07f8..f8f6a4dd8a5 100644
--- a/addons/sale_stock/sale_stock.py
+++ b/addons/sale_stock/sale_stock.py
@@ -63,12 +63,12 @@ class sale_order(osv.osv):
vals.update({'invoice_quantity': 'order'})
if vals['order_policy'] == 'picking':
vals.update({'invoice_quantity': 'procurement'})
- order = super(sale_order, self).create(cr, uid, vals, context=context)
+ order = super(sale_order, self).create(cr, uid, vals, context=context)
return order
-
+
def _get_default_warehouse(self, cr, uid, context=None):
- company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
- warehouse_ids = self.pool.get('stock.warehouse').search(cr, uid, [('company_id','=',company_id)], context=context)
+ company_id = self.pool.get('res.users')._get_company(cr, uid, uid, context=context)
+ warehouse_ids = self.pool.get('stock.warehouse').search(cr, uid, [('company_id', '=', company_id)], context=context)
if not warehouse_ids:
raise osv.except_osv(_('Error!'), _('There is no warehouse defined for current company.'))
return warehouse_ids[0]
@@ -140,7 +140,7 @@ class sale_order(osv.osv):
'picking_ids': fields.one2many('stock.picking.out', 'sale_id', 'Related Picking', readonly=True, help="This is a list of delivery orders that has been generated for this sales order."),
'shipped': fields.boolean('Delivered', readonly=True, help="It indicates that the sales order has been delivered. This field is updated only after the scheduler(s) have been launched."),
'picked_rate': fields.function(_picked_rate, string='Picked', type='float'),
- 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse',required=True),
+ 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', required=True),
'invoice_quantity': fields.selection([('order', 'Ordered Quantities'), ('procurement', 'Shipped Quantities')], 'Invoice on',
help="The sales order will automatically create the invoice proposition (draft invoice).\
You have to choose if you want your invoice based on ordered ", required=True, readonly=True, states={'draft': [('readonly', False)]}),
@@ -163,12 +163,12 @@ class sale_order(osv.osv):
raise osv.except_osv(_('Invalid Action!'), _('In order to delete a confirmed sales order, you must cancel it.\nTo do so, you must first cancel related picking for delivery orders.'))
return osv.osv.unlink(self, cr, uid, unlink_ids, context=context)
-
+
def onchange_warehouse_id(self, cr, uid, ids, warehouse_id, context=None):
val = {}
if warehouse_id:
warehouse = self.pool.get('stock.warehouse').browse(cr, uid, warehouse_id, context=context)
- if warehouse.company_id.id:
+ if warehouse.company_id:
val['company_id'] = warehouse.company_id.id
return {'value': val}
From e738adfafe01a579ebc3359de860a07381fde0d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?=
Date: Fri, 14 Jun 2013 16:33:17 +0200
Subject: [PATCH 68/69] [FIX] sale, sale_stock: fixed calls to get_company
taking an extra uid
bzr revid: tde@openerp.com-20130614143317-65mbgfugskxqnxp7
---
addons/sale/sale.py | 2 +-
addons/sale_stock/sale_stock.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index 49fa8521e27..67c6f82ced3 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -152,7 +152,7 @@ class sale_order(osv.osv):
return result.keys()
def _get_default_company(self, cr, uid, context=None):
- company_id = self.pool.get('res.users')._get_company(cr, uid, uid, context=context)
+ company_id = self.pool.get('res.users')._get_company(cr, uid, context=context)
if not company_id:
raise osv.except_osv(_('Error!'), _('There is no default company for the current user!'))
return company_id
diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py
index a47a77a7e3d..3f7ac28c900 100644
--- a/addons/sale_stock/sale_stock.py
+++ b/addons/sale_stock/sale_stock.py
@@ -67,7 +67,7 @@ class sale_order(osv.osv):
return order
def _get_default_warehouse(self, cr, uid, context=None):
- company_id = self.pool.get('res.users')._get_company(cr, uid, uid, context=context)
+ company_id = self.pool.get('res.users')._get_company(cr, uid, context=context)
warehouse_ids = self.pool.get('stock.warehouse').search(cr, uid, [('company_id', '=', company_id)], context=context)
if not warehouse_ids:
raise osv.except_osv(_('Error!'), _('There is no warehouse defined for current company.'))
From 50106b25e8163d6032b9ccabe514622c073b2fb1 Mon Sep 17 00:00:00 2001
From: Launchpad Translations on behalf of openerp <>
Date: Sun, 16 Jun 2013 04:38:29 +0000
Subject: [PATCH 69/69] Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130616043829-skwivcwkvq31nhfh
---
addons/hr_contract/i18n/th.po | 232 ++++++++++++++++++++++++++++++++++
1 file changed, 232 insertions(+)
create mode 100644 addons/hr_contract/i18n/th.po
diff --git a/addons/hr_contract/i18n/th.po b/addons/hr_contract/i18n/th.po
new file mode 100644
index 00000000000..faa98497b01
--- /dev/null
+++ b/addons/hr_contract/i18n/th.po
@@ -0,0 +1,232 @@
+# Thai translation for openobject-addons
+# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR , 2013.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME \n"
+"POT-Creation-Date: 2012-12-21 17:05+0000\n"
+"PO-Revision-Date: 2013-06-15 17:09+0000\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: Thai