Aller au contenu

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

De Admin -- TALEVAS
Aucun résumé des modifications
Ligne 2 : Ligne 2 :
en mode développeur.
en mode développeur.


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


2. dupliquer le bouton :
2. Y laisser :
&alt;data><div name="button_box" position="inside">
                     <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}">
                         &lt;div class="o_form_field o_stat_info">
                         &alt;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>
                             &alt;span class="o_stat_value"><field name="issued_total" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
                            &lt;span class="o_stat_text">Invoiced</span>
                             &alt;span class="o_stat_text">Total dù</span>
                        &lt;/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}">
                        &lt;div class="o_form_field o_stat_info">
                            &lt;span class="o_stat_value"><field name="issued_total" widget="monetary" options="{'currency_field': 'currency_id'}"/></span>
                             &lt;span class="o_stat_text">Issued_total</span>
                         </div>
                         </div>
                     </button>
                     </button>
                </div>
</data>
3. gestion de la traduction ...
3. gestion de la traduction ...

Version du 8 novembre 2018 à 14:14

Modification des boutons en haut de la fiche client

en mode développeur.

1. dupliquer la vue "partner.view.buttons"

2. Y laisser :

&alt;data>

                   <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}">
                       &alt;div class="o_form_field o_stat_info">
                           &alt;span class="o_stat_value"><field name="issued_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
                           &alt;span class="o_stat_text">Total dù
                   </button>

3. gestion de la traduction ...