Commit 1c9da58c authored by Jérome Perrin's avatar Jérome Perrin

don't set base_amount in test_createEditablePaySheetLine, it's not required.

also explain why we need cell in the model line for editable model line to work


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21264 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68a23a97
......@@ -1159,10 +1159,10 @@ class TestPayroll(TestPayrollMixin):
portal_type='Pay Sheet Model Line',
resource_value=self.labour,
variation_category_list=['tax_category/employee_share'],
base_amount_list=['base_salary'],
editable=1)
# Note that for now it is required that the editable line contains at least
# one cell
# Note that it is required that the editable line contains at least one
# cell, to know which tax_category is used (employee share or employer
# share).
line.updateCellRange(base_id='movement')
cell = line.newCell('tax_category/employee_share',
portal_type='Pay Sheet Cell',
......
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