Browse Source

[ADD] add date of generation on certificate, smaller signature and font-size to prevent 2nd page

pull/30/head
Manuel Claeys Bouuaert 5 years ago
parent
commit
2c2bd12765
  1. 5
      easy_my_coop/i18n/fr.po
  2. 5
      easy_my_coop/i18n/fr_BE.po
  3. 5
      easy_my_coop/i18n/nl_BE.po
  4. 15
      easy_my_coop/report/cooperator_certificat_G001.xml

5
easy_my_coop/i18n/fr.po

@ -736,6 +736,11 @@ msgstr "1030"
msgid "25" msgid "25"
msgstr "25" msgstr "25"
#. module: easy_my_coop
#: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document
msgid "<span> Certificate generated on </span>"
msgstr "<span> Certificat généré le </span>"
#. module: easy_my_coop #. module: easy_my_coop
#: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document #: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document
msgid "<span> is recorded in the register of cooperators under number </span>" msgid "<span> is recorded in the register of cooperators under number </span>"

5
easy_my_coop/i18n/fr_BE.po

@ -736,6 +736,11 @@ msgstr "1030"
msgid "25" msgid "25"
msgstr "25" msgstr "25"
#. module: easy_my_coop
#: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document
msgid "<span> Certificate generated on </span>"
msgstr "<span> Certificat généré le </span>"
#. module: easy_my_coop #. module: easy_my_coop
#: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document #: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document
msgid "<span> is recorded in the register of cooperators under number </span>" msgid "<span> is recorded in the register of cooperators under number </span>"

5
easy_my_coop/i18n/nl_BE.po

@ -439,6 +439,11 @@ msgstr "25"
msgid "<p>Access this document <a href=\"%s\">directly in OpenERP</a></p>" msgid "<p>Access this document <a href=\"%s\">directly in OpenERP</a></p>"
msgstr "<p>Access this document <a href=\"%s\">directly in OpenERP</a></p>" msgstr "<p>Access this document <a href=\"%s\">directly in OpenERP</a></p>"
#. module: easy_my_coop
#: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document
msgid "<span> Certificate generated on </span>"
msgstr "<span> Certificate generated on </span>"
#. module: easy_my_coop #. module: easy_my_coop
#: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document #: model:ir.ui.view,arch_db:easy_my_coop.cooperator_certificat_G001_document
msgid "<span> is recorded in the register of cooperators under number </span>" msgid "<span> is recorded in the register of cooperators under number </span>"

15
easy_my_coop/report/cooperator_certificat_G001.xml

@ -57,12 +57,17 @@
<div style="width:125px;position:relative;top:10px;border-bottom: 4pt solid #fcc300;"/> <div style="width:125px;position:relative;top:10px;border-bottom: 4pt solid #fcc300;"/>
</h2> </h2>
<div name="label_coop_number" style="position:relative;top:45px;">
<span> Certificate generated on </span>
<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d')"/>
</div>
<div name="label_coop_number" style="position:relative;top:55px;"> <div name="label_coop_number" style="position:relative;top:55px;">
<span t-field="o.name"></span> <span t-field="o.name"></span>
<span> is recorded in the register of cooperators under number </span> <span> is recorded in the register of cooperators under number </span>
<span t-field="o.cooperator_register_number"></span>
</div>
<span t-field="o.cooperator_register_number"></span>
</div>
<table class="table border-easymy-coop-cert" style="position:relative;top:85px;width:90%;align:center;"> <table class="table border-easymy-coop-cert" style="position:relative;top:85px;width:90%;align:center;">
<thead class="easymy-coop-info-title"> <thead class="easymy-coop-info-title">
<tr> <tr>
@ -141,7 +146,7 @@
</div> </div>
<div class="row"> <div class="row">
<div name="board_commitee" class="col-xs-6 pull-left" style="position:relative;top:205px;font-size:20;color:black;font-family:Roboto-Regular;">
<div name="board_commitee" class="col-xs-6 pull-left" style="position:relative;top:205px;color:black;font-family:Roboto-Regular;">
<div style="position:relative;top:205px;"> <div style="position:relative;top:205px;">
Pour le Conseil d'administration de <span t-field="o.company_id.name"/>. Pour le Conseil d'administration de <span t-field="o.company_id.name"/>.
</div> </div>
@ -149,7 +154,7 @@
<strong><span t-field="o.company_id.board_representative"/></strong> <strong><span t-field="o.company_id.board_representative"/></strong>
</div> </div>
<div style="position:relative;top:225px;"> <div style="position:relative;top:225px;">
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:240px;height:200px;padding-bottom:5px;"/>
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:200px;height:150px;padding-bottom:5px;"/>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save