Skip to content
Closed
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
2 changes: 1 addition & 1 deletion docsource/modules160-170.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Module coverage 16.0 -> 17.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| Module | Status + Extra Information |
+===================================================+======================+=================================================+
| account | | |
| account | Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| |new| account_audit_trail | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
13 changes: 13 additions & 0 deletions openupgrade_scripts/scripts/account/17.0.1.2/end-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade


def _res_partner_bank_computation(env):
partner_banks = env["res.partner.bank"].with_context(active_test=False).search([])
partner_banks._compute_display_account_warning()


@openupgrade.migrate()
def migrate(env, version):
_res_partner_bank_computation(env)
19 changes: 19 additions & 0 deletions openupgrade_scripts/scripts/account/17.0.1.2/noupdate_changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,59 @@
<record id="account_move_line_comp_rule" model="ir.rule">
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<!-- don't delete lines from payment terms, we migrate them /-->
<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_comp_rule" model="ir.rule">
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'parent_of', company_ids)]</field>
</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>
Expand Down
Loading