Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l10n_fr_siret: unrequired dependency on account #38

Open
gurneyalex opened this issue Oct 5, 2015 · 8 comments
Open

l10n_fr_siret: unrequired dependency on account #38

gurneyalex opened this issue Oct 5, 2015 · 8 comments

Comments

@gurneyalex
Copy link
Member

It would be great if we could split a bit l10n_fr_siret to remove the dependency on account.

We have one customer at least who would like to record a SIRET number on partners but does not wish to pay an Enterprise Contract for accounting which he is not going to use.

@mdietrichc2c
Copy link

It seems that the only dependency on account is the partner view, which adds new fields in the "Accounting" tab, so if the basic view is used instead, it should be enough to remove the dependency.

@charbeljc
Copy link

Right. We should also remove dependency on Odoo's l10n_fr as a whole, as it also depends on account. In the meantime, I'm just copying the bits we need from l10n_fr_siret.

@alexis-via
Copy link
Contributor

As explained in this comment:

https://github.com/OCA/l10n-france/blob/8.0/l10n_fr_siret/__openerp__.py#L31

the dependency on account is only for a matter of view. But I think it is justified, because you expect to have the SIRET number in the same tab as the VAT number... I don't see a better place for it in the view.

By the way, I thought that the "price per module" for the Entreprise contrat for something of the past... Even if it's still the case, I don't think it's a good justification to change the module. I think that, for such a particular case, you should fork the module for your customer (or propose a PR on the official addons to re-organise the views... which will certainly never be accepted).

@charbeljc
Copy link

@alexis-via How about splitting into l10n_fr_siret_base and l10n_fr_siret, the last one auto-installable and depending on l10n_fr_siret_base and account ?

@alexis-via
Copy link
Contributor

@charbeljc Yes, it's the solution. It will allow you to remove the dependency on 'account'. If you also need to remove the dependency on 'l10n_fr', you need to handle the fact that l10n_fr contains the definition of the 'siret' field (which is a bad thing ; we should remove these fields from 'l10n_fr' and define them in some module in OCA/l10n-france.

@clonedagain
Copy link

If you split in 2 modules name please them l10n_fr_siret and l10n_fr_siret_account to respect the naming convention.
If you want to get rid of the dependency on l10n_fr you'd have to also make a glue module l10n_fr_siret_l10n_fr.
Please make sure they're auto-installed.

@charbeljc
Copy link

Hi @clonedagain, ok for naming conventions. For the second point, yes, as l10n_fr depends on account, we definitively want to get rid of this dependency and define all siret information in l10n_fr_siret. And we also want to make sure that installing l10n_fr wont override definition given by previous l10n_fr_siret installation.

From what I understand, this would be the role of our l10n_fr_siret_l10n_fr auto-installable glue module.
Could you elaborate on this (what should be the dependencies ? l10n_fr_siret + l10n_fr ?)

Thanks you !

@github-actions
Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 24, 2021
alexis-via added a commit to akretion/l10n-france that referenced this issue Nov 26, 2024
Fixes OCA#38  l10n_fr_siret: unrequired dependency on account
This is now possible because l10n_fr doesn't depend on account anymore
and there is a new official module l10n_fr_account that acts as a glue
module between l10n_fr and account.
@alexis-via alexis-via reopened this Nov 26, 2024
@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants