2
0

Merge branch '16.0' into 16.0-yaltik

This commit is contained in:
Fabien BOURGEOIS 2024-04-09 10:53:27 +02:00
commit 1661dbfc0d
17 changed files with 69 additions and 56 deletions

View File

@ -32,7 +32,7 @@ addon | version | maintainers | summary
[account_fiscal_year](account_fiscal_year/) | 16.0.1.1.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Create Account Fiscal Year
[account_fiscal_year_auto_create](account_fiscal_year_auto_create/) | 16.0.1.0.2 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Automatically create new fiscal years, based on the datas of the last fiscal years
[account_invoice_constraint_chronology](account_invoice_constraint_chronology/) | 16.0.1.1.0 | | Account Invoice Constraint Chronology
[account_journal_general_sequence](account_journal_general_sequence/) | 16.0.2.0.1 | [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Add configurable sequence to account moves, per journal
[account_journal_general_sequence](account_journal_general_sequence/) | 16.0.2.0.2 | [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Add configurable sequence to account moves, per journal
[account_journal_lock_date](account_journal_lock_date/) | 16.0.1.0.0 | | Lock each journal independently
[account_journal_restrict_mode](account_journal_restrict_mode/) | 16.0.1.0.0 | | Lock All Posted Entries of Journals.
[account_loan](account_loan/) | 16.0.1.0.4 | [![etobella](https://github.com/etobella.png?size=30px)](https://github.com/etobella) | Account Loan management
@ -50,7 +50,7 @@ addon | version | maintainers | summary
[account_move_template](account_move_template/) | 16.0.1.0.0 | | Templates for recurring Journal Entries
[account_netting](account_netting/) | 16.0.1.0.0 | | Compensate AR/AP accounts from the same partner
[account_partner_required](account_partner_required/) | 16.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Adds an option 'partner policy' on accounts
[account_spread_cost_revenue](account_spread_cost_revenue/) | 16.0.1.0.0 | | Spread costs and revenues over a custom period
[account_spread_cost_revenue](account_spread_cost_revenue/) | 16.0.1.0.1 | | Spread costs and revenues over a custom period
[account_template_active](account_template_active/) | 16.0.1.0.1 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Allow to disable / enable account template items (tax, fiscal position, account)
[account_usability](account_usability/) | 16.0.1.0.3 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Adds missing menu entries for Account module and adds the option to enable Saxon Accounting
[base_vat_optional_vies](base_vat_optional_vies/) | 16.0.1.1.0 | | Optional validation of VAT via VIES

View File

@ -37,10 +37,10 @@ msgstr ""
"Project-Id-Version: account-financial-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-12 03:43+0000\n"
"PO-Revision-Date: 2023-11-06 00:44+0000\n"
"PO-Revision-Date: 2024-04-08 02:08+0000\n"
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n"
"Language-Team: Spanish (Argentina) (http://www.transifex.com/oca/OCA-account-"
"financial-tools-8-0/language/es_AR/)\n"
"Language-Team: Spanish (Argentina) (http://www.transifex.com/oca/"
"OCA-account-financial-tools-8-0/language/es_AR/)\n"
"Language: es_AR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -65,6 +65,8 @@ msgid ""
"<span class=\"o_form_label oe_inline\" attrs=\"{'invisible':"
"[('salvage_type','!=','percent')]}\">%</span>"
msgstr ""
"<span class=\"o_form_label oe_inline\" attrs=\""
"{'invisible':[('salvage_type','!=','percent')]}\">%</span>"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.view_move_form
@ -773,7 +775,7 @@ msgstr "Reporte de Activos financieros"
#. module: account_asset_management
#: model:ir.model.fields.selection,name:account_asset_management.selection__account_asset_profile__salvage_type__fixed
msgid "Fixed"
msgstr ""
msgstr "Fijo"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__message_follower_ids
@ -1226,7 +1228,7 @@ msgstr "Contacto"
#. module: account_asset_management
#: model:ir.model.fields.selection,name:account_asset_management.selection__account_asset_profile__salvage_type__percent
msgid "Percentage of Price"
msgstr ""
msgstr "Porcentaje del Precio"
#. module: account_asset_management
#. odoo-python
@ -1435,7 +1437,7 @@ msgstr "Valor de Venta"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_profile__salvage_type
msgid "Salvage Type"
msgstr ""
msgstr "Tipo de Rescate"
#. module: account_asset_management
#. odoo-python

View File

@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: account-financial-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-10 23:23+0000\n"
"PO-Revision-Date: 2024-02-29 13:34+0000\n"
"PO-Revision-Date: 2024-03-28 22:36+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (http://www.transifex.com/oca/"
"OCA-account-financial-tools-8-0/language/it/)\n"
@ -787,7 +787,7 @@ msgstr ""
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
msgid "History"
msgstr "Storico"
msgstr "Cronologia"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__id

View File

@ -7,7 +7,7 @@ General sequence in account journals
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a605b6ea5d6c7a699f28ac3d02cc53789b40b01ef47be934e46c5c6f6305e240
!! source digest: sha256:1fde1ac7aa4bae5d32ca8ab6a857c41d49dea196fe054800ea375fc924fff9aa
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

View File

@ -3,7 +3,7 @@
{
"name": "General sequence in account journals",
"summary": "Add configurable sequence to account moves, per journal",
"version": "16.0.2.0.1",
"version": "16.0.2.0.2",
"category": "Accounting/Accounting",
"website": "https://github.com/OCA/account-financial-tools",
"author": "Moduon, Odoo Community Association (OCA)",

View File

@ -61,7 +61,9 @@ class AccountMove(models.Model):
# Cache all the new numbers to avoid wasting recomputations, caused by
# searches done by _next() in the loop below
chosen_map = {}
for move in chosen.sorted(lambda one: (one.date, one.name, one.id)):
for move in chosen.sorted(
lambda one: (one.date or "", one.name or "", one.id or 0)
):
chosen_map[move.id] = move.journal_id.entry_number_sequence_id._next(
move.date
)

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@ -367,7 +366,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a605b6ea5d6c7a699f28ac3d02cc53789b40b01ef47be934e46c5c6f6305e240
!! source digest: sha256:1fde1ac7aa4bae5d32ca8ab6a857c41d49dea196fe054800ea375fc924fff9aa
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_journal_general_sequence"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_journal_general_sequence"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of account to support sequenced entry

View File

@ -10,14 +10,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-06 02:40+0000\n"
"PO-Revision-Date: 2018-04-06 02:40+0000\n"
"Last-Translator: Quentin THEURET <odoo@kerpeo.com>, 2018\n"
"PO-Revision-Date: 2024-03-28 22:37+0000\n"
"Last-Translator: Pierre-François Teyssier <pierre-francois@scalizer.fr>\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: account_loan
#: model_terms:ir.ui.view,arch_db:account_loan.account_loan_form
@ -25,6 +26,8 @@ msgid ""
"<span class=\"o_stat_text\">Deduct</span>\n"
" <span class=\"o_stat_text\">Debt</span>"
msgstr ""
"<span class=\"o_stat_text\">Déduire</span>\n"
" <span class=\"o_stat_text\">Dette</span>"
#. module: account_loan
#: model_terms:ir.ui.view,arch_db:account_loan.account_loan_form
@ -32,11 +35,13 @@ msgid ""
"<span class=\"o_stat_text\">Increase</span>\n"
" <span class=\"o_stat_text\">Debt</span>"
msgstr ""
"<span class=\"o_stat_text\">Augmenter</span>\n"
" <span class=\"o_stat_text\">Dette</span>"
#. module: account_loan
#: model_terms:ir.ui.view,arch_db:account_loan.res_partner_form_view
msgid "<span class=\"o_stat_text\">Loans</span>"
msgstr ""
msgstr "<span class=\"o_stat_text\">Emprunts</span>"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan_increase_amount__account_id
@ -75,12 +80,12 @@ msgstr "Comptes"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan__message_needaction
msgid "Action Needed"
msgstr ""
msgstr "Action requise"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan__activity_ids
msgid "Activities"
msgstr ""
msgstr "Activités"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan__activity_exception_decoration
@ -90,12 +95,12 @@ msgstr ""
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan__activity_state
msgid "Activity State"
msgstr ""
msgstr "État de l'activité"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan__activity_type_icon
msgid "Activity Type Icon"
msgstr ""
msgstr "Icône du type d'activité"
#. module: account_loan
#. odoo-python
@ -118,21 +123,24 @@ msgstr "Le montant ne peut pas être inférieur à zéro"
#, python-format
msgid "Amount cannot be recomputed if moves or invoices exists already"
msgstr ""
"Le montant ne peut pas être recalculé si des écritures ou les factures "
"existent déjà"
#. module: account_loan
#: model:ir.model.fields,help:account_loan.field_account_loan_line__interests_amount
msgid "Amount of the payment that will be assigned to interests"
msgstr ""
msgstr "Le montant du paiement qui sera affecté aux intérêts"
#. module: account_loan
#: model:ir.model.fields,help:account_loan.field_account_loan_line__principal_amount
msgid "Amount of the payment that will reduce the pending loan amount"
msgstr ""
msgstr "Le montant du payment qui réduira le montant de l'emprunt en attente"
#. module: account_loan
#: model:ir.model.fields,help:account_loan.field_account_loan_line__long_term_principal_amount
msgid "Amount that will reduce the pending loan amount on long term"
msgstr ""
"Le montant qui réduira le montant de l'emprunt en attente sur le long terme"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan_increase_amount__amount
@ -452,7 +460,7 @@ msgstr ""
#: model:ir.model.fields,field_description:account_loan.field_account_loan_line__journal_id
#: model:ir.model.fields,field_description:account_loan.field_account_loan_post__journal_id
msgid "Journal"
msgstr "Journal"
msgstr ""
#. module: account_loan
#: model:ir.model,name:account_loan.model_account_move

View File

@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-30 02:39+0000\n"
"PO-Revision-Date: 2023-09-03 13:42+0000\n"
"PO-Revision-Date: 2024-03-20 10:36+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
@ -1013,7 +1013,7 @@ msgstr ""
#. module: account_loan
#: model_terms:ir.ui.view,arch_db:account_loan.account_loan_line_tree
msgid "Values"
msgstr "Confermato"
msgstr "Valori"
#. module: account_loan
#: model:ir.model.fields,field_description:account_loan.field_account_loan__website_message_ids

View File

@ -9,14 +9,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-28 23:24+0000\n"
"PO-Revision-Date: 2017-11-28 23:24+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"PO-Revision-Date: 2024-04-02 16:36+0000\n"
"Last-Translator: Thijs van Oers <thijsvanoers@yahoo.com>\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: account_move_fiscal_month
#: model:ir.model.fields,field_description:account_move_fiscal_month.field_account_bank_statement_line__date_range_fm_id
@ -24,17 +25,17 @@ msgstr ""
#: model:ir.model.fields,field_description:account_move_fiscal_month.field_account_move_line__date_range_fm_id
#: model:ir.model.fields,field_description:account_move_fiscal_month.field_account_payment__date_range_fm_id
msgid "Fiscal month"
msgstr ""
msgstr "Fiscale maand"
#. module: account_move_fiscal_month
#: model:ir.model,name:account_move_fiscal_month.model_account_move
msgid "Journal Entry"
msgstr ""
msgstr "Boeking"
#. module: account_move_fiscal_month
#: model:ir.model,name:account_move_fiscal_month.model_account_move_line
msgid "Journal Item"
msgstr ""
msgstr "Boekingsregel"
#~ msgid "Account Entry"
#~ msgstr "Boeking"

View File

@ -9,19 +9,20 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-22 03:41+0000\n"
"PO-Revision-Date: 2017-12-22 03:41+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"PO-Revision-Date: 2024-04-02 16:35+0000\n"
"Last-Translator: Thijs van Oers <thijsvanoers@yahoo.com>\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: account_move_fiscal_year
#: model:ir.model,name:account_move_fiscal_year.model_res_company
msgid "Companies"
msgstr ""
msgstr "Bedrijven"
#. module: account_move_fiscal_year
#: model:ir.model.fields,field_description:account_move_fiscal_year.field_account_bank_statement_line__date_range_fy_id
@ -29,17 +30,17 @@ msgstr ""
#: model:ir.model.fields,field_description:account_move_fiscal_year.field_account_move_line__date_range_fy_id
#: model:ir.model.fields,field_description:account_move_fiscal_year.field_account_payment__date_range_fy_id
msgid "Fiscal year"
msgstr ""
msgstr "Fiscaal jaar"
#. module: account_move_fiscal_year
#: model:ir.model,name:account_move_fiscal_year.model_account_move
msgid "Journal Entry"
msgstr ""
msgstr "Boeking"
#. module: account_move_fiscal_year
#: model:ir.model,name:account_move_fiscal_year.model_account_move_line
msgid "Journal Item"
msgstr ""
msgstr "Boekingsregel"
#~ msgid "Account Entry"
#~ msgstr "Boeking"

View File

@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-01 03:44+0000\n"
"PO-Revision-Date: 2024-02-22 11:38+0000\n"
"PO-Revision-Date: 2024-03-21 12:36+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
@ -435,7 +435,7 @@ msgstr "Stato"
#: model:ir.model.fields,field_description:account_move_template.field_account_move_template_line__tax_repartition_line_id
#: model:ir.model.fields,field_description:account_move_template.field_account_move_template_line_run__tax_repartition_line_id
msgid "Tax Repartition Line"
msgstr "Riga di ripartizione fiscale"
msgstr "Riga ripartizione imposta"
#. module: account_move_template
#: model:ir.model.fields,field_description:account_move_template.field_account_move_template_line__tax_ids

View File

@ -9,14 +9,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-25 11:47+0000\n"
"PO-Revision-Date: 2018-01-25 11:47+0000\n"
"Last-Translator: Frank Schellenberg <opensource@schellenberg.nl>, 2018\n"
"PO-Revision-Date: 2024-04-02 16:36+0000\n"
"Last-Translator: Thijs van Oers <thijsvanoers@yahoo.com>\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_account
@ -26,7 +27,7 @@ msgstr "Rekening"
#. module: account_partner_required
#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__always
msgid "Always"
msgstr ""
msgstr "Altijd"
#. module: account_partner_required
#: model:ir.model,name:account_partner_required.model_account_move_line
@ -36,18 +37,18 @@ msgstr ""
#. module: account_partner_required
#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__never
msgid "Never"
msgstr ""
msgstr "Nooit"
#. module: account_partner_required
#: model:ir.model.fields.selection,name:account_partner_required.selection__account_account__partner_policy__optional
msgid "Optional"
msgstr ""
msgstr "Optioneel"
#. module: account_partner_required
#: model:ir.model.fields,field_description:account_partner_required.field_account_account__partner_policy
#: model_terms:ir.ui.view,arch_db:account_partner_required.view_account_search
msgid "Partner Policy"
msgstr ""
msgstr "Klantbeleid"
#. module: account_partner_required
#. odoo-python

View File

@ -7,7 +7,7 @@ Cost-Revenue Spread
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:560d87ede92fd18ca4a929595b6a9fd9f558f6b577e8c9bad1f8e7236ad4175d
!! source digest: sha256:cdfa137e88f59eb3720e56fa4e3fa998ae4b44e0f1f2795726134dc53abc7fc5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

View File

@ -4,7 +4,7 @@
{
"name": "Cost-Revenue Spread",
"summary": "Spread costs and revenues over a custom period",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"development_status": "Beta",
"author": "Onestein,Odoo Community Association (OCA)",
"license": "AGPL-3",

View File

@ -176,7 +176,7 @@ class AccountSpread(models.Model):
def _compute_invoice_line(self):
for spread in self:
invoice_lines = spread.invoice_line_ids
spread.invoice_line_id = invoice_lines and invoice_lines[0] or False
spread.invoice_line_id = invoice_lines and invoice_lines[-1:] or False
def _inverse_invoice_line(self):
for spread in self:
@ -573,7 +573,7 @@ class AccountSpread(models.Model):
mls_to_reconcile = spread_mls.filtered(lambda l: l.account_id == account)
if mls_to_reconcile:
do_reconcile = mls_to_reconcile + self.invoice_line_id
do_reconcile = mls_to_reconcile + self.invoice_line_ids
do_reconcile.remove_move_reconcile()
for line in do_reconcile:
line.reconciled = False

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
@ -367,7 +366,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:560d87ede92fd18ca4a929595b6a9fd9f558f6b577e8c9bad1f8e7236ad4175d
!! source digest: sha256:cdfa137e88f59eb3720e56fa4e3fa998ae4b44e0f1f2795726134dc53abc7fc5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-tools/tree/16.0/account_spread_cost_revenue"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_spread_cost_revenue"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Allows to spread costs or revenues over a customizable periods, to even out cost or invoice spikes.</p>