<?xml version="1.0" encoding="iso-8859-1"?>

<form>
  <title>Facture vente</title>
  <name>sales_order_view</name>
  <action>base_edit</action>
  <enctype>multipart/form-data</enctype>
  <method>POST</method>
  <pt>form_view</pt>

  <groups>
    <group>
      <title>left</title>
      <fields>

      <field><id>my_id</id> <type>StringField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <max_length></max_length>
          <required type="int">1</required>
          <title>Identifiant</title>
          <truncate type="int">0</truncate>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      <field><id>my_source_section</id> <type>ListField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <first_item type="int">0</first_item>
          <hidden type="int">0</hidden>
          <items type="list">[]</items>
          <required type="int">0</required>
          <size type="int">1</size>
          <title>Société</title>
        </values>
        <tales>
          <items>python:here.portal_categories.group.Coramy.getCategoryChildIdItemList(base=1,display_none_category=1)</items>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="unknown_selection">You selected an item that was not in the list.</message>
        </messages>
      </field>
      <field><id>my_reference</id> <type>StringField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <max_length></max_length>
          <required type="int">0</required>
          <title>Numéro de facture</title>
          <truncate type="int">0</truncate>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      <field><id>my_description</id> <type>TextAreaField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <height type="int">3</height>
          <hidden type="int">0</hidden>
          <max_length></max_length>
          <max_linelength></max_linelength>
          <max_lines></max_lines>
          <required type="int">0</required>
          <title>Description</title>
          <width type="int">40</width>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_many_lines">You entered too many lines.</message>
          <message name="line_too_long">A line was too long.</message>
          <message name="too_long">You entered too many characters.</message>
        </messages>
      </field>
      <field><id>my_source_administration_title</id> <type>RelationStringField</type>
        <values>
          <alternate_name></alternate_name>
          <base_category>source_administration</base_category>
          <catalog_index>Title</catalog_index>
          <css_class></css_class>
          <default></default>
          <default_module>person</default_module>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">20</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <jump_method>base_jump_relation</jump_method>
          <max_length></max_length>
          <portal_type type="list">[('Person', 'Person')]</portal_type>
          <required type="int">0</required>
          <title>Gestionaire</title>
          <truncate type="int">0</truncate>
          <update_method>base_update_relation</update_method>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      <field><id>my_start_date</id> <type>DateTimeField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <date_only type="int">1</date_only>
          <date_separator>/</date_separator>
          <default_now type="int">0</default_now>
          <description></description>
          <external_validator></external_validator>
          <hidden type="int">0</hidden>
          <input_order>dmy</input_order>
          <input_style>text</input_style>
          <required type="int">0</required>
          <time_separator>:</time_separator>
          <title>Date de facture</title>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_datetime">You did not enter a valid date and time.</message>
          <message name="datetime_out_of_range">The date and time you entered were out of range.</message>
        </messages>
      </field>
      <field><id>my_price_currency</id> <type>ListField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <first_item type="int">0</first_item>
          <hidden type="int">0</hidden>
          <items type="list">[]</items>
          <required type="int">0</required>
          <size type="int">1</size>
          <title>Devise</title>
        </values>
        <tales>
          <items>python:[('','')]+map(lambda x:(x.id,'devise/%s' %x.id),here.devise.objectValues())</items>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="unknown_selection">You selected an item that was not in the list.</message>
        </messages>
      </field>
      <field><id>simulation_state</id> <type>StringField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">20</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <max_length></max_length>
          <required type="int">0</required>
          <title>Etat</title>
          <truncate type="int">0</truncate>
        </values>
        <tales>
          <default>python:here.portal_workflow.getInfoFor(here, 'simulation_state')</default>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      </fields>
    </group>
    <group>
      <title>right</title>
      <fields>

      <field><id>my_causality_id</id> <type>RelationStringField</type>
        <values>
          <alternate_name></alternate_name>
          <base_category>causality</base_category>
          <catalog_index>id</catalog_index>
          <css_class></css_class>
          <default></default>
          <default_module>livraison_vente</default_module>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <jump_method>base_jump_relation</jump_method>
          <max_length></max_length>
          <portal_type type="list">[('Sales Packing List', 'Sales Packing List')]</portal_type>
          <required type="int">0</required>
          <title>N° livraison</title>
          <truncate type="int">0</truncate>
          <update_method>base_update_relation</update_method>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      <field><id>my_destination_title</id> <type>RelationStringField</type>
        <values>
          <alternate_name></alternate_name>
          <base_category>destination</base_category>
          <catalog_index>Title</catalog_index>
          <css_class></css_class>
          <default></default>
          <default_module>organisation</default_module>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">20</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <jump_method>base_jump_relation</jump_method>
          <max_length></max_length>
          <portal_type type="list">[('Organisation', 'Organisation')]</portal_type>
          <required type="int">0</required>
          <title>Livrer à</title>
          <truncate type="int">0</truncate>
          <update_method>base_update_relation</update_method>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      <field><id>my_destination_section_title</id> <type>RelationStringField</type>
        <values>
          <alternate_name></alternate_name>
          <base_category>destination</base_category>
          <catalog_index>Title</catalog_index>
          <css_class></css_class>
          <default></default>
          <default_module>organisation</default_module>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">20</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <jump_method>base_jump_relation</jump_method>
          <max_length></max_length>
          <portal_type type="list">[('Organisation', 'Organisation')]</portal_type>
          <required type="int">0</required>
          <title>Pour le compte de</title>
          <truncate type="int">0</truncate>
          <update_method>base_update_relation</update_method>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      <field><id>my_value_added_tax_recoverable</id> <type>CheckBoxField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default type="int">0</default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <title>Soumis à la T.V.A.</title>
        </values>
        <tales>
          <default>here/getValueAddedTaxRecoverable</default>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
        </messages>
      </field>
      <field><id>my_value_added_tax_ratio</id> <type>FloatField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <required type="int">0</required>
          <title>Taux de TVA</title>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_float">You did not enter a floating point number.</message>
        </messages>
      </field>
      <field><id>my_incoterm</id> <type>ListField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <first_item type="int">0</first_item>
          <hidden type="int">0</hidden>
          <items type="list">[]</items>
          <required type="int">0</required>
          <size type="int">1</size>
          <title>Incoterm</title>
        </values>
        <tales>
          <items>python:here.portal_categories.incoterm.getCategoryChildItemList(display_id = 'getTitle', display_none_category=1)</items>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="unknown_selection">You selected an item that was not in the list.</message>
        </messages>
      </field>
      <field><id>my_delivery_mode</id> <type>ListField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <first_item type="int">0</first_item>
          <hidden type="int">0</hidden>
          <items type="list">[]</items>
          <required type="int">0</required>
          <size type="int">1</size>
          <title>Mode de livraison</title>
        </values>
        <tales>
          <items>here/portal_categories/delivery_mode/getFormItemList</items>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="unknown_selection">You selected an item that was not in the list.</message>
        </messages>
      </field>
      </fields>
    </group>
    <group>
      <title>center</title>
      <fields>

      <field><id>my_comment</id> <type>TextAreaField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <external_validator></external_validator>
          <extra></extra>
          <height type="int">3</height>
          <hidden type="int">0</hidden>
          <max_length></max_length>
          <max_linelength></max_linelength>
          <max_lines></max_lines>
          <required type="int">0</required>
          <title>Commentaires</title>
          <width type="int">80</width>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_many_lines">You entered too many lines.</message>
          <message name="line_too_long">A line was too long.</message>
          <message name="too_long">You entered too many characters.</message>
        </messages>
      </field>
      <field><id>total_ht</id> <type>FloatField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">1</hidden>
          <required type="int">0</required>
          <title>Total H.T.</title>
        </values>
        <tales>
          <title>python:'Total H.T. : %.2f' % here.getTotalPrice()</title>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_float">You did not enter a floating point number.</message>
        </messages>
      </field>
      <field><id>montant_taxable</id> <type>FloatField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">1</hidden>
          <required type="int">0</required>
          <title>Montant taxable</title>
        </values>
        <tales>
          <title>python:'Montant taxable : %.2f' % here.Invoice_zGetTotalNetPrice()</title>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_float">You did not enter a floating point number.</message>
        </messages>
      </field>
      <field><id>vat</id> <type>FloatField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">1</hidden>
          <required type="int">0</required>
          <title>TVA</title>
        </values>
        <tales>
          <title>python:'TVA :  %.2f' % here.Invoice_zGetTotalVat()</title>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_float">You did not enter a floating point number.</message>
        </messages>
      </field>
      <field><id>total_price</id> <type>FloatField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">10</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">1</hidden>
          <required type="int">0</required>
          <title>Net à payer</title>
        </values>
        <tales>
          <title>python:'Net à payer :  %.2f' % (here.Invoice_zGetTotalVat() + here.Invoice_zGetTotalNetPrice())</title>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_float">You did not enter a floating point number.</message>
        </messages>
      </field>
      <field><id>due_date</id> <type>DateTimeField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <date_only type="int">1</date_only>
          <date_separator>/</date_separator>
          <default_now type="int">0</default_now>
          <description></description>
          <external_validator></external_validator>
          <hidden type="int">1</hidden>
          <input_order>dmy</input_order>
          <input_style>text</input_style>
          <required type="int">0</required>
          <time_separator>:</time_separator>
          <title>Date d'échéance</title>
        </values>
        <tales>
          <title>python:'Date d échéance : ' + here.Invoice_zGetDueDate().strftime('%d/%m/%Y')</title>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="not_datetime">You did not enter a valid date and time.</message>
          <message name="datetime_out_of_range">The date and time you entered were out of range.</message>
        </messages>
      </field>
      </fields>
    </group>
    <group>
      <title>bottom</title>
      <fields>

      <field><id>listbox</id> <type>ListBox</type>
        <values>
          <all_columns type="list">[]</all_columns>
          <all_editable_columns type="list">[]</all_editable_columns>
          <alternate_name></alternate_name>
          <columns type="list">[('id', 'Ligne'), ('getResourceRelativeUrl', 'Produit'), ('description', 'Description'), ('total_quantity', 'Quantit\xe9 totale'), ('total_price', 'Montant total')]</columns>
          <css_class></css_class>
          <default></default>
          <default_params type="list">[]</default_params>
          <description></description>
          <domain_root_list type="list">[]</domain_root_list>
          <domain_tree type="int">0</domain_tree>
          <editable_columns type="list">[('description', 'Description')]</editable_columns>
          <external_validator></external_validator>
          <global_attributes type="list">[]</global_attributes>
          <hidden type="int">0</hidden>
          <lines type="int">10</lines>
          <list_action>folder_contents</list_action>
          <list_method type="method">searchFolder</list_method>
          <meta_types type="list">[]</meta_types>
          <portal_types type="list">[('Invoice Line', 'Invoice Line')]</portal_types>
          <report_root_list type="list">[]</report_root_list>
          <report_tree type="int">0</report_tree>
          <search type="int">0</search>
          <search_columns type="list">[]</search_columns>
          <select type="int">0</select>
          <selection_name>invoice_line_selection</selection_name>
          <sort type="list">[('id', 'id')]</sort>
          <stat_method></stat_method>
          <title>Lignes de facture</title>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
        </messages>
      </field>
      </fields>
    </group>
    <group>
      <title>hidden</title>
      <fields>

      <field><id>listbox_description</id> <type>StringField</type>
        <values>
          <alternate_name></alternate_name>
          <css_class></css_class>
          <default></default>
          <description></description>
          <display_maxwidth></display_maxwidth>
          <display_width type="int">40</display_width>
          <external_validator></external_validator>
          <extra></extra>
          <hidden type="int">0</hidden>
          <max_length></max_length>
          <required type="int">0</required>
          <title>listbox_description</title>
          <truncate type="int">0</truncate>
        </values>
        <tales>
        </tales>
        <messages>
          <message name="external_validator_failed">The input failed the external validator.</message>
          <message name="required_not_found">Input is required but no input given.</message>
          <message name="too_long">Too much input was given.</message>
        </messages>
      </field>
      </fields>
    </group>
  </groups>
</form>
