Skip to content

Commit

Permalink
[ADD] openupgrade_scripts: 17.0 Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanRijnhart committed Feb 3, 2024
1 parent 7f6ea9e commit 18f33f0
Show file tree
Hide file tree
Showing 429 changed files with 54,960 additions and 3 deletions.
1,006 changes: 1,003 additions & 3 deletions docsource/modules160-170.rst

Large diffs are not rendered by default.

134 changes: 134 additions & 0 deletions openupgrade_scripts/scripts/account/17.0.1.2/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="account_bank_statement_line_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<record id="account_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="account_fiscal_position_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="account_group_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="account_move_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<record id="account_move_line_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<record id="account_payment_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<record id="account_payment_term_15days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 15})]"/>
</record>
<record id="account_payment_term_21days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 21})]"/>
</record>
<record id="account_payment_term_30_days_end_month_the_10" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type':'days_after_end_of_next_month', 'nb_days': 10})]"/>
<field name="name">10 Days after End of Next Month</field>
<field name="note">Payment terms: 10 Days after End of Next Month</field>
</record>
<record id="account_payment_term_30days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 30})]"/>
</record>
<record id="account_payment_term_30days_early_discount" model="account.payment.term">
<field name="line_ids" eval="[ Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 30})]"/>
<field name="discount_days">7</field>
<field name="discount_percentage">2</field>
<field name="early_discount">True</field>
</record>
<record id="account_payment_term_45days" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 45})]"/>
</record>
<record id="account_payment_term_advance_60days" model="account.payment.term">
<field name="line_ids" eval="[ Command.clear(), Command.create({'value': 'percent', 'value_amount': 30.0, 'nb_days': 0}), Command.create({'value': 'percent', 'value_amount': 70.0, 'nb_days': 60})]"/>
</record>
<record id="account_payment_term_end_following_month" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type':'days_after_end_of_next_month', 'nb_days': 0})]"/>
</record>
<record id="account_payment_term_immediate" model="account.payment.term">
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 0})]"/>
</record>
<record id="account_reconcile_model_line_template_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="account_reconcile_model_template_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="account_root_comp_rule" model="ir.rule">
<field name="domain_force">['|',('company_id','=',False), ('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="account_send_payment_receipt_by_email_action" model="ir.actions.act_window">
<field name="context" eval="{ 'mail_post_autofollow': True, 'default_composition_mode': 'comment', 'default_template_id': ref('account.mail_template_data_payment_receipt'), 'default_email_layout_xmlid': 'mail.mail_notification_light', }"/>
</record>
<record id="account_send_payment_receipt_by_email_action_multi" model="ir.actions.act_window">
<field name="context" eval="{ 'mailing_document_based': True, 'mail_post_autofollow': True, 'default_composition_mode': 'mass_mail', 'default_template_id': ref('account.mail_template_data_payment_receipt'), 'default_email_layout_xmlid': 'mail.mail_notification_light', }"/>
</record>
<record id="email_template_edi_credit_note" model="mail.template">
<field name="report_template_ids" eval="[(4, ref('account.account_invoices'))]"/>
</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
<t t-if="object.partner_id.parent_id"><t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
</t>
<t t-else=""><t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
</t>
<br/><br/>
Here is your
<t t-if="object.name">
invoice <span style="font-weight:bold;" t-out="object.name or ''">INV/2021/05/0005</span>
</t>
<t t-else="">
invoice
</t>
<t t-if="object.invoice_origin">
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
</t>
amounting in <span style="font-weight:bold;" t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00</span>
from <t t-out="object.company_id.name or ''">YourCompany</t>.
<t t-if="object.payment_state in ('paid', 'in_payment')">
This invoice is already paid.
</t>
<t t-else="">
Please remit payment at your earliest convenience.
<t t-if="object.payment_reference"><br/><br/>
Please use the following communication for your payment: <span style="font-weight:bold;" t-out="object.payment_reference or ''">INV/2021/05/0005</span>.
</t>
</t>
<t t-if="hasattr(object, 'timesheet_count') and object.timesheet_count"><br/><br/>
PS: you can review your timesheets <a t-att-href="'my/timesheets?search_in=invoice&amp;search=%s' % object.name">from the portal.</a>
</t>
<br/><br/>
Do not hesitate to contact us if you have any questions.
<t t-if="not is_html_empty(object.invoice_user_id.signature)"><br/><br/><t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin</t></t>
</p>
</div>
</field>
<field name="report_template_ids" eval="[(4, ref('account.account_invoices'))]"/>
</record>
<record id="invoice_analysis_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<record id="journal_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="journal_group_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="mail_template_data_payment_receipt" model="mail.template">
<field name="report_template_ids" eval="[(4, ref('account.action_report_payment_receipt'))]"/>
</record>
<record id="tax_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'parent_of', company_ids)]</field>
</record>
<record id="tax_rep_comp_rule" model="ir.rule">
<field name="domain_force">['|',('company_id','=',False), ('company_id', 'parent_of', company_ids)]</field>
</record>
</odoo>
Loading

0 comments on commit 18f33f0

Please sign in to comment.