acsone / bobtemplates.odoo Goto Github PK
View Code? Open in Web Editor NEWA set of mr.bob templates to use when developing Odoo addons.
License: GNU Lesser General Public License v3.0
A set of mr.bob templates to use when developing Odoo addons.
License: GNU Lesser General Public License v3.0
The import statement in the model file should be reorganized.
If not, close.
Given that it's likely that not all my contributions are going to be welcome, is there a sensible way (or can such be created) to easily write custom extensions to acsone/bobtemplates.odoo
?
@sbidoul
Good job thanks!
FYI the following python pure library cookiecutter save a configuration
file with your command line choices.
This allow you to regenerate the full project meta-files with new changes/updates E.g. .travis.yml
, .tox
For the case of this project, maybe we could use this technical to reuse a configuration
file to create a new module based on configuration stored as default value.
Question: The final focus of this project... Is create a scaffold
(just create modules) or a cookiecutter
(create full project too)?
run on windows10 and python27:
(venv) c:\Users\qq470647251\Desktop>mrbob bobtemplates.odoo:addon
File "d:\p\odoo-11.0\venv\lib\site-packages\bobtemplates\odoo\hooks.py", line 37, in _delete_file
os.remove(path)
WindowsError: [Error 3] : u'c:\Users\qq470647251\Desktop\test/README.rst.oca'
If not, close. :)
What about a new migration
template that would generate migration script for a given module?
When being in the current module's directory: mrbob bobtemplates.odoo:migration
It would ask for:
openupgrade
? (yes/no)And then it would:
migrations/{version_number}/(pre/post)-migrate.py
file(s)logging
and add a default _logger.info()
message in the migrate
methodopenupgrade
is selected:
openupgrade
@openupgrade.migrate(use_env=True)
decorator and use the env
variable in the migrate
methodopenupgradelib
to the external dependencies of the manifestIf it's relevant, the same could be done for pre/post-init hooks (I can write a separate issue for that).
--> Generate README (non-oca) or fragments (oca) ? [y]: oca
ERROR: Value must be a boolean (y/n)
--> Generate README (non-oca) or fragments (oca) ? [y]:
@sbidoul Is a new release planned ?
Thanks
among others pylint requires / strongly suggests it and could enforce good practice. Not 100% sure if a sensible way of dealing with docstrings can be found in an odoo context, but at least if inherit == False
, it could be made required.
Encourages thinking before doing ... ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.