Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
A
ap_report
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Arbre et Paysage
ap_report
Validations
fe754ac9
Valider
fe754ac9
rédigé
Il y a 2 ans
par
Benjamin - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[update] sale template
parent
30b7deaa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
i18n/fr.po
+11
-0
11 ajouts, 0 suppression
i18n/fr.po
templates/report_sale.xml
+30
-53
30 ajouts, 53 suppressions
templates/report_sale.xml
avec
41 ajouts
et
53 suppressions
i18n/fr.po
+
11
−
0
Voir le fichier @
fe754ac9
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ap_report
# * sale
# * stock
#
msgid ""
...
...
@@ -397,6 +398,16 @@ msgstr ""
msgid "séquences entières"
msgstr ""
#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.report_saleorder_document
msgid "<strong>Expiration:</strong>"
msgstr "<strong>Durée de validité :</strong>"
#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.report_saleorder_document
msgid "<strong>Salesperson:</strong>"
msgstr "<strong>Référent :</strong>"
#. module: stock
#: model:ir.actions.report,name:stock.action_report_picking
msgid "Picking Operations"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
templates/report_sale.xml
+
30
−
53
Voir le fichier @
fe754ac9
...
...
@@ -5,39 +5,8 @@
id=
"ap_report_saleorder_document"
inherit_id=
"sale.report_saleorder_document"
>
<xpath
expr=
"//h2[hasclass('mt16')]"
position=
"replace"
/>
<t
t-if=
"doc.partner_shipping_id == doc.partner_invoice_id
and doc.partner_invoice_id != doc.partner_id
or doc.partner_shipping_id != doc.partner_invoice_id"
position=
"replace"
>
<t
t-if=
"doc.partner_invoice_id != doc.partner_id
or doc.partner_shipping_id != doc.partner_id"
>
<t
t-set=
"information_block"
>
<t
t-if=
"doc.partner_invoice_id != doc.partner_id"
>
<strong>
Adresse de facturation:
</strong>
<div
t-field=
"doc.partner_invoice_id"
t-options=
'{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'
/>
</t>
<t
t-if=
"doc.partner_shipping_id != doc.partner_id"
>
<strong>
Adresse de livraison:
</strong>
<div
t-field=
"doc.partner_shipping_id"
t-options=
'{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'
/>
</t>
</t>
</t>
</t>
<xpath
expr=
"//div[@t-field='doc.partner_id']"
position=
"before"
>
<h2>
<xpath
expr=
"//t[@t-set='address']"
position=
"before"
>
<h3>
<t
t-if=
"not (env.context.get('proforma', False) or is_pro_forma)"
>
<span
t-if=
"doc.state not in ['draft','sent']"
>
Commande n°
</span>
<span
t-if=
"doc.state in ['draft','sent']"
>
Devis N°
</span>
...
...
@@ -46,31 +15,24 @@
<span>
Facture pro-forma n°
</span>
</t>
<span
t-field=
"doc.name"
/>
</h
2
>
</h
3
>
</xpath>
<div
t-if=
"doc.user_id.name"
position=
"replace"
>
<div
t-if=
"doc.user_id.name"
class=
"col-auto col-3 mw-100 mb-2"
>
<strong>
Référent:
</strong>
<p
class=
"m-0"
><span
t-field=
"doc.user_id"
/><t
t-if=
"doc.user_id.phone"
>
,
<t
t-esc=
"doc.user_id.phone"
/></t></p>
</div>
</div>
<xpath
expr=
"//div[hasclass('page')]"
position=
"inside"
>
<p>
Mention « bon pour accord » et signature du client
</p>
<!-- Masque titre initial -->
<xpath
expr=
"//h2[hasclass('mt16')]"
position=
"attributes"
>
<attribute
name=
"style"
>
display: none;
</attribute>
</xpath>
<
xpath
expr=
"//div[@name='signature']"
position=
"before"
>
<p
t-if=
"doc.company_id.text_report"
name=
"text_tva"
class=
"mt-2 text-right"
>
<t
t-esc=
"doc.
company_id.text_report
"
/>
</
p
>
<
!-- Masque Shipping & Invoice address --
>
<xpath
expr=
"//t[@t-set='information_block']"
position=
"replace"
/>
<!-- Ajout du tel sur le référent -->
<xpath
expr=
"//p[@t-field='doc.user_id']"
position=
"after"
>
<t
t-if=
"doc.user_id.phone"
>
<t
t-esc=
"doc.
user_id.phone
"
/>
</
t
>
</xpath>
<!-- Remplacement des tableaux de prix et totaux -->
<table
class=
"table table-sm o_main_table"
position=
"replace"
>
<table
class=
"table table-sm o_main_table"
>
<!-- In case we want to repeat the header, remove "display: table-row-group" -->
...
...
@@ -279,6 +241,21 @@
</div>
</div>
<!-- Mention de bas de page -->
<xpath
expr=
"//div[hasclass('page')]"
position=
"inside"
>
<p>
Mention « bon pour accord » et signature du client
</p>
</xpath>
<xpath
expr=
"//div[@name='signature']"
position=
"before"
>
<p
t-if=
"doc.company_id.text_report"
name=
"text_tva"
class=
"mt-2 text-right"
>
<t
t-esc=
"doc.company_id.text_report"
/>
</p>
</xpath>
</template>
</odoo>
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter