Commit f077fa09 authored by Alexandre Boeglin's avatar Alexandre Boeglin

the rule needs to be validated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17432 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2267a9f4
...@@ -301,6 +301,10 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -301,6 +301,10 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
product_barebone_region_africa_cell = product_barebone_region_africa_cell, product_barebone_region_africa_cell = product_barebone_region_africa_cell,
) )
def stepValidateSaleInvoiceTransaction(self, sequence, **kw) :
"""validates the sale invoice transaction rule"""
sequence.get('invoice_transaction_rule').validate()
def stepCreateNotebookFranceCell(self, sequence, **kw): def stepCreateNotebookFranceCell(self, sequence, **kw):
""" creates the content of product_notebook_region_france_cell """ """ creates the content of product_notebook_region_france_cell """
# create content in the notebook / france cell # create content in the notebook / france cell
...@@ -1406,6 +1410,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1406,6 +1410,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
self.playSequence(""" self.playSequence("""
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepTic stepTic
stepCheckAddPredicate stepCheckAddPredicate
stepTic stepTic
...@@ -1432,6 +1437,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1432,6 +1437,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepTic stepTic
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateProducts stepCreateProducts
stepTic stepTic
stepCreateDummyInvoice stepCreateDummyInvoice
...@@ -1460,6 +1466,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1460,6 +1466,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1491,6 +1498,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1491,6 +1498,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1521,6 +1529,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1521,6 +1529,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1551,6 +1560,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1551,6 +1560,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1584,6 +1594,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1584,6 +1594,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1615,6 +1626,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1615,6 +1626,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1646,6 +1658,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1646,6 +1658,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1679,6 +1692,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1679,6 +1692,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1711,6 +1725,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1711,6 +1725,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateProducts stepCreateProducts
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepTic stepTic
stepClearSimulation stepClearSimulation
...@@ -1749,6 +1764,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -1749,6 +1764,7 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
stepCreateSaleInvoiceTransactionRule stepCreateSaleInvoiceTransactionRule
stepTic stepTic
stepUpdateSaleInvoiceTransactionRuleMatrix stepUpdateSaleInvoiceTransactionRuleMatrix
stepValidateSaleInvoiceTransaction
stepTic stepTic
stepCreateNotebookFranceCell stepCreateNotebookFranceCell
stepCreateBareboneFranceCell stepCreateBareboneFranceCell
......
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