Comments (8)
As a general rule I agree that modules should not be trivial, and adding just one field should not be relevant enough to be worth an OCA module by itself.
from maintainer-tools.
IMHO I think this is a really complicated issue. We should ensure modularity as much we can but we should also need to decrease the dependency complexity. As much ugly they can be one field modules need to exist. In the following l describe my reasons why.
There are times that we define one single module for only one field because maybe two very different modules like sale or stock will use it and inside this modules they adding an extra behavior for that field.
For example, Imagine one company that have sale modules installed but they do not manage stock, should they install an stock module only for be able to see that shared field? My answer is not.
I think this modules are required, but for solve the dependency complexity we could use a different approach: Delete this small modules (one field module) and add the functionality into a more generic bigger/complete module taking into account that this last module should have the option to activate/deactivate any of the functionalities that it have. This way the users will be able to have more simple dependency tree and will be able to select only the functionalities that they required.
This new approach it solves the dependency complexity issue in some way but will give us an extra complexity:
- Adding new functionalities will be harder task because will need to add the logic to activate or deactivate every functionality. However this is a drawback for development team but will be an
advantage for the users because they will have control of all functionalities they want or not to have. - Instance performance will decrease trying to know what functionalities will be use or not. Also database complexity will be increase giving us a larger new fields that if the user have not activate they will be dead data that will be never set or use.
from maintainer-tools.
@zaoral, for the case you mention, you only need to define the field twice, once on each module. When both are installed, the field overriding is made without problems.
My opinion about the one-field module is "depends". If the field is important enough (like the gender one in employees), and is added with the corresponding filters, group by and so on, it's justified then to add a module for this.
from maintainer-tools.
@pedrobaeza True, but I believe that the wording should be "in general modules should not be trivial". There can be properly justified exceptions, but it us up to the proponent to make that explanation. Otherwise, if it is to just add fields, it would be best to add several in a single module, grouped by a them.
Adding just one field along with some logic and filters probably is a non trivial module. In fact most OCA/department modules probably are like this.
In the end, there could be a general indication about this in the guide lines, but the final word is on the PSC - if the PSC says that the module is not relevant enough, it shouldn't be merged.
from maintainer-tools.
@dreispt, good explanation. Can you please propose a modification in the guidelines with this?
from maintainer-tools.
@dreispt I agree with your explanation too. I will let this issue open until the guidelines are updated in case someone else would like to comment.
from maintainer-tools.
OK, I think that shouldn't take much time to do that.
from maintainer-tools.
I believe there is an pending action for me here, correct?
from maintainer-tools.
Related Issues (20)
- Bug No package metadata was found for oca-maintainers-tools when generating readme file HOT 6
- [RFC] Updating the README generator automation HOT 29
- Add a new CONTEXT section into README.rst HOT 6
- False warning C7902(missing-readme) on some repo HOT 3
- pre-commit crashes in CI HOT 1
- Documentation for the best way to manage a high number of OCA repositories HOT 11
- I faced with error while using this module in pre-commit. HOT 1
- About squashing translation commits HOT 2
- Update our tooling to support Odoo 17 HOT 20
- Mention `odoo-module-migrator` in migration procedure wiki page HOT 1
- Mention `oca-port` in migration procedure wiki page HOT 6
- oca-gen-addon-readme: exits with no error if `description.rst` is not present HOT 14
- Update migration v17 Wiki HOT 2
- Clarify CONTRIBUTOR.md formatting HOT 20
- Wiki migration 17.0: New Settings format HOT 1
- oca-gen-addon-readme: stop emitting an XML declaration HOT 1
- Fail to run pre-commit on OCA project: ERROR No matching distribution found for setuptools_scm HOT 2
- Update wiki "Migration to version 16.0" with `fields_view_get` becomes `get_view` HOT 2
- Mention data-hotkey in the 15.0 migration guide
- delete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maintainer-tools.