Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] Generated noupdate changes #5

Merged
merged 1 commit into from
Dec 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openupgrade_scripts/scripts/*/*/noupdate_changes.xml
115 changes: 115 additions & 0 deletions openupgrade_scripts/scripts/account/14.0.1.1/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="account_analytic_line_rule_billing_user" model="ir.rule">
<field name="perm_create"/>
<field name="perm_read"/>
<field name="perm_unlink"/>
<field name="perm_write"/>
</record>
<record id="account_bank_statement_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_bank_statement_line_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_fiscal_position_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_invoice_line_rule_portal" model="ir.rule">
<field name="domain_force">[('move_id.move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('move_id.message_partner_ids','child_of',[user.commercial_partner_id.id])]</field>
</record>
<record id="account_invoice_rule_portal" model="ir.rule">
<field name="domain_force">[('move_type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')), ('message_partner_ids','child_of',[user.commercial_partner_id.id])]</field>
</record>
<record id="account_move_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_move_line_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_payment_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_reconcile_model_template_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="account_root_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="email_template_edi_invoice" model="mail.template">
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
Dear
% if object.partner_id.parent_id:
${object.partner_id.name} (${object.partner_id.parent_id.name}),
% else:
${object.partner_id.name},
% endif
<br/><br/>
Here is your
% if object.name:
invoice <strong>${object.name}</strong>
% else:
invoice
%endif
% if object.invoice_origin:
(with reference: ${object.invoice_origin})
% endif
amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
from ${object.company_id.name}.
% if object.payment_state in ('paid', 'in_payment'):
This invoice is already paid.
% else:
Please remit payment at your earliest convenience.
% if object.payment_reference:
<br/><br/>
Please use the following communication for your payment: <strong>${object.payment_reference}</strong>.
% endif
% endif
<br/><br/>
Do not hesitate to contact us if you have any questions.
% if object.invoice_user_id.signature:
<br/>
${object.invoice_user_id.signature | safe}
% endif
</p>
</div>
</field>
</record>
<record id="invoice_analysis_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="journal_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="journal_group_comp_rule" model="ir.rule">
<field name="global"/>
</record>
<record id="mail_template_data_payment_receipt" model="mail.template">
<field name="body_html" type="xml">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
Dear ${object.partner_id.name}<br/><br/>
Thank you for your payment.
Here is your payment receipt <strong>${(object.name or '').replace('/','-')}</strong> amounting
to <strong>${format_amount(object.amount, object.currency_id)}</strong> from ${object.company_id.name}.
<br/><br/>
Do not hesitate to contact us if you have any questions.
<br/><br/>
Best regards,
% if user.signature:
<br/>
${user.signature | safe}
% endif
</p>
</div>
</field>
</record>
<record id="tax_comp_rule" model="ir.rule">
<field name="global"/>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="account_payment_method_check" model="account.payment.method">
<field name="sequence">20</field>
</record>
<record id="action_account_print_checks" model="ir.actions.server">
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
</record>
</odoo>
213 changes: 213 additions & 0 deletions openupgrade_scripts/scripts/auth_signup/14.0.1.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="mail_template_user_signup_account_created" model="mail.template">
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
<tbody>
<!-- HEADER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle">
<span style="font-size: 10px;">Your Account</span>
<br/>
<span style="font-size: 20px; font-weight: bold;">
${object.name}
</span>
</td>
<td valign="middle" align="right">
<img src="/logo.png?company=${object.company_id.id}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${object.company_id.name}"/>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="top" style="font-size: 13px;">
<div>
Dear ${object.name},<br/><br/>
Your account has been successfully created!<br/>
Your login is <strong>${object.email}</strong><br/>
To gain access to your account, you can use the following link:
<div style="margin: 16px 0px 16px 0px;"><a href="/web/login?auth_login=${object.email}" style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
Go to My Account
</a></div>
Thanks,<br/>
% if user.signature:
<br/>
${user.signature | safe}
% endif
</div>
</td>
</tr>
<tr>
<td style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
</td>
</tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle" align="left">
${object.company_id.name}
</td>
</tr>
<tr>
<td valign="middle" align="left" style="opacity: 0.7;">
${object.company_id.phone}
% if object.company_id.email
| <a href="'mailto:%s' % ${object.company_id.email}" style="text-decoration:none; color: #454748;">${object.company_id.email}</a>
% endif
% if object.company_id.website
| <a href="'%s' % ${object.company_id.website}" style="text-decoration:none; color: #454748;">
${object.company_id.website}
</a>
% endif
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!-- POWERED BY -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr>
<td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=auth" style="color: #875A7B;">Odoo</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</field>
</record>
<record id="reset_password_email" model="mail.template">
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
<tbody>
<!-- HEADER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle">
<span style="font-size: 10px;">Your Account</span>
<br/>
<span style="font-size: 20px; font-weight: bold;">
${object.name}
</span>
</td>
<td valign="middle" align="right">
<img src="/logo.png?company=${object.company_id.id}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${object.company_id.name}"/>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="top" style="font-size: 13px;">
<div>
Dear ${object.name},<br/><br/>
A password reset was requested for the Odoo account linked to this email.
You may change your password by following this link which will remain valid during 24 hours:<br/>
<div style="margin: 16px 0px 16px 0px;"><a href="${object.signup_url}" style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
Change password
</a></div>
If you do not expect this, you can safely ignore this email.<br/><br/>
Thanks,
% if user.signature:
<br/>
${user.signature | safe}
% endif
</div>
</td>
</tr>
<tr>
<td style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
</td>
</tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle" align="left">
${object.company_id.name}
</td>
</tr>
<tr>
<td valign="middle" align="left" style="opacity: 0.7;">
${object.company_id.phone}
% if object.company_id.email
| <a href="'mailto:%s' % ${object.company_id.email}" style="text-decoration:none; color: #454748;">${object.company_id.email}</a>
% endif
% if object.company_id.website
| <a href="'%s' % ${object.company_id.website}" style="text-decoration:none; color: #454748;">
${object.company_id.website}
</a>
% endif
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!-- POWERED BY -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr>
<td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=auth" style="color: #875A7B;">Odoo</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</field>
</record>
</odoo>
Loading