Skip to Content

Contributors

Re: Multi-company > one default bank account

> To our understanding using Multi-Company logic is the best fit for our

> purposes, including the need of inter-company billing, however as a fiscal

> host we must be able to set one default bank account (of the main/parent

> company) for all the children companies.

note that multicompany separates entities to some degree, but as soon as you 
allow any user of the child companies access to the configuration, they can 
undo all of this. The same if you install modules that allow users to run 
code.


> We tried to set it as a default attribute from inherited account.move model

> & form, & res.partner.bank, and also muted restriction in res.bank to allow

> different companies have the same bank account. This however doesn’t seem

> to work.

links to code are much more helpful than verbal descriptions
 

> We also tried to set a default bank account value in payment mode, but we

> couldn’t make the parent's mode be accessible for daughter companies.

did you change
https://github.com/OCA/bank-payment/blob/16.0/account_payment_mode/security/
account_payment_mode.xml#L7
?


-- 
Your partner for the hard Odoo problems
https://hunki-enterprises.com

by Holger Brunn - 04:55 - 18 Jan 2023

Reference

  • Multi-company > one default bank account
    Dear Contributors,
     
    We are a young distributed devops coop, part of Bar Kayma  - a nonprofit cooperative cultural fiscal hosting consortium from Jerusalem - and a fresh member of OCA, very looking forward to becoming a contributing party to the commons. 

    Recently we started the project of implementing our fiscal hosting frameworks on self hosted  Odoo with the end-goal of developing  our vertical solution of fiscal sponsorship and self management for Non-Profit Projects for social economy peers (basically an Odoo-based OpenCollective.com equivalent) to be shared with the OCA. 

    To our understanding using Multi-Company logic is the best fit for our purposes, including the need of inter-company billing, however as a fiscal host we must be able to set one default bank account (of the main/parent company) for all the children companies.

    So with a lot of inspiration from OCA/Cooperative we started customising and extending Accounting to our needs and for V16 - but still can’t figure out how to make it work properly.

    We tried to set it as a default attribute from inherited account.move model & form, & res.partner.bank, and also muted restriction in res.bank to allow different companies have the same bank account. This however doesn’t seem to work.

    We also tried to set a default bank account value in payment mode, but we couldn’t make the parent's mode be accessible for daughter companies.

    Are we using a wrong approach to the problem?  Or deprecated methods? Had someone already ported any relevant parts of the vertical cooperative  accounting to  v16?

    We would appreciate any help, advice, suggestions, or working examples on how to add this feature without reinventing the wheel.

    Thank you in advance,
    Lena & Talia

    Moshchot Coop
    A DISTRIBUTED OPEN SOURCE COOPERATIVE




    by "Moshchot Coop" <tali@moshchot.org> - 04:10 - 18 Jan 2023