From cf6595baf2887f8a7f99fa2254f15ead01b6659c Mon Sep 17 00:00:00 2001 From: "sgo@tinyerp.com" <> Date: Mon, 21 Jan 2013 15:35:42 +0530 Subject: [PATCH 01/69] [IMP]remove total sale.shop from sales bzr revid: sgo@tinyerp.com-20130121100542-36qmkrd82md97phv --- .../portal_sale/security/ir.model.access.csv | 1 - addons/sale/report/sale_report.py | 3 - addons/sale/report/sale_report_view.xml | 3 - addons/sale/sale.py | 37 +---------- addons/sale/sale_data.xml | 14 ----- addons/sale/sale_demo.xml | 7 --- addons/sale/sale_unit_test.xml | 1 - addons/sale/sale_view.xml | 62 ++----------------- addons/sale/security/ir.model.access.csv | 4 -- addons/sale/security/sale_security.xml | 7 --- 10 files changed, 5 insertions(+), 134 deletions(-) diff --git a/addons/portal_sale/security/ir.model.access.csv b/addons/portal_sale/security/ir.model.access.csv index c73be67e8c9..37e27c54d36 100644 --- a/addons/portal_sale/security/ir.model.access.csv +++ b/addons/portal_sale/security/ir.model.access.csv @@ -11,7 +11,6 @@ access_account_move,account.move,account.model_account_move,portal.group_portal, access_account_move_line,account.move.line,account.model_account_move_line,portal.group_portal,1,0,0,0 access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal.group_portal,1,0,0,0 access_account_fiscalyear,account.sequence.fiscalyear,account.model_account_sequence_fiscalyear,portal.group_portal,1,0,0,0 -access_sale_shop,sale.shop,sale.model_sale_shop,portal.group_portal,1,0,0,0 access_product_list,product.pricelist,product.model_product_pricelist,portal.group_portal,1,0,0,0 access_res_partner,res.partner,base.model_res_partner,portal.group_portal,1,0,0,0 access_account_tax,account.tax,account.model_account_tax,portal.group_portal,1,0,0,0 diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py index a20ba01f300..5d057489253 100644 --- a/addons/sale/report/sale_report.py +++ b/addons/sale/report/sale_report.py @@ -40,7 +40,6 @@ class sale_report(osv.osv): 'product_uom_qty': fields.float('# of Qty', readonly=True), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=True), - 'shop_id': fields.many2one('sale.shop', 'Shop', readonly=True), 'company_id': fields.many2one('res.company', 'Company', readonly=True), 'user_id': fields.many2one('res.users', 'Salesperson', readonly=True), 'price_total': fields.float('Total Price', readonly=True), @@ -79,7 +78,6 @@ class sale_report(osv.osv): to_char(s.date_order, 'YYYY-MM-DD') as day, s.partner_id as partner_id, s.user_id as user_id, - s.shop_id as shop_id, s.company_id as company_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, @@ -104,7 +102,6 @@ class sale_report(osv.osv): s.date_confirm, s.partner_id, s.user_id, - s.shop_id, s.company_id, s.state, s.pricelist_id, diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml index 8f725a9eacb..69e9cc5e119 100644 --- a/addons/sale/report/sale_report_view.xml +++ b/addons/sale/report/sale_report_view.xml @@ -13,7 +13,6 @@ - @@ -58,7 +57,6 @@ - @@ -70,7 +68,6 @@ - diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 66653c61849..fe7c8752078 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -29,22 +29,6 @@ from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FO import openerp.addons.decimal_precision as dp from openerp import netsvc -class sale_shop(osv.osv): - _name = "sale.shop" - _description = "Sales Shop" - _columns = { - 'name': fields.char('Shop Name', size=64, required=True), - 'payment_default_id': fields.many2one('account.payment.term', 'Default Payment Term', required=True), - 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist'), - 'project_id': fields.many2one('account.analytic.account', 'Analytic Account', domain=[('parent_id', '!=', False)]), - 'company_id': fields.many2one('res.company', 'Company', required=False), - } - _defaults = { - 'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'sale.shop', context=c), - } - -sale_shop() - class sale_order(osv.osv): _name = "sale.order" _inherit = ['mail.thread', 'ir.needaction_mixin'] @@ -56,16 +40,6 @@ class sale_order(osv.osv): }, } - def onchange_shop_id(self, cr, uid, ids, shop_id, context=None): - v = {} - if shop_id: - shop = self.pool.get('sale.shop').browse(cr, uid, shop_id, context=context) - if shop.project_id.id: - v['project_id'] = shop.project_id.id - if shop.pricelist_id.id: - v['pricelist_id'] = shop.pricelist_id.id - return {'value': v} - def copy(self, cr, uid, id, default=None, context=None): if not default: default = {} @@ -178,17 +152,9 @@ class sale_order(osv.osv): result[line.order_id.id] = True return result.keys() - def _get_default_shop(self, cr, uid, context=None): - company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id - shop_ids = self.pool.get('sale.shop').search(cr, uid, [('company_id','=',company_id)], context=context) - if not shop_ids: - raise osv.except_osv(_('Error!'), _('There is no default shop for the current user\'s company!')) - return shop_ids[0] - _columns = { 'name': fields.char('Order Reference', size=64, required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, select=True), - 'shop_id': fields.many2one('sale.shop', 'Shop', required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}), 'origin': fields.char('Source Document', size=64, help="Reference of the document that generated this sales order request."), 'client_order_ref': fields.char('Customer Reference', size=64), 'state': fields.selection([ @@ -249,7 +215,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.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True,readonly=True) + 'company_id': fields.many2one('res.company','Company') } _defaults = { 'date_order': fields.date.context_today, @@ -258,7 +224,6 @@ class sale_order(osv.osv): 'user_id': lambda obj, cr, uid, context: uid, 'name': lambda obj, cr, uid, context: '/', 'invoice_quantity': 'order', - 'shop_id': _get_default_shop, 'partner_invoice_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['invoice'])['invoice'], 'partner_shipping_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['delivery'])['delivery'], } diff --git a/addons/sale/sale_data.xml b/addons/sale/sale_data.xml index 6d7cd043c39..8a6b1a8cbe3 100644 --- a/addons/sale/sale_data.xml +++ b/addons/sale/sale_data.xml @@ -19,20 +19,6 @@ sale.order - - - - - - - - - - - - mail.group diff --git a/addons/sale/sale_demo.xml b/addons/sale/sale_demo.xml index 428b586ffa8..3a0fe8b3bc5 100644 --- a/addons/sale/sale_demo.xml +++ b/addons/sale/sale_demo.xml @@ -6,7 +6,6 @@ - @@ -45,7 +44,6 @@ - manual @@ -75,7 +73,6 @@ - manual @@ -105,7 +102,6 @@ - @@ -154,7 +150,6 @@ - @@ -193,7 +188,6 @@ - @@ -261,7 +255,6 @@ - manual diff --git a/addons/sale/sale_unit_test.xml b/addons/sale/sale_unit_test.xml index 18a59320d9c..8d7d54d9640 100644 --- a/addons/sale/sale_unit_test.xml +++ b/addons/sale/sale_unit_test.xml @@ -3,7 +3,6 @@ - diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 18fdb739923..cd82d99c546 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -13,59 +13,6 @@ - - - sale.shop - sale.shop - -
-
-
- - - sale.shop - sale.shop - - - - - - - - - - - Shop - ir.actions.act_window - sale.shop - form - tree,form - - -

- Click to define a new sale shop. -

- 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. -

-
-
- - sale.order.calendar sale.order @@ -160,7 +107,6 @@ - @@ -178,13 +124,13 @@ From 6dac31941aa8a0eb9d4b037cb59a8de75a3f132a Mon Sep 17 00:00:00 2001 From: "sgo@tinyerp.com" <> Date: Thu, 7 Feb 2013 12:54:40 +0530 Subject: [PATCH 15/69] [IMP]improve code bzr revid: sgo@tinyerp.com-20130207072440-ekqkxi0o5cxe9iz0 --- addons/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index ebb87d02f26..bcdf3a55873 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -115,7 +115,7 @@ 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) + res = self.pool.get('stock.warehouse').search(cr, uid, [('company_id','=',user.company_id.id)], context=context) return res and res[0] or False def _default_pricelist(self, cr, uid, context=None): From d7bd9743a2580ec1ee9eb77743a151f8c3d71608 Mon Sep 17 00:00:00 2001 From: "sgo@tinyerp.com" <> Date: Thu, 7 Feb 2013 15:28:27 +0530 Subject: [PATCH 16/69] [IMP]improve pos config view bzr revid: sgo@tinyerp.com-20130207095827-oaya9xo9cjroqcex --- addons/point_of_sale/point_of_sale_view.xml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/addons/point_of_sale/point_of_sale_view.xml b/addons/point_of_sale/point_of_sale_view.xml index a3628761173..dbd5e731db1 100644 --- a/addons/point_of_sale/point_of_sale_view.xml +++ b/addons/point_of_sale/point_of_sale_view.xml @@ -773,16 +773,12 @@

- - - - - - - - - - + + + + + + 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.tree account_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.tree timesheet.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.inherit product.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.form res.partner - 20 + 30 - - False - - - - - - - - - + +