-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_fi_payment_terms: Migration to 17.0
- Loading branch information
1 parent
e9c80c1
commit a449b36
Showing
12 changed files
with
79 additions
and
221 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 |
---|---|---|
@@ -1 +0,0 @@ | ||
from . import models | ||
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 |
---|---|---|
@@ -1,103 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<!-- Add most often used payment terms in Finland --> | ||
<!-- Immediate payment --> | ||
<record id="account_payment_term_immediate" model="account.payment.term"> | ||
<field name="name">Immediate Payment</field> | ||
<field name="code">immediate</field> | ||
<field name="note">Immediate Payment</field> | ||
<field name="sequence">1</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 0, 'option': 'day_after_invoice_date'})]" | ||
/> | ||
</record> | ||
|
||
<!-- Immediate payment is in core, and not added --> | ||
|
||
<!-- 7 Days --> | ||
<record id="account_payment_term_7_days" model="account.payment.term"> | ||
<field name="name">7 Days</field> | ||
<field name="code">7_days</field> | ||
<field name="note">7 Days</field> | ||
<field name="sequence">2</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 7, 'option': 'day_after_invoice_date'})]" | ||
eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 7})]" | ||
/> | ||
</record> | ||
<!-- 10 Days --> | ||
<record id="account_payment_term_10_days" model="account.payment.term"> | ||
<field name="name">10 Days</field> | ||
<field name="code">10_days</field> | ||
<field name="note">10 Days</field> | ||
<field name="sequence">3</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 10, 'option': 'day_after_invoice_date'})]" | ||
eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 10})]" | ||
/> | ||
</record> | ||
<!-- 14 Days --> | ||
<record id="account_payment_term_14_days" model="account.payment.term"> | ||
<field name="name">14 Days</field> | ||
<field name="code">14_days</field> | ||
<field name="note">14 Days</field> | ||
<field name="sequence">4</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 14, 'option': 'day_after_invoice_date'})]" | ||
/> | ||
</record> | ||
<!-- 21 Days --> | ||
<record id="account_payment_term_21_days" model="account.payment.term"> | ||
<field name="name">21 Days</field> | ||
<field name="code">21_days</field> | ||
<field name="note">21 Days</field> | ||
<field name="sequence">5</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 21, 'option': 'day_after_invoice_date'})]" | ||
/> | ||
</record> | ||
<!-- 30 Days --> | ||
<record id="account_payment_term_30_days" model="account.payment.term"> | ||
<field name="name">30 Days</field> | ||
<field name="code">30_days</field> | ||
<field name="note">30 Days</field> | ||
<field name="sequence">6</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 30, 'option': 'day_after_invoice_date'})]" | ||
/> | ||
</record> | ||
<!-- 45 Days --> | ||
<record id="account_payment_term_45_days" model="account.payment.term"> | ||
<field name="name">45 Days</field> | ||
<field name="code">45_days</field> | ||
<field name="note">45 Days</field> | ||
<field name="sequence">7</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 45, 'option': 'day_after_invoice_date'})]" | ||
eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 14})]" | ||
/> | ||
</record> | ||
|
||
<!-- 21 Days is in the core, and not added --> | ||
|
||
<!-- 30 Days is in the core, and not added --> | ||
|
||
<!-- 45 Days is in the core, and not added --> | ||
|
||
<!-- 60 Days --> | ||
<record id="account_payment_term_60_days" model="account.payment.term"> | ||
<field name="name">60 Days</field> | ||
<field name="code">60_days</field> | ||
<field name="note">60 Days</field> | ||
<field name="sequence">8</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 60, 'option': 'day_after_invoice_date'})]" | ||
eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 60})]" | ||
/> | ||
</record> | ||
<!-- 90 Days --> | ||
<record id="account_payment_term_90_days" model="account.payment.term"> | ||
<field name="name">90 Days</field> | ||
<field name="code">90_days</field> | ||
<field name="note">90 Days</field> | ||
<field name="sequence">9</field> | ||
<field | ||
name="line_ids" | ||
eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 90, 'option': 'day_after_invoice_date'})]" | ||
eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 90})]" | ||
/> | ||
</record> | ||
</odoo> |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.