-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into micro_formacio_sastre
- Loading branch information
Showing
22 changed files
with
532 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -731,6 +731,28 @@ import_factura = object.residual | |
<field name="def_body_text"><![CDATA[<!doctype html><html>Missatge generat automaticament</html>]]> | ||
</field> | ||
</record> | ||
|
||
<record model="poweremail.templates" id="email_impagament_1er_avis_fraccionament_cancelat"> | ||
<field name="name">Impagament 1r Avís - Fraccionament cancel·lat</field> | ||
<field name="object_name" model="ir.model" search="[('model', '=', 'giscedata.facturacio.factura')]"/> | ||
<field name="model_int_name">giscedata.facturacio.factura</field> | ||
<field name="save_to_drafts" eval="0"/> | ||
<field name="use_filter" eval="0"/> | ||
<field name="file_name">Recibo_${object.number}_N57.pdf</field> | ||
<field name="def_to">${object.address_invoice_id.email}, ${object.polissa_id.direccio_notificacio.email}</field> | ||
<field name="def_bcc">[email protected]</field> | ||
<field name="auto_email" eval="0"/> | ||
<field name="single_email" eval="0"/> | ||
<field name="report_template" ref="giscedata_facturacio.report_rebut"/> | ||
<field name="use_sign" eval="0"/> | ||
<field name="def_subject">[FACTURA IMPAGADA - FRACCIONAMENT CANCEL·LAT] Som Energia factura ${object.polissa_id.name}</field> | ||
<field name="template_language">mako</field> | ||
<field name="send_on_create" eval="0"/> | ||
<field name="lang">${object.invoice_id.partner_id.lang}</field> | ||
<field name="send_on_write" eval="0"/> | ||
<field name="def_body_text"><![CDATA[<!doctype html><html>Missatge generat automaticament</html>]]> | ||
</field> | ||
</record> | ||
</data> | ||
|
||
<data noupdate="1"> | ||
|
28 changes: 28 additions & 0 deletions
28
..._invoice_pending/migrations/5.0.23.9.0/post-0006_add_template_impagament_fraccionament.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
from oopgrade.oopgrade import load_data_records | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version: | ||
return | ||
|
||
logger = logging.getLogger('openerp.migration') | ||
|
||
# Actualitzar una part de l'XML (cal posar la id del record) | ||
logger.info("Updating XMLs") | ||
list_of_records = [ | ||
"email_impagament_1er_avis_fraccionament_cancelat", | ||
] | ||
load_data_records( | ||
cursor, 'som_account_invoice_pending', 'data/som_account_invoice_pending_data.xml', | ||
list_of_records, mode='update' | ||
) | ||
logger.info("XMLs succesfully updated.") | ||
|
||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
|
||
migrate = up |
31 changes: 31 additions & 0 deletions
31
som_crawlers/migrations/5.0.23.9.0/post-0002_add_lazy_one2many_field.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- encoding: utf-8 -*- | ||
import logging | ||
from oopgrade.oopgrade import load_data_records | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version: | ||
return | ||
|
||
logger = logging.getLogger('openerp.migration') | ||
|
||
# Actualitzar un XML/CSV sencer | ||
logger.info("Updating XMLs") | ||
xmls = [ | ||
"views/som_crawlers_task_view.xml", | ||
] | ||
records = [ | ||
"view_som_crawlers_task_form", | ||
] | ||
for xml_w in xmls: | ||
load_data_records( | ||
cursor, 'som_crawlers', xml_w, records, mode='update' | ||
) | ||
logger.info("XMLs succesfully updatd.") | ||
|
||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
|
||
migrate = up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.