diff --git a/addons/account/account.py b/addons/account/account.py index 9e86e8ddfa5..5b4f9dd01c5 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -927,14 +927,15 @@ class account_move_reconcile(osv.osv): 'name': lambda self,cr,uid,ctx={}: self.pool.get('ir.sequence').get(cr, uid, 'account.reconcile') or '/', } def reconcile_partial_check(self, cr, uid, ids, type='auto', context={}): - for rec in self.pool.get('account.move.reconcile').browse(cr, uid, ids): + for rec in self.browse(cr, uid, ids, context): total = 0.0 for line in rec.line_partial_ids: total += (line.debit or 0.0) - (line.credit or 0.0) - if not total: - self.write(cr,uid, map(lambda x: x.id, rec.line_partial_ids), {'reconcile_id': rec.id }) - for line in rec.line_partial_ids: - total += (line.debit or 0.0) - (line.credit or 0.0) + if not total: + self.pool.get('account.move.line').write(cr, uid, + map(lambda x: x.id, rec.line_partial_ids), + {'reconcile_id': rec.id } + ) return True def name_get(self, cr, uid, ids, context=None): result = {} diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 0f7de933e3f..744e9d5adc4 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -378,7 +378,8 @@ class account_move_line(osv.osv): unmerge.append(line.id) total += (line.debit or 0.0) - (line.credit or 0.0) if not total: - return self.reconcile(cr, uid, merges+unmerge, context=context) + res = self.reconcile(cr, uid, merges+unmerge, context=context) + return res r_id = self.pool.get('account.move.reconcile').create(cr, uid, { 'type': type, 'line_partial_ids': map(lambda x: (4,x,False), merges+unmerge) @@ -578,14 +579,12 @@ class account_move_line(osv.osv): if not context: context={} raise_ex=False - account_obj = self.pool.get('account.account') - acc=account_obj.browse(cr,uid,ids)[0] if ('debit' in vals and 'credit' in vals) and not vals['debit'] and not vals['credit']: raise_ex=True - if ('debit' in vals and 'credit' not in vals) and not vals['debit'] and not acc.credit: + if ('debit' in vals and 'credit' not in vals) and not vals['debit']: raise_ex=True - if ('credit' in vals and 'debit' not in vals) and not vals['credit'] and not acc.debit: + if ('credit' in vals and 'debit' not in vals) and not vals['credit']: raise_ex=True if raise_ex: diff --git a/addons/association_vertical/aso_data.xml b/addons/association_vertical/aso_data.xml index 74080c1f3eb..6d9354190c0 100644 --- a/addons/association_vertical/aso_data.xml +++ b/addons/association_vertical/aso_data.xml @@ -2,7 +2,7 @@ - No One + No One Association diff --git a/addons/auction/auction_demo.xml b/addons/auction/auction_demo.xml index 1d1bcdc079a..537d1da8e59 100644 --- a/addons/auction/auction_demo.xml +++ b/addons/auction/auction_demo.xml @@ -3,237 +3,237 @@ - + - - Unknown - + + Unknown + - - Bruxelles1 - Benoit Mortie1r1 - 1030 - + + Bruxelles1 + Benoit Mortie1r1 + 1030 + - info@opensides.be - (+32)2 211 34 83 - Rue des Palais 44, bte 33 - default - + info@opensides.be + (+32)2 211 34 83 + Rue des Palais 44, bte 33 + default + - Avignon CEDEX 091 - Laurent Jacot1 - 84911 - - contact@tecsas.fr - (+33)4.32.74.10.57 - 85 rue du traite de Rome - default - + Avignon CEDEX 091 + Laurent Jacot1 + 84911 + + contact@tecsas.fr + (+33)4.32.74.10.57 + 85 rue du traite de Rome + default + - Louvain-la-Neuve - Thomas Passot - 1348 - - info@mediapole.net - (+32).10.45.17.73 - Rue de l'Angelique, 1 - + Louvain-la-Neuve + Thomas Passot + 1348 + + info@mediapole.net + (+32).10.45.17.73 + Rue de l'Angelique, 1 + - - - Philippe Lavilier - 1345-1450 - - - POREAU OSWALD - 1877-1955 - + + + Philippe Lavilier + 1345-1450 + + + POREAU OSWALD + 1877-1955 + - + - - VAT 1% - VAT01 - - + + VAT 1% + VAT01 + + - - VAT 20% - VAT20 - - + + VAT 20% + VAT20 + + - - VAT 10% - VAT10 - - + + VAT 10% + VAT10 + + - - VAT 12% - VAT12 - - + + VAT 12% + VAT12 + + - - VAT 5% - VAT5 - - + + VAT 5% + VAT5 + + - - Droit d'auteur - 0.05 - sabam - - + + Droit d'auteur + 0.05 + sabam + + - - + + TVA 0.12 - auction - - + auction + + - + TVA1 0.2 - auction - - + auction + + - + Buyer Costs 0.21 - auction - - + auction + + - + Seller Costs1 -0.10 - auction - - + auction + + - + Seller Costs -0.10 - auction - - + auction + + - - + + Frais de vente -0.15 - auction - - + auction + + - + Frais de vente 0 - auction - - + auction + + + + + Oeuvres a 21% + - - Oeuvres a 21% - - - - - painting - 1 - 8 - - - Furniture - 2 - 10 + + + painting + 1 + 8 + + + Furniture + 2 + 10 - + - - glass - 2 - 25 - - - sculpture - 10 - 18 - + + glass + 2 + 25 + + + sculpture + 10 + 18 + - - Jawellery - 6 - 15 - + + Jawellery + 6 + 15 + - - painting Exhibition - - - - - - - - + + painting Exhibition + + + + + + + + - - - + + + - + - - Antique Items Exhibition - - - - + + Antique Items Exhibition + + + + - - - - + + + + - - - + + + @@ -241,376 +241,376 @@ - + - - - - keep - + + + + keep + - - - - keep - + + + + keep + - - - - keep - + + + + keep + - - - - keep - + + + + keep + - - - - keep - + + + + keep + - - - Aera Glasses - 1 - 500 - 700 - show pices - 465.00 - 1 - 0.00 - - + + + Aera Glasses + 1 + 500 + 700 + show pices + 465.00 + 1 + 0.00 + + - + - - - lake Photos - 2 - 1000 - 1700 - show pices - 0.00 - 2 - 1500.00 - - | + + + lake Photos + 2 + 1000 + 1700 + show pices + 0.00 + 2 + 1500.00 + + | - - - + + + - - - fancy mask - 3 - 500 - 700 - show pices - 650 - 4 - 0.00 - - | | + + + fancy mask + 3 + 500 + 700 + show pices + 650 + 4 + 0.00 + + | | - - - + + + - - - Dining Table - 4 - 200 - 400 - show pices - 0.00 - 4 - 375 - - | | + + + Dining Table + 4 + 200 + 400 + show pices + 0.00 + 4 + 375 + + | | - - - + + + - - - Plastic glass - 5 - - 300 - 500 - show pices - 0.00 - 5 - 460 - + + + Plastic glass + 5 + + 300 + 500 + show pices + 0.00 + 5 + 460 + - - + + - - - Mountain photos - 6 - - 50 - 100 - show pices - 0.00 - 6 - 85 - + + + Mountain photos + 6 + + 50 + 100 + show pices + 0.00 + 6 + 85 + - - + + - - - - bresslet - 7 - - 150 - 400 - show pices - 100 - 1 - 0 - + + + + bresslet + 7 + + 150 + 400 + show pices + 100 + 1 + 0 + - - + + - - - gold chain - 11 - - 400 - 700 - show pices - 0.00 - 11 - 550 - + + + gold chain + 11 + + 400 + 700 + show pices + 0.00 + 11 + 550 + - - + + - - - fiber glass - 8 - - 300 - 500 - show pices - 0.00 - 8 - 450 - + + + fiber glass + 8 + + 300 + 500 + show pices + 0.00 + 8 + 450 + - - - - - - lake photos - 9 - - 100 - 200 - show pices - 150 - 9 - 0.00 - - - - - - - - - mobile photos - 10 - - 4500 - 4700 - show models - 4650 - 10 - 4800.00 - - - - - - - - - Antique photos - 11 - - 1600 - 2200 - show map Items - 2150 - 11 - 2050.00 - - - - - - - - - - - Hardware photos - 12 - - 2600 - 2800 - show map Items - 2550 - 12 - 2050.00 - - - - - - - - - - Home Appliance photos - 12 - - 1600 - 2200 - show map Items - 2150 - 12 - 2050.00 - - - - - - - - - - mobile accesories photos - 13 - - 1600 - 2200 - show map Items - 2150 - 13 - 2050.00 - - - - - - - - piques-cierges - 14 - - 30 - 50 - show map Items - 20 - 14 - 0 - - - - - - - - - - Service à café - 15 - - 10 - 20 - show map Items - 0 - 15 - 25 - - - - - - - - - + + + + + + lake photos + 9 + + 100 + 200 + show pices + 150 + 9 + 0.00 + + + + + + + + + mobile photos + 10 + + 4500 + 4700 + show models + 4650 + 10 + 4800.00 + + + + + + + + + Antique photos + 11 + + 1600 + 2200 + show map Items + 2150 + 11 + 2050.00 + + + + + + + + + + + Hardware photos + 12 + + 2600 + 2800 + show map Items + 2550 + 12 + 2050.00 + + + + + + + + + + Home Appliance photos + 12 + + 1600 + 2200 + show map Items + 2150 + 12 + 2050.00 + + + + + + + + + + mobile accesories photos + 13 + + 1600 + 2200 + show map Items + 2150 + 13 + 2050.00 + + + + + + + + piques-cierges + 14 + + 30 + 50 + show map Items + 20 + 14 + 0 + + + + + + + + + + Service à café + 15 + + 10 + 20 + show map Items + 0 + 15 + 25 + + + + + + + + + - - - Pendule - 16 - 100 - 200 - show map Items - 0 - 16 - 150 - - - - + + + Pendule + 16 + 100 + 200 + show map Items + 0 + 16 + 150 + + + + - - - Cassolettes en marbre - 17 - 400 - 500 - marbre Saint Rémi - 150 - 17 - 0 - - - + + + Cassolettes en marbre + 17 + 400 + 500 + marbre Saint Rémi + 150 + 17 + 0 + + + - + - - - Tableau - 18 - 1600 - 2200 - show map Items - 2150 - 18 - 2050.00 - - - + + + Tableau + 18 + 1600 + 2200 + show map Items + 2150 + 18 + 2050.00 + + + - + @@ -619,41 +619,41 @@ - - - Vase - 19 - 180 - 220 - Rouge - 0 - 19 - 190.00 - - - + + + Vase + 19 + 180 + 220 + Rouge + 0 + 19 + 190.00 + + + - + - - - Appareil à photos - 20 - 160 - 340 - map Items - 0 - 20 - 150.00 - - - + + + Appareil à photos + 20 + 160 + 340 + map Items + 0 + 20 + 150.00 + + + - + @@ -668,228 +668,217 @@ - - bid1 - - - - - - - - - - - bid2 - - - - - - - - - - - bid3 - - - - - - - - - - - bid4 - - - - - - - - - - - bid5 - - - - - - - - - - - bid6 - - - - - - - - - - - bid7 - - - - - - - - - - - bid8 - - - - - - - - - - - bid9 - - - - - - - - - - - bid10 - - - - - - - - - - - - - - pritesh - 45 - - 25 - - - - - - - - - - - sign_in - - - - - sign_out - - - - - sign_in - - - - - sign_out - - - - - sign_in - - - - - sign_out - - - - - sign_in - - - - - sign_out - - - - - - - - - - sign_in - - - - - sign_out - - - - - sign_in - - - - - - sign_out - - - - - sign_in - - - - - sign_out - - - - - sign_in - - - - - sign_out - - - - + + bid1 + + + + + + + + + bid2 + + + + + + + + + bid3 + + + + + + + + + bid4 + + + + + + + + + bid5 + + + + + + + + + + bid6 + + + + + + + + + + + bid7 + + + + + + + + + + + bid8 + + + + + + + + + + + bid9 + + + + + + + + + + + bid10 + + + + + + + + + + + + + + pritesh + 45 + + 25 + + + + + + + + + + + sign_in + + + + + sign_out + + + + + sign_in + + + + + sign_out + + + + + sign_in + + + + + sign_out + + + + + sign_in + + + + + sign_out + + + + + + + + + + sign_in + + + + + sign_out + + + + + sign_in + + + - + + sign_out + + + + + sign_in + + + + + sign_out + + + + + sign_in + + + + + sign_out + + diff --git a/addons/invoice_payment_tab/invoice_payment_tab_view.xml b/addons/invoice_payment_tab/invoice_payment_tab_view.xml index a1781fdb21a..ad14122c152 100644 --- a/addons/invoice_payment_tab/invoice_payment_tab_view.xml +++ b/addons/invoice_payment_tab/invoice_payment_tab_view.xml @@ -11,7 +11,7 @@ - +