Commit 872157d4 authored by Julien Muchembled's avatar Julien Muchembled

Update testDeliveryBuilderToSupportMultipleLines WRT changes in...

Update testDeliveryBuilderToSupportMultipleLines WRT changes in TestPackingListMixin._solveDivergence

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 438237e5
...@@ -200,21 +200,17 @@ return context.getPortalObject().portal_catalog(portal_type='Sale Invoice Transa ...@@ -200,21 +200,17 @@ return context.getPortalObject().portal_catalog(portal_type='Sale Invoice Transa
delivery_builder = getattr(self.portal.portal_deliveries, self.delivery_builder_id) delivery_builder = getattr(self.portal.portal_deliveries, self.delivery_builder_id)
delivery_builder.delivery_cell_separate_order = ('calculateAddQuantity',) delivery_builder.delivery_cell_separate_order = ('calculateAddQuantity',)
def stepAdoptPrevisionPackingListQuantity(self,sequence=None, sequence_list=None): stepAdoptPrevisionPackingListQuantity = \
document = sequence.get('packing_list') TestSaleInvoiceMixin.stepAdoptPrevisionQuantity
self._solveDivergence(document, 'quantity', 'adopt')
def stepAcceptDecisionPackingListQuantity(self,sequence=None, sequence_list=None): stepAcceptDecisionPackingListQuantity = \
document = sequence.get('packing_list') TestSaleInvoiceMixin.stepAcceptDecisionQuantity
self._solveDivergence(document, 'quantity', 'accept')
def stepAdoptPrevisionInvoiceQuantity(self,sequence=None, sequence_list=None): stepAdoptPrevisionInvoiceQuantity = \
document = sequence.get('invoice') TestSaleInvoiceMixin.stepAdoptPrevisionQuantityInvoice
self._solveDivergence(document, 'quantity', 'adopt')
def stepAcceptDecisionInvoiceQuantity(self,sequence=None, sequence_list=None): stepAcceptDecisionInvoiceQuantity = \
document = sequence.get('invoice') TestSaleInvoiceMixin.stepAcceptDecisionQuantityInvoice
self._solveDivergence(document, 'quantity', 'accept')
class TestNestedLine(TestNestedLineMixin, ERP5TypeTestCase): class TestNestedLine(TestNestedLineMixin, ERP5TypeTestCase):
......
...@@ -938,6 +938,11 @@ class TestInvoiceMixin(TestPackingListMixin): ...@@ -938,6 +938,11 @@ class TestInvoiceMixin(TestPackingListMixin):
self._solveDivergence(invoice, 'start_date', 'Unify Solver', self._solveDivergence(invoice, 'start_date', 'Unify Solver',
value=invoice.getStartDate()) value=invoice.getStartDate())
def stepAdoptPrevisionQuantityInvoice(self,sequence=None, sequence_list=None):
invoice = sequence.get('invoice')
self.portal.pdb()
self._solveDivergence(invoice, 'quantity', 'Adopt Solver')
def stepAcceptDecisionQuantityInvoice(self,sequence=None, sequence_list=None): def stepAcceptDecisionQuantityInvoice(self,sequence=None, sequence_list=None):
invoice = sequence.get('invoice') invoice = sequence.get('invoice')
self._solveDivergence(invoice, 'quantity', 'Accept Solver') self._solveDivergence(invoice, 'quantity', 'Accept Solver')
......
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