Aller au contenu

« Total-du-client » : différence entre les versions

De Admin -- TALEVAS
Ligne 5 : Ligne 5 :


2. dupliquer le bouton :
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}">
                     &lt;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}">
                         &lt;div class="o_form_field o_stat_info">
                         &lt;div class="o_form_field o_stat_info">
                             &lt;span class="o_stat_value"><field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
                             <span class="o_stat_value"><field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
                             &lt;span class="o_stat_text">Invoiced</span>
                             <span class="o_stat_text">Invoiced</span>
                         &lt;/div>
                         &lt;/div>
                     &lt;/button>
                     </button>


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)

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">
                           <field name="total_invoiced" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                           Invoiced
                       </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
                   </button>

3. gestion de la traduction ...