Total-du-client
De Admin -- TALEVAS.
(Différences entre les versions)
(→Modification des boutons en haut de la fiche client) |
(→Modification des boutons en haut de la fiche client) |
||
| Ligne 7 : | Ligne 7 : | ||
<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"> | <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> | </div> | ||
</button> | </button> | ||
| Ligne 15 : | Ligne 15 : | ||
<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"> | <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_text">Issued_total</span> | |
</div> | </div> | ||
</button> | </button> | ||
3. gestion de la traduction ... | 3. gestion de la traduction ... | ||
Version du 8 novembre 2018 à 14:00
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">
<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>
</div>
</button>
3. gestion de la traduction ...