Commit 3f4b3741 authored by Jérome Perrin's avatar Jérome Perrin

fix indentations with tabs


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24954 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d41301d0
...@@ -109,8 +109,8 @@ class TestInvoiceMixin: ...@@ -109,8 +109,8 @@ class TestInvoiceMixin:
'gap/%s' % self.vat_gap, 'gap/%s' % self.vat_gap,
'gap/%s' % self.sale_gap, 'gap/%s' % self.sale_gap,
'gap/%s' % self.customer_gap, 'gap/%s' % self.customer_gap,
'delivery_mode/%s' % self.mail_delivery_mode, 'delivery_mode/%s' % self.mail_delivery_mode,
'incoterm/%s' % self.cpt_incoterm, 'incoterm/%s' % self.cpt_incoterm,
'quantity_unit/%s' % self.unit_piece_quantity_unit, 'quantity_unit/%s' % self.unit_piece_quantity_unit,
'quantity_unit/%s' % self.mass_quantity_unit, 'quantity_unit/%s' % self.mass_quantity_unit,
) )
...@@ -223,18 +223,18 @@ class TestInvoice(TestInvoiceMixin): ...@@ -223,18 +223,18 @@ class TestInvoice(TestInvoiceMixin):
currency = self.portal.currency_module.newContent( currency = self.portal.currency_module.newContent(
portal_type='Currency', portal_type='Currency',
title='Currency', title='Currency',
base_unit_quantity=0.01) base_unit_quantity=0.01)
self.createInvoiceTransactionRule(currency) self.createInvoiceTransactionRule(currency)
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', portal_type='Organisation',
title='Client', title='Client',
price_currency= currency.getRelativeUrl(), price_currency= currency.getRelativeUrl(),
default_address_region=self.default_region) default_address_region=self.default_region)
vendor = self.portal.organisation_module.newContent( vendor = self.portal.organisation_module.newContent(
portal_type='Organisation', portal_type='Organisation',
title='Vendor', title='Vendor',
price_currency= currency.getRelativeUrl(), price_currency= currency.getRelativeUrl(),
default_address_region=self.default_region) default_address_region=self.default_region)
order = self.portal.getDefaultModule(self.order_portal_type).newContent( order = self.portal.getDefaultModule(self.order_portal_type).newContent(
portal_type=self.order_portal_type, portal_type=self.order_portal_type,
...@@ -277,20 +277,20 @@ class TestInvoice(TestInvoiceMixin): ...@@ -277,20 +277,20 @@ class TestInvoice(TestInvoiceMixin):
self.resource_portal_type).newContent( self.resource_portal_type).newContent(
portal_type=self.resource_portal_type, portal_type=self.resource_portal_type,
title='Resource', title='Resource',
product_line='apparel') product_line='apparel')
currency = self.portal.currency_module.newContent( currency = self.portal.currency_module.newContent(
portal_type='Currency', portal_type='Currency',
title='Currency', title='Currency',
base_unit_quantity=0.01) base_unit_quantity=0.01)
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', portal_type='Organisation',
title='Client', title='Client',
price_currency= currency.getRelativeUrl()) price_currency= currency.getRelativeUrl())
vendor = self.portal.organisation_module.newContent( vendor = self.portal.organisation_module.newContent(
portal_type='Organisation', portal_type='Organisation',
title='Vendor', title='Vendor',
price_currency= currency.getRelativeUrl()) price_currency= currency.getRelativeUrl())
order = self.portal.getDefaultModule(self.order_portal_type).newContent( order = self.portal.getDefaultModule(self.order_portal_type).newContent(
portal_type=self.order_portal_type, portal_type=self.order_portal_type,
source_value=vendor, source_value=vendor,
...@@ -306,9 +306,9 @@ class TestInvoice(TestInvoiceMixin): ...@@ -306,9 +306,9 @@ class TestInvoice(TestInvoiceMixin):
price=2) price=2)
other_entity = self.portal.organisation_module.newContent( other_entity = self.portal.organisation_module.newContent(
portal_type='Organisation', portal_type='Organisation',
title='Other Entity', title='Other Entity',
price_currency=currency.getRelativeUrl()) price_currency=currency.getRelativeUrl())
order.plan() order.plan()
get_transaction().commit() get_transaction().commit()
self.tic() self.tic()
...@@ -475,7 +475,7 @@ class TestInvoice(TestInvoiceMixin): ...@@ -475,7 +475,7 @@ class TestInvoice(TestInvoiceMixin):
currency = self.portal.currency_module.newContent( currency = self.portal.currency_module.newContent(
portal_type='Currency', portal_type='Currency',
title='Currency', title='Currency',
base_unit_quantity=0.01) base_unit_quantity=0.01)
self.createInvoiceTransactionRule(currency) self.createInvoiceTransactionRule(currency)
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
...@@ -890,11 +890,10 @@ class TestInvoice(TestInvoiceMixin): ...@@ -890,11 +890,10 @@ class TestInvoice(TestInvoiceMixin):
test that categories delivery_mode and incoterm are copied on test that categories delivery_mode and incoterm are copied on
the invoice by the delivery builder the invoice by the delivery builder
""" """
resource = self.portal.product_module.newContent( resource = self.portal.product_module.newContent(
portal_type='Product', portal_type='Product',
title='Resource', title='Resource',
product_line='apparel') product_line='apparel')
currency = self.portal.currency_module.newContent( currency = self.portal.currency_module.newContent(
portal_type='Currency', portal_type='Currency',
title='euro') title='euro')
...@@ -918,8 +917,8 @@ class TestInvoice(TestInvoiceMixin): ...@@ -918,8 +917,8 @@ class TestInvoice(TestInvoiceMixin):
destination_section_value=client, destination_section_value=client,
start_date=DateTime(2008,10, 21), start_date=DateTime(2008,10, 21),
price_currency_value=currency, price_currency_value=currency,
delivery_mode=self.mail_delivery_mode, delivery_mode=self.mail_delivery_mode,
incoterm=self.cpt_incoterm, incoterm=self.cpt_incoterm,
title='Order') title='Order')
order_line = order.newContent(portal_type=self.order_line_portal_type, order_line = order.newContent(portal_type=self.order_line_portal_type,
resource_value=resource, resource_value=resource,
...@@ -1008,9 +1007,9 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1008,9 +1007,9 @@ class TestInvoice(TestInvoiceMixin):
self.assertEquals(movement_list[0].getQuantityUnit(), self.assertEquals(movement_list[0].getQuantityUnit(),
first_order_line.getQuantityUnit()) first_order_line.getQuantityUnit())
self.assertEquals(movement_list[1].getQuantityUnit(), self.assertEquals(movement_list[1].getQuantityUnit(),
second_order_line.getQuantityUnit()) second_order_line.getQuantityUnit())
class TestSaleInvoiceMixin(TestInvoiceMixin, class TestSaleInvoiceMixin(TestInvoiceMixin,
TestPackingListMixin, TestPackingListMixin,
TestAccountingRulesMixin, TestAccountingRulesMixin,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment