[FIX] account_loan: use company_ids in ir.rule multi-company

[CHG] account_loan: set company_id to false on sequence so sequence can be used in a multi-company context

[BOT] post-merge updates
This commit is contained in:
Zina Rasoamanana
2023-10-31 08:52:24 +01:00
committed by Víctor Martínez
parent e8b08a7bef
commit 0cb1fcae7f
5 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ Account Loan management
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9d9d51c74c42f5705d82ebe5c4b6d546f2a8b378874d0ac2c3c88af99abfa3fe
!! source digest: sha256:352ebf0a912e2b782accbfaad15fe1f96402c8c900402da7d623ea13d1581b17
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

View File

@@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Account Loan management",
"version": "16.0.1.0.2",
"version": "16.0.1.0.3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",
"license": "AGPL-3",

View File

@@ -10,5 +10,6 @@
<field name="code">account.loan</field>
<field name="prefix">ACL</field>
<field name="padding">6</field>
<field name="company_id" eval="False" />
</record>
</odoo>

View File

@@ -5,7 +5,7 @@
<field ref="model_account_loan" name="model_id" />
<field eval="True" name="global" />
<field name="domain_force">
['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
['|',('company_id','=',False),('company_id','in',company_ids)]
</field>
</record>
</odoo>

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9d9d51c74c42f5705d82ebe5c4b6d546f2a8b378874d0ac2c3c88af99abfa3fe
!! source digest: sha256:352ebf0a912e2b782accbfaad15fe1f96402c8c900402da7d623ea13d1581b17
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_loan"><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_loan"><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 accounting to support loans.