Skip to content
Extraits de code Groupes Projets
Valider c691943f rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[UPD]Update template PDF

parent 96eb812c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -116,6 +116,8 @@ class AccAccount(models.Model): ...@@ -116,6 +116,8 @@ class AccAccount(models.Model):
if res.is_account_buyer: if res.is_account_buyer:
seq = str(rec.acc_injection_id.acc_account_surplus_count).zfill(3) seq = str(rec.acc_injection_id.acc_account_surplus_count).zfill(3)
rec.name = ( rec.name = (
"FS-"
+
rec.acc_operation_id.name rec.acc_operation_id.name
+ "-" + "-"
+ rec.acc_injection_id.name + rec.acc_injection_id.name
...@@ -125,6 +127,8 @@ class AccAccount(models.Model): ...@@ -125,6 +127,8 @@ class AccAccount(models.Model):
else: else:
seq = str(rec.acc_injection_id.acc_account_injection_count).zfill(3) seq = str(rec.acc_injection_id.acc_account_injection_count).zfill(3)
rec.name = ( rec.name = (
"F-"
+
rec.acc_operation_id.name rec.acc_operation_id.name
+ "-" + "-"
+ rec.acc_injection_id.name + rec.acc_injection_id.name
......
...@@ -249,12 +249,19 @@ ...@@ -249,12 +249,19 @@
<p> <p>
<span <span
class="font-weight-bold" class="font-weight-bold"
>Référence Point de livraison:</span><br /> >Référence Point de livraison (PDL):</span><br />
<span t-field="o.acc_delivery_id.name" /><br /> <span t-field="o.acc_delivery_id.name" /><br />
<span <span
class="font-weight-bold" class="font-weight-bold"
>Lieu de consommation:</span><br /> >Lieu de consommation:</span><br />
<span t-field="o.consumer_id.street" /> <span t-field="o.acc_delivery_id.street" /><br />
<t t-if="o.acc_delivery_id.street2"><span
t-field="o.acc_delivery_id.street2"
/><br /></t>
<t t-if="o.acc_delivery_id.zip">
<span t-field="o.acc_delivery_id.zip" /> - <span
t-field="o.acc_delivery_id.city"
/><br /></t>
</p> </p>
</div> </div>
<div> <div>
...@@ -297,10 +304,27 @@ ...@@ -297,10 +304,27 @@
>Référence Autoconsommation collective:</span><br >Référence Autoconsommation collective:</span><br
/> />
<span t-field="o.acc_operation_id.name" /><br /> <span t-field="o.acc_operation_id.name" /><br />
<span class="font-weight-bold">Nom producteur</span><br />
<span
class="font-weight-bold"
t-field="o.producer_id.name"
/><br />
<span class="font-weight-bold">Référence point d'injection (PRM):</span><br />
<span
class="font-weight-bold"
t-field="o.acc_injection_id.name"
/><br />
<span <span
class="text-center font-weight-bold" class="text-center font-weight-bold"
>Lieu de production:</span><br /> >Lieu de production:</span><br />
<!-- <p t-field="o.consumer_id.street"/>--> <span t-field="o.acc_injection_id.street" /><br />
<t t-if="o.acc_injection_id.street2"><span
t-field="o.acc_injection_id.street2"
/><br /></t>
<t t-if="o.acc_injection_id.zip">
<span t-field="o.acc_injection_id.zip" /> - <span
t-field="o.acc_injection_id.city"
/><br /></t>
</p> </p>
</div> </div>
</div> </div>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter