Changeset 12216 for main


Ignore:
Timestamp:
13 Dec 2014, 17:28:29 (10 years ago)
Author:
Henrik Bettermann
Message:

Do not allow to add contract without editing contract title.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12215 r12216  
    11561156    pnav = 4
    11571157
     1158    form_fields = grok.AutoFields(IContract)
     1159
    11581160    @property
    11591161    def selectable_contypes(self):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/contractaddform.pt

    r12112 r12216  
    1717        </td>
    1818      </tr>
     19      <tal:widgets content="structure provider:widgets" />
    1920    </tbody>
    2021  </table>
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py

    r12215 r12216  
    11411141        self.browser.getControl("Add contract").click()
    11421142        self.browser.getControl(name="contype").value = ['SampleContract']
     1143        self.browser.getControl(name="form.title").value = 'My Sample Contract'
    11431144        self.browser.getControl("Add contract").click()
    11441145        self.assertTrue('Sample Contract added.' in self.browser.contents)
     
    12041205        self.browser.getControl("Add contract").click()
    12051206        self.browser.getControl(name="contype").value = ['SampleContract']
     1207        self.browser.getControl(name="form.title").value = 'My Sample Contract'
    12061208        self.browser.getControl("Add contract").click()
    12071209        self.assertTrue('Sample Contract added.' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.