From cbb08e68623e57c8bcb2f4e80cf68393fd6a008e Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 18 Feb 2009 15:37:49 +0100 Subject: [PATCH 01/65] [FIX] Change the directory to get the xsl style sheet for the reports based on XML bzr revid: stephane@tinyerp.com-20090218143749-51n1gfx927ibirlv --- addons/account/report/transfer.xsl | 2 +- addons/auction/report/ach_bordereau.xsl | 2 +- addons/auction/report/ach_bordereau_photo.xsl | 2 +- addons/auction/report/bids.xsl | 2 +- addons/auction/report/catalog.xsl | 2 +- addons/auction/report/deposit.xsl | 2 +- addons/auction/report/lots_bids_phone.xsl | 2 +- addons/auction/report/lots_bids_phone2.xsl | 2 +- addons/auction/report/lots_deposit.xsl | 2 +- addons/auction/report/lots_list.xsl | 2 +- addons/auction/report/lots_with_vat.xsl | 2 +- addons/auction/report/total.xsl | 2 +- addons/auction/report/vnd_bordereau.xsl | 2 +- addons/product/report/product_price.xsl | 2 +- addons/stock/report/lot_overview.xsl | 2 +- addons/stock/report/lot_overview_all.xsl | 2 +- addons/stock/report/stock_by_location.xsl | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/addons/account/report/transfer.xsl b/addons/account/report/transfer.xsl index cd27805126a..1447fcef6a4 100644 --- a/addons/account/report/transfer.xsl +++ b/addons/account/report/transfer.xsl @@ -1,7 +1,7 @@ - + a4_normal diff --git a/addons/auction/report/ach_bordereau.xsl b/addons/auction/report/ach_bordereau.xsl index e95eddfe35d..6aa9f36e299 100644 --- a/addons/auction/report/ach_bordereau.xsl +++ b/addons/auction/report/ach_bordereau.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/auction/report/ach_bordereau_photo.xsl b/addons/auction/report/ach_bordereau_photo.xsl index 22526d37883..b1ed3340d7a 100644 --- a/addons/auction/report/ach_bordereau_photo.xsl +++ b/addons/auction/report/ach_bordereau_photo.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/auction/report/bids.xsl b/addons/auction/report/bids.xsl index 829cd2b4079..b1552dedc7c 100644 --- a/addons/auction/report/bids.xsl +++ b/addons/auction/report/bids.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/auction/report/catalog.xsl b/addons/auction/report/catalog.xsl index 29ba5e57b9b..29c5da5cab4 100644 --- a/addons/auction/report/catalog.xsl +++ b/addons/auction/report/catalog.xsl @@ -1,7 +1,7 @@ - + a4_normal diff --git a/addons/auction/report/deposit.xsl b/addons/auction/report/deposit.xsl index 2ca08445726..3573cce5a4e 100644 --- a/addons/auction/report/deposit.xsl +++ b/addons/auction/report/deposit.xsl @@ -1,6 +1,6 @@ - + diff --git a/addons/auction/report/lots_bids_phone.xsl b/addons/auction/report/lots_bids_phone.xsl index 715114b20c1..4e22235c042 100644 --- a/addons/auction/report/lots_bids_phone.xsl +++ b/addons/auction/report/lots_bids_phone.xsl @@ -1,6 +1,6 @@ - + diff --git a/addons/auction/report/lots_bids_phone2.xsl b/addons/auction/report/lots_bids_phone2.xsl index b8445998caf..27c57f475e2 100644 --- a/addons/auction/report/lots_bids_phone2.xsl +++ b/addons/auction/report/lots_bids_phone2.xsl @@ -1,6 +1,6 @@ - + diff --git a/addons/auction/report/lots_deposit.xsl b/addons/auction/report/lots_deposit.xsl index ebf39458393..1b88f934be2 100644 --- a/addons/auction/report/lots_deposit.xsl +++ b/addons/auction/report/lots_deposit.xsl @@ -1,6 +1,6 @@ - + diff --git a/addons/auction/report/lots_list.xsl b/addons/auction/report/lots_list.xsl index 4da62182d6d..96756838da9 100644 --- a/addons/auction/report/lots_list.xsl +++ b/addons/auction/report/lots_list.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/auction/report/lots_with_vat.xsl b/addons/auction/report/lots_with_vat.xsl index 60c262dcee7..1dd6bda428b 100644 --- a/addons/auction/report/lots_with_vat.xsl +++ b/addons/auction/report/lots_with_vat.xsl @@ -3,7 +3,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> - + a4_normal diff --git a/addons/auction/report/total.xsl b/addons/auction/report/total.xsl index 265c880b71c..41d44bc2e65 100644 --- a/addons/auction/report/total.xsl +++ b/addons/auction/report/total.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/auction/report/vnd_bordereau.xsl b/addons/auction/report/vnd_bordereau.xsl index 0d297f77b51..356f069dfa8 100644 --- a/addons/auction/report/vnd_bordereau.xsl +++ b/addons/auction/report/vnd_bordereau.xsl @@ -1,6 +1,6 @@ - + diff --git a/addons/product/report/product_price.xsl b/addons/product/report/product_price.xsl index 5442092fdcf..fb0f7f44b3a 100644 --- a/addons/product/report/product_price.xsl +++ b/addons/product/report/product_price.xsl @@ -2,7 +2,7 @@ - + diff --git a/addons/stock/report/lot_overview.xsl b/addons/stock/report/lot_overview.xsl index ec34194ff6c..0244bcaa609 100644 --- a/addons/stock/report/lot_overview.xsl +++ b/addons/stock/report/lot_overview.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/stock/report/lot_overview_all.xsl b/addons/stock/report/lot_overview_all.xsl index 9bd2ec19577..c78b8f63bfa 100644 --- a/addons/stock/report/lot_overview_all.xsl +++ b/addons/stock/report/lot_overview_all.xsl @@ -1,7 +1,7 @@ - + diff --git a/addons/stock/report/stock_by_location.xsl b/addons/stock/report/stock_by_location.xsl index cbbed9299c4..bb70b0b5643 100644 --- a/addons/stock/report/stock_by_location.xsl +++ b/addons/stock/report/stock_by_location.xsl @@ -1,7 +1,7 @@ - + a4_normal From 0b60dc4e1f67fc8308e5c3a0896d01726bc66573 Mon Sep 17 00:00:00 2001 From: qdp Date: Wed, 18 Feb 2009 19:14:38 +0100 Subject: [PATCH 02/65] [FIX] fixed the recursive call bzr revid: qdp@tinyerp.com-20090218181438-4l2iy2c8lj6ohisd --- addons/membership/membership.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/membership/membership.py b/addons/membership/membership.py index 5c288ed5c98..e28628a5713 100644 --- a/addons/membership/membership.py +++ b/addons/membership/membership.py @@ -293,8 +293,8 @@ class Partner(osv.osv): query="SELECT DISTINCT associate_member FROM res_partner" cr.execute(query) for p in cr.fetchall(): - if p != partner_data.id: - associate_partners_list.append(p) + if p[0] and p[0] != partner_data.id: + associate_partners_list.append(p[0]) if associate_partners_list != []: self._membership_state(cr, uid, associate_partners_list, name, args, context) res[id] = partner_data.associate_member.membership_state From 274f7ab18be99f6f2c3bc7fe71d61c6b56e0c27f Mon Sep 17 00:00:00 2001 From: "mra (Open ERP)" Date: Thu, 19 Feb 2009 11:19:26 +0530 Subject: [PATCH 03/65] membership : bug fix bzr revid: mra@tinyerp.com-20090219054926-u4sdml1y3mq2pzy2 --- addons/membership/membership.py | 6 +++--- addons/membership/wizard/invoice_membership.py | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/addons/membership/membership.py b/addons/membership/membership.py index e28628a5713..32be0a9fea8 100644 --- a/addons/membership/membership.py +++ b/addons/membership/membership.py @@ -296,8 +296,8 @@ class Partner(osv.osv): if p[0] and p[0] != partner_data.id: associate_partners_list.append(p[0]) if associate_partners_list != []: - self._membership_state(cr, uid, associate_partners_list, name, args, context) - res[id] = partner_data.associate_member.membership_state + res_state = self._membership_state(cr, uid, associate_partners_list, name, args, context) + res[id] = res_state[partner_data.associate_member.id] #partner_data.associate_member.membership_state return res def _membership_start(self, cr, uid, ids, name, args, context=None): @@ -372,7 +372,7 @@ class Partner(osv.osv): selection = STATE ,store = { 'account.invoice':(_get_invoice_partner,['state'], 10), 'membership.membership_line':(_get_partner_id,['state'], 10), - 'res.partner':(_get_partners, ['free_member'], 10) + 'res.partner':(_get_partners, ['free_member','membership_state'], 10) } ), 'membership_start': fields.function( diff --git a/addons/membership/wizard/invoice_membership.py b/addons/membership/wizard/invoice_membership.py index 1321bb38491..7e2aeba4d1d 100644 --- a/addons/membership/wizard/invoice_membership.py +++ b/addons/membership/wizard/invoice_membership.py @@ -73,15 +73,18 @@ def _invoice_membership(self, cr, uid, data, context): if line_value['invoice_line_tax_id']: tax_tab = [(6, 0, line_value['invoice_line_tax_id'])] line_value['invoice_line_tax_id'] = tax_tab - invoice_line_id = invoice_line_obj.create(cr, uid, line_value) +# invoice_line_id = invoice_line_obj.create(cr, uid, line_value) invoice_id = invoice_obj.create(cr, uid, { 'partner_id' : partner_id, 'address_invoice_id': partner_address_ids[partner_id]['id'], 'account_id': account_id, - 'invoice_line':[(6,0,[invoice_line_id])], +# 'invoice_line':[(6,0,[invoice_line_id])], 'fiscal_position': fpos_id or False } ) + line_value['invoice_id'] = invoice_id + invoice_line_id = invoice_line_obj.create(cr, uid, line_value, context) + invoice_obj.write(cr, uid, invoice_id, {'invoice_line':[(6,0,[invoice_line_id])]}) invoice_list.append(invoice_id) if line_value['invoice_line_tax_id']: invoice_obj.write(cr, uid, [invoice_id], {'tax_line':tax_tab}) From 1695f0931e227c1dc2072fdb9da762d1bf945748 Mon Sep 17 00:00:00 2001 From: "mga (Tiny/Axelor)" Date: Thu, 19 Feb 2009 11:53:57 +0530 Subject: [PATCH 04/65] change the accounting voucher view bzr revid: mga@tinyerp.com-20090219062357-w3mbisfaj17j38tz --- addons/account_voucher/voucher_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml index 7f5cf40cd32..350cc3f85b1 100755 --- a/addons/account_voucher/voucher_view.xml +++ b/addons/account_voucher/voucher_view.xml @@ -49,7 +49,7 @@