Total-du-client

De Admin -- TALEVAS.
(Différences entre les versions)
(Modification des boutons en haut de la fiche client)
Ligne 15 : Ligne 15 :
 
Pour afficher le champ de base de donnée (trouvé via la configuration de la base)
 
Pour afficher le champ de base de donnée (trouvé via la configuration de la base)
 
                     <button type="object" class="oe_stat_button" id="invoice_button" icon="fa-pencil-square-o" name="open_partner_history" attrs="{'invisible': [('customer', '=', False)]}" context="{'default_partner_id': active_id}">
 
                     <button type="object" class="oe_stat_button" id="invoice_button" icon="fa-pencil-square-o" name="open_partner_history" attrs="{'invisible': [('customer', '=', False)]}" context="{'default_partner_id': active_id}">
                         <div class="o_form_field o_stat_info">
+
                         &lt;div class="o_form_field o_stat_info">
 
                             <span class="o_stat_value"><field name="issued_total" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
 
                             <span class="o_stat_value"><field name="issued_total" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
 
                             <span class="o_stat_text">Issued_total</span>
 
                             <span class="o_stat_text">Issued_total</span>

Version du 8 novembre 2018 à 13:58

Modification des boutons en haut de la fiche client

en mode développeur.

1. édition de la vue "partner.view.buttons"

2. dupliquer le bouton :

                   <button type="object" class="oe_stat_button" id="invoice_button" icon="fa-pencil-square-o" name="open_partner_history" attrs="{'invisible': [('customer', '=', False)]}" context="{'default_partner_id': active_id}">
                       <div class="o_form_field o_stat_info">
                           <span class="o_stat_value"><field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
                           <span class="o_stat_text">Invoiced</span>
                       </div>
                   </button>

Pour afficher le champ de base de donnée (trouvé via la configuration de la base)

                   <button type="object" class="oe_stat_button" id="invoice_button" icon="fa-pencil-square-o" name="open_partner_history" attrs="{'invisible': [('customer', '=', False)]}" context="{'default_partner_id': active_id}">
                       <div class="o_form_field o_stat_info">
                           <field name="issued_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                           Issued_total
                       </div>
                   </button>

3. gestion de la traduction ...