Commit 6743bf64 authored by Boxiang Sun's avatar Boxiang Sun

erp5_user_tutorial: Update test page user-Howto.Create.Organisations

parent bf92a258
<section class="master"> <section class="master">
<h1>How to Add Organisations</h1> <h1>How to Add Organisations</h1>
<img alt="Photo of the building of Z Company" src="http://img.erp5.cn/user-Howto.Add.Organisations.Front.Page.Building.Zcompany?format=png" title="Adding an organisation: Z Company"> <img alt="Photo of the building of Z Company" src="http://img.erp5.cn/user-Howto.Add.Organisations.Front.Page.Building.Zcompany?format=png" title="Adding an organisation: Z Company" />
<footer> <footer>by <a href="http://www.osoe-project.org/contact">OSOE Project</a>.</footer>
by <a href="http://www.osoe-project.org/contact">OSOE Project</a>.
</footer> <details open="open">
<details open="open"> <p>Now you know how to create the related organisation of a person when he/she is created. But we can also use the organisation creation function which is independent from the person creation function, but which is quite similar to the person creation process, to create and manage organisations in ERP5.</p>
<p>Now you know how to create the related organisation of a person when he/she is created. But we can also use the organisation creation function which is independent from the person creation function, but which is quite similar to the person creation process, to create and manage organisations in ERP5.</p><p>As we have seen from the previous tutorial, in ERP5, the creation of an organisation is the premise to create a person. Organisations are really important because people are linked to them. For example, when you sell a product or a service to a person, you indirectly sell it to his/her organisation. The organisation creation function is also very practical because of the attributes you are going to define the different organisations with: sometimes you might be looking for specific types of organisations, for instance, press agencies when you have an announcement to make. Now this is really easy with ERP5, just search for the organisations you defined as press agencies. You can also go deeper into detail: you might be looking for American press agencies if the product you want to communicate about is exclusively targeting the US market, then search in ERP5 for your American press agencies...</p><p>Now, let's see how you can create and define an organisation with the help of ERP5.</p>
</details> <p>As we have seen from the previous tutorial, in ERP5, the creation of an organisation is the premise to create a person. Organisations are really important because people are linked to them. For example, when you sell a product or a service to a person, you indirectly sell it to his/her organisation. The organisation creation function is also very practical because of the attributes you are going to define the different organisations with: sometimes you might be looking for specific types of organisations, for instance, press agencies when you have an announcement to make. Now this is really easy with ERP5, just search for the organisations you defined as press agencies. You can also go deeper into detail: you might be looking for American press agencies if the product you want to communicate about is exclusively targeting the US market, then search in ERP5 for your American press agencies...</p>
<test>
<table style="display: none;" class="test"> <p>Now, let&#39;s see how you can create and define an organisation with the help of ERP5.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr class="" style="opacity: 1;"> <tr>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/init_test_environment"&gt;init&lt;/span&gt;</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_viewTestMacroLibrary/macros/init_test_environment&quot; /&gt;</td>
</tr> </tr>
<tr class="" style="opacity: 1; z-index: 0;"> <tr>
<td>openAndWait</td> <td>openAndWait</td>
<td>${base_url}/Zuite_setUpOrganisationTest</td> <td>${base_url}/Zuite_setUpOrganisationTest</td>
<td></td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>verifyTextPresent</td> <td>verifyTextPresent</td>
<td>Init Ok</td> <td>Init Ok</td>
<td></td> <td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot; /&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user&quot; /&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Modules&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot; /&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
<tr class="" style="opacity: 1;"> <tr>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Organisations&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
<tr class="" style="opacity: 1;"> <tr>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user"&gt;Login As Functional Test User&lt;/span&gt;</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt;&lt;/tal:block&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded&quot; /&gt;</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;Z Company&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>click</td>
<td>//a[contains(text(), &quot;Z Company&quot;)]</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section>
<h1>Agenda</h1> <section>
<ul> <h1>Agenda</h1>
<ul>
<li>How to create an organisation</li> <li>How to create an organisation</li>
<li>How to validate the organisation</li> <li>How to validate the organisation</li>
<li>How to check the creation</li> <li>How to check the creation</li>
</ul> </ul>
<test> <test>
<table style="display: none;" class="test"> <table class="test" style="display: none;">
<tbody></tbody> <tbody>
</table> </tbody>
</test> </table>
</section><section class="illustration"> </test></section>
<h1>Example</h1>
<img alt="Add organisation in ERP5 example: Z Company" src="http://img.erp5.cn/user-Howto.Add.Organisations.Example.Zcompany?format=png" title="Add organisation in ERP5 example: Z Company"> <section class="illustration">
<details open="open"> <h1>Example</h1>
<p>This tutorial continues with the example of the organisation "Z Company", which is our client.</p> <img alt="Add organisation in ERP5 example: Z Company" src="http://img.erp5.cn/user-Howto.Add.Organisations.Example.Zcompany?format=png" title="Add organisation in ERP5 example: Z Company" />
</details> <details open="open">
<test> <p>This tutorial continues with the example of the organisation &quot;Z Company&quot;, which is our client.</p>
<table style="display: none;" class="test"> </details>
<tbody></tbody> <test>
</table> <table class="test" style="display: none;">
</test> <tbody>
</section><section class="screenshot"> </tbody>
<h1>Click on the “New” tab</h1> </table>
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.ERP5.Express.Menu.New.Screenshot?format=png" alt="Add organisation: Click on the 'New' tab" title="Add organisation: Click on the 'New' tab"> </test></section>
<details open="open">
<p>From the ERP5 home page you have reached after login, click on “New” in the tab menu, you will see the base area on the left. The base area gathers the person, organisation and currency creation functions. To create a new organisation, you just click on the link called "Organisations". But since we already created the Z Company when adding the Person John Doe in the tutorial "How to create Persons", we will go to the "Browse" tab instead to find our existing client "Z Company" and fill in the details.</p> <section class="screenshot">
</details> <h1>Click on the &ldquo;New&rdquo; tab</h1>
<test> <img alt="Add organisation: Click on the 'New' tab" src="http://img.erp5.cn/user-Howto.Add.Organisations.ERP5.Express.Menu.New.Screenshot?format=png" title="Add organisation: Click on the 'New' tab" />
<table style="display: none;" class="test"> <details open="open">
<p>From the ERP5 home page you have reached after login, click on &ldquo;New&rdquo; in the tab menu, you will see the base area on the left. The base area gathers the person, organisation and currency creation functions. To create a new organisation, you just click on the link called &quot;Organisations&quot;. But since we already created the Z Company when adding the Person John Doe in the tutorial &quot;How to create Persons&quot;, we will go to the &quot;Browse&quot; tab instead to find our existing client &quot;Z Company&quot; and fill in the details.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr> <tr>
<td>selectAndWait</td> <td>waitForElementPresent</td>
<td>//select[@name="select_module"]</td> <td>//p[@id="field_my_title"]</td>
<td>Organisations</td> <td></td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>click</td>
<td>//div[@id="breadcrumb"]/a[2]</td> <td>//input[@name=&quot;editable&quot;]</td>
<td>Organisations</td> <td>&nbsp;</td>
</tr> </tr>
<tr style="opacity: 1; z-index: 0;" class=""> <tr>
<td>clickAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//div[@class="listbox-title"]/a[1]</td>
<td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>Click on the "Browse" tab</h1> <section class="screenshot">
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.Browse.Organisations.Base.Screenshot?format=png" alt="Check organisation creation: Browse the 'Organisations' database" title="Check organisation creation: Browse the 'Organisations' database"> <h1>Click on the &quot;Browse&quot; tab</h1>
<details open="open"> <img alt="Check organisation creation: Browse the 'Organisations' database" src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.Browse.Organisations.Base.Screenshot?format=png" title="Check organisation creation: Browse the 'Organisations' database" />
<p>Click on the Browse Tab and then on "Organisations" to find our client Z Company.</p> <details open="open">
</details> <p>Click on the Browse Tab and then on &quot;Organisations&quot; to find our client Z Company.</p>
</section><section class="screenshot"> </details>
<h1>Click on "Z Company"</h1> </section>
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.3.Organisationline.Screenshot?format=png" alt="Check organisation creation (3): Check the organisation's line" title="Check organisation creation (3): Check the organisation's line">
<details open="open"> <section class="screenshot">
<p>You will find our client Z Company in the Organisation Module. Click on the line to open the organisation.</p> <h1>Click on &quot;Z Company&quot;</h1>
</details> <img alt="Check organisation creation (3): Check the organisation's line" src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.3.Organisationline.Screenshot?format=png" title="Check organisation creation (3): Check the organisation's line" />
<test> <details open="open">
<table style="display: none;" class="test"> <p>You will find our client Z Company in the Organisation Module. Click on the line to open the organisation.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr>
<td>clickAndWait</td>
<td>//td[@class='listbox-table-data-cell']//a[text()='Z Company']</td>
<td></td>
</tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>Fill the “view” tab and save</h1> <section class="screenshot">
<img alt="Add organisations: Fill the 'View' page and save" src="http://img.erp5.cn/user-Howto.Add.Organisations.View.Save?format=png" title="Add organisations: Fill the 'View' page and save"> <h1>Fill the &ldquo;view&rdquo; tab and save</h1>
<details open="open"> <img alt="Add organisations: Fill the 'View' page and save" src="http://img.erp5.cn/user-Howto.Add.Organisations.View.Save?format=png" title="Add organisations: Fill the 'View' page and save" />
<p>You will now be led to the details page of the Z Company page, which we have already created. As you can see, there are many fields to fill, which allows you to be really precise about the different organisations stored in ERP5. You just have to enter its detail information and then save it.</p><p>Summary: we created a person named John Doe, who is the marketing manager of Z Company, one of the VIFIB clients. If you remember well, the rganisation Z Company had been created directly through the person creation module (cf “How to add people” tutorial) by "Add Organisation", but had not been taken care of.Now in the view tab, we are going to enter some details about the organisation Z Company: Z Company Ltd is an international electricity supplier, which has been using the services of VIFIB for quite a long time as a client. Here is the address of the Company: 12 Zorro Street, 93210 Beverly Hills.</p><p>After you have filled the “view” tab, save the data by clicking on the disk symbol on the right of the screen. </p> <details open="open">
<p>But please note that the organisations can also be created through the organisation creation module from the New tab on the ERP5 home page, as you have seen in the previous tutorial “How to add persons”.</p> <p>You will now be led to the details page of the Z Company page, which we have already created. As you can see, there are many fields to fill, which allows you to be really precise about the different organisations stored in ERP5. You just have to enter its detail information and then save it.</p>
</details>
<test> <p>Summary: we created a person named John Doe, who is the marketing manager of Z Company, one of the VIFIB clients. If you remember well, the rganisation Z Company had been created directly through the person creation module (cf &ldquo;How to add people&rdquo; tutorial) by &quot;Add Organisation&quot;, but had not been taken care of.Now in the view tab, we are going to enter some details about the organisation Z Company: Z Company Ltd is an international electricity supplier, which has been using the services of VIFIB for quite a long time as a client. Here is the address of the Company: 12 Zorro Street, 93210 Beverly Hills.</p>
<table style="display: none;" class="test">
<p>After you have filled the &ldquo;view&rdquo; tab, save the data by clicking on the disk symbol on the right of the screen.</p>
<p>But please note that the organisations can also be created through the organisation creation module from the New tab on the ERP5 home page, as you have seen in the previous tutorial &ldquo;How to add persons&rdquo;.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr class="" style="opacity: 1; z-index: 0;"> <tr>
<td>waitForElementPresent</td>
<td>//input[@name=&quot;field_my_title&quot;]</td>
<td>&nbsp;</td>
</tr>
<tr style="opacity: 1; z-index: 0;">
<td>type</td> <td>type</td>
<td>//input[@name="field_my_title"]</td> <td>//input[@name=&quot;field_my_title&quot;]</td>
<td>Z Company</td> <td>Z Company</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name="field_my_corporate_name"]</td> <td>//input[@name=&quot;field_my_corporate_name&quot;]</td>
<td>Z Company</td> <td>Z Company</td>
</tr> </tr>
<tr> <tr>
<td>select</td> <td>select</td>
<td>//select[@name="subfield_field_my_role_list_default:list"]</td> <td>//select[@name=&quot;subfield_field_my_role_list_default:list&quot;]</td>
<td>Client</td> <td>Client</td>
</tr> </tr>
<tr> <tr>
<td>select</td> <td>select</td>
<td>//select[@name="field_my_function"]</td> <td>//select[@name=&quot;field_my_function&quot;]</td>
<td>Sales</td> <td>Sales</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//textarea[@name="field_my_default_address_street_address"]</td> <td>//textarea[@name=&quot;field_my_default_address_street_address&quot;]</td>
<td>12 Zorro Street</td> <td>12 Zorro Street</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name="field_my_default_address_city"]</td> <td>//input[@name=&quot;field_my_default_address_city&quot;]</td>
<td>Beverly Hills</td> <td>Beverly Hills</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name="field_my_default_address_zip_code"]</td> <td>//input[@name=&quot;field_my_default_address_zip_code&quot;]</td>
<td>90210</td> <td>90210</td>
</tr> </tr>
<tr> <tr>
<td>select</td> <td>select</td>
<td>//select[@name="field_my_default_address_region"]</td> <td>//select[@name=&quot;field_my_default_address_region&quot;]</td>
<td>Brazil</td> <td>Brazil</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name="field_my_default_email_coordinate_text"]</td> <td>//input[@name=&quot;field_my_default_email_coordinate_text&quot;]</td>
<td>info@zcompany.com</td> <td>info@zcompany.com</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td>type</td>
<td>//input[@name="field_default_telephone_my_default_telephone_coordinate_text"]</td> <td>//input[@name=&quot;field_default_telephone_my_default_telephone_coordinate_text&quot;]</td>
<td>+55(0)22 2222 2222</td> <td>+55(0)22 2222 2222</td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/save&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>//button[@name="Base_edit:method"]</td>
<td></td>
</tr>
<tr>
<td>verifyTextNotPresent</td>
<td>Input data has errors. Please look at the error messages below.</td>
<td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>Fill the "Details" tab</h1> <section class="screenshot">
<img title="Add organisations: Fill the 'Details' tab" src="http://img.erp5.cn/user-Howto.Add.Organisations.Details.Tab?format=png" alt="Add organisations: Fill the 'Details' tab"> <h1>Fill the &quot;Details&quot; tab</h1>
<details open="open"> <img alt="Add organisations: Fill the 'Details' tab" src="http://img.erp5.cn/user-Howto.Add.Organisations.Details.Tab?format=png" title="Add organisations: Fill the 'Details' tab" />
<p>In "Details" tab, you can fill in the details and save the changes.</p> <details open="open">
</details> <p>In &quot;Details&quot; tab, you can fill in the details and save the changes.</p>
<test> </details>
<table style="display: none;" class="test"> <test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr> <tr>
<td>clickAndWait</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Details&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>link=Details</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//input[@name="field_my_social_capital"]</td>
<td>1000000</td>
</tr> </tr>
</tbody>
</table>
</test></section>
<section class="screenshot">
<h1>About the other tabs</h1>
<img alt="Add organisations: Other tabs in the 'Details' page" src="http://img.erp5.cn/user-Howto.Add.Organisations.Details.Page.Other.Tabs.Screenshot?format=png" title="Add organisations: Other tabs in the 'Details' page" />
<details open="open">
<p>Similar to creating people, there are some tabs that will automatically be updated by ERP5, such as &ldquo;Transactions&rdquo;, &ldquo;Financial informations&rdquo; and &ldquo;Documents&rdquo;. The application will update those tabs whenever necessary, for example, to trace a transaction that occurred between VIFIB and the client Z Company.</p>
<p>When you have entered all information of the created company and saved it, it is time to validate the organisation, which works exactly the same way as person&#39;s validation.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
</tbody>
</table>
</test></section>
<section class="screenshot">
<h1>How to Validate an Organisation (1)</h1>
<img alt="Validate new organisation (1): Click on the 'Action' tab" src="http://img.erp5.cn/user-Howto.Add.Organisations.Validate.1.Action.Screenshot?format=png" title="Validate new organisation (1): Click on the 'Action' tab" />
<details open="open">
<p>Click on the &ldquo;Action&rdquo; item list.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
</tbody>
</table>
</test></section>
<section class="screenshot">
<h1>How to Validate an Organisation (2)</h1>
<img alt="Validate new organisation (2): Click on 'Validate'" src="http://img.erp5.cn/user-Howto.Add.Organisations.Validate.2.Validate.Screenshot?format=png" title="Validate new organisation (2): Click on 'Validate'" />
<details open="open">
<p>Click on &ldquo;Validate&rdquo;.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody>
<tr> <tr>
<td>type</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Validate&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>//input[@name="subfield_field_my_start_date_year"]</td>
<td>2007</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//input[@name="subfield_field_my_start_date_month"]</td>
<td>01</td>
</tr> </tr>
<tr> <tr>
<td>type</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog&quot;&gt; &lt;/tal:block&gt;</td>
<td>//input[@name="subfield_field_my_start_date_day"]</td>
<td>01</td>
</tr> </tr>
</tbody>
</table>
</test>
</section><section class="screenshot">
<h1>About the other tabs</h1>
<img title="Add organisations: Other tabs in the 'Details' page" alt="Add organisations: Other tabs in the 'Details' page" src="http://img.erp5.cn/user-Howto.Add.Organisations.Details.Page.Other.Tabs.Screenshot?format=png">
<details open="open">
<p>Similar to creating people, there are some tabs that will automatically be updated by ERP5, such as “Transactions”, “Financial informations” and “Documents”. The application will update those tabs whenever necessary, for example, to trace a transaction that occurred between VIFIB and the client Z Company.</p><p>When you have entered all information of the created company and saved it, it is time to validate the organisation, which works exactly the same way as person's validation.</p>
</details>
<test>
<table style="display: none;" class="test">
<tbody></tbody>
</table>
</test>
</section><section class="screenshot">
<h1>How to Validate an Organisation (1)</h1>
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Validate.1.Action.Screenshot?format=png" title="Validate new organisation (1): Click on the 'Action' tab" alt="Validate new organisation (1): Click on the 'Action' tab">
<details open="open">
<p>Click on the “Action” item list.</p>
</details>
<test>
<table style="display: none;" class="test">
<tbody>
<tr> <tr>
<td>selectAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//select[@name="select_action"]</td>
<td>Validate</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>How to Validate an Organisation (2)</h1> <section class="screenshot">
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Validate.2.Validate.Screenshot?format=png" title="Validate new organisation (2): Click on 'Validate'" alt="Validate new organisation (2): Click on 'Validate'"> <h1>How to Validate an Organisation (3)</h1>
<details open="open"> <img alt="Validate new organisation (3): Check the update status" src="http://img.erp5.cn/user-Howto.Add.Organisations.Validate.3.Update.Status.Screenshot?format=png" title="Validate new organisation (3): Check the update status" type="image/svg+xml" />
<p>Click on “Validate”.</p> <details open="open">
</details> <p>Check the update status.</p>
<test>
<table style="display: none;" class="test"> <p>When everything has been done correctly (i.e. you have entered the data, saved and validated the organisation you created), it is time to check that Z Company appears in the organisation list of ERP5. Once again, this works the same way as for creating a person.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr> <tr>
<td>clickAndWait</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;View&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>//button[@id="dialog_submit_button"]</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//li[@class="selected"]/a/span</td>
<td>Details</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td>verifyText</td>
<td>//div[@id="transition_message"]</td> <td>//p[@id=&quot;field_my_translated_validation_state_title&quot;]</td>
<td>Status changed.</td> <td>Validated</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>How to Validate an Organisation (3)</h1> <section class="screenshot">
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Validate.3.Update.Status.Screenshot?format=png" title="Validate new organisation (3): Check the update status" alt="Validate new organisation (3): Check the update status" type="image/svg+xml"> <h1>How to Check the Creation (1)</h1>
<details open="open"> <img alt="Check organisation creation (1): Click on the 'Modules' tab" src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.1.Modules.Screenshot?format=png" title="Check organisation creation (1): Click on the 'Modules' tab" />
<p>Check the update status.</p><p>When everything has been done correctly (i.e. you have entered the data, saved and validated the organisation you created), it is time to check that Z Company appears in the organisation list of ERP5. Once again, this works the same way as for creating a person.</p> <details open="open">
</details> <p>To check the new organisation, you will have to navigate to the list of existing organisations.</p>
<test>
<table style="display: none;" class="test"> <p>Click on the &ldquo;ERP5 Modules&rdquo; item list at the top of the page and click on &ldquo;organisations&rdquo;, this will lead you to the organisations&#39; list.</p>
</details>
<test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr> <tr>
<td>clickAndWait</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Modules&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>link=View</td>
<td></td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//div[@title="The current state of the document."]/div[1]</td>
<td>Validated</td>
</tr>
<tr class="" style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>How to Check the Creation (1)</h1> <section class="screenshot">
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.1.Modules.Screenshot?format=png" alt="Check organisation creation (1): Click on the 'Modules' tab" title="Check organisation creation (1): Click on the 'Modules' tab"> <h1>How to Check the Creation (2)</h1>
<details open="open"> <img alt="Check orgaisation creation (2): Click on 'Organisations'" src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.2.Organisations.Screenshot?format=png" title="Check orgaisation creation (2): Click on 'Organisations'" type="image/svg+xml" />
<p>To check the new organisation, you will have to navigate to the list of existing organisations.</p><p>Click on the “ERP5 Modules” item list at the top of the page and click on “organisations”, this will lead you to the organisations' list.</p> <details open="open">
</details> <p>Now using the hint circled in green on the picture, check that you are in the organisations&#39; list. If everything worked correctly, the hint should display: ERP5 / Organisations. This means that you are located in the organisation list.</p>
<test> </details>
<table style="display: none;" class="test"> <test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr> <tr>
<td>openAndWait</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Organisations&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>${base_url}/organisation_module/view</td>
<td></td>
</tr> </tr>
</tbody>
</table>
</test>
</section><section class="screenshot">
<h1>How to Check the Creation (2)</h1>
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.2.Organisations.Screenshot?format=png" type="image/svg+xml" alt="Check orgaisation creation (2): Click on 'Organisations'" title="Check orgaisation creation (2): Click on 'Organisations'">
<details open="open">
<p>Now using the hint circled in green on the picture, check that you are in the organisations' list. If everything worked correctly, the hint should display: ERP5 / Organisations. This means that you are located in the organisation list.</p>
</details>
<test>
<table style="display: none;" class="test">
<tbody>
<tr> <tr>
<td>verifyText</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//div[@id="breadcrumb"]/a[1]</td>
<td>ERP5</td>
</tr> </tr>
<tr> <tr>
<td>verifyText</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>//div[@id="breadcrumb"]/a[2]</td>
<td>Organisations</td>
</tr> </tr>
<tr class="" style="opacity: 1;"> <tr>
<td colspan="3">&lt;tal:block tal:content="structure python: here.Zuite_generateListboxBrowsing(listbox_selection=(['title', here.Zuite_getHowToInfo()['organisation_howto_organisation_title']],), enter_object=True)"/&gt;</td> <td>waitForElementPresent</td>
<td>//a[contains(text(), &quot;Z Company&quot;)]</td>
<td>&nbsp;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>How to Check the Creation (3)</h1> <section class="screenshot">
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.3.Organisationline.Screenshot?format=png" alt="Check organisation creation (3): Check the organisation's line" title="Check organisation creation (3): Check the organisation's line"> <h1>How to Check the Creation (3)</h1>
<details open="open"> <img alt="Check organisation creation (3): Check the organisation's line" src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.3.Organisationline.Screenshot?format=png" title="Check organisation creation (3): Check the organisation's line" />
<p>The final step is to check that Z Company is in the list. We can see that the creation was successful because Z Company has been added to the list. If you want to see or modify the details of any organisation, just click on its line to open its dedicated page.</p> <details open="open">
</details> <p>The final step is to check that Z Company is in the list. We can see that the creation was successful because Z Company has been added to the list. If you want to see or modify the details of any organisation, just click on its line to open its dedicated page.</p>
<test> </details>
<table style="display: none;" class="test"> <test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr>
<td>verifyText</td>
<td>//div[@id="breadcrumb"]/a[3]</td>
<td>Z Company</td>
</tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section><section class="screenshot">
<h1>Use "Browse" tab</h1> <section class="screenshot">
<img src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.Browse.Organisations.Base.Screenshot?format=png" alt="Check organisation creation: Browse the 'Organisations' database" title="Check organisation creation: Browse the 'Organisations' database"> <h1>Use &quot;Browse&quot; tab</h1>
<details open="open"> <img alt="Check organisation creation: Browse the 'Organisations' database" src="http://img.erp5.cn/user-Howto.Add.Organisations.Check.Creation.Browse.Organisations.Base.Screenshot?format=png" title="Check organisation creation: Browse the 'Organisations' database" />
<p>You can also use the "Browse" tab in the home page to check the organisations stored in your ERP5 database. Just click on “Organisations” in the “Base”module, which is the module that gathers “Currencies”, “Organisations” and“Persons”.</p> <details open="open">
</details> <p>You can also use the &quot;Browse&quot; tab in the home page to check the organisations stored in your ERP5 database. Just click on &ldquo;Organisations&rdquo; in the &ldquo;Base&rdquo;module, which is the module that gathers &ldquo;Currencies&rdquo;, &ldquo;Organisations&rdquo; and&ldquo;Persons&rdquo;.</p>
<test> </details>
<table style="display: none;" class="test"> <test>
<table class="test" style="display: none;">
<tbody> <tbody>
<tr class="" style="opacity: 1;"> <tr>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/login_as_manager"&gt;Login As Manager&lt;/span&gt;</td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_manager&quot;&gt;Login As Manager&lt;/span&gt;</td>
</tr>
<tr>
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr> </tr>
<tr> <tr>
<td>openAndWait</td> <td>openAndWait</td>
<td>${base_url}/Zuite_tearDownOrganisationTest</td> <td>${base_url}/Zuite_tearDownOrganisationTest</td>
<td></td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td>verifyTextPresent</td> <td>verifyTextPresent</td>
<td>Clean Ok</td> <td>Clean Ok</td>
<td></td> <td>&nbsp;</td>
</tr>
<tr class="" style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</test> </test></section>
</section>
\ No newline at end of file
...@@ -321,11 +321,13 @@ ...@@ -321,11 +321,13 @@
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -464,17 +466,352 @@ ...@@ -464,17 +466,352 @@
</value> </value>
</item> </item>
</dictionary> </dictionary>
</list> <dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.17444.48467.46967</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615420234.86</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.40310.38083.45602</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615420813.51</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.40320.14758.33604</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615422912.25</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.40355.13386.23193</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615424831.4</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.40387.12454.12492</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615424911.95</float>
<string>UTC</string>
</tuple> </tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.40388.34904.48145</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615475240.82</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>990.41227.22745.23876</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass> <reference id="4.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1615475554.36</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</value>
</item>
<item>
<key> <string>_next</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value>
</item>
<item>
<key> <string>_prev</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tail_count</string> </key>
<value> <int>16</int> </value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="5" aka="AAAAAAAAAAU="> <record id="5" aka="AAAAAAAAAAU=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -610,16 +947,20 @@ ...@@ -610,16 +947,20 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
</tuple> </value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="6" aka="AAAAAAAAAAY="> <record id="6" aka="AAAAAAAAAAY=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -1342,7 +1683,21 @@ ...@@ -1342,7 +1683,21 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
</tuple> </value>
</item>
<item>
<key> <string>_next</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>_prev</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
<record id="7" aka="AAAAAAAAAAc="> <record id="7" aka="AAAAAAAAAAc=">
......
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