-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[8.0] prototype export data and demo files #279
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
[8.0] prototype export data and demo files #279
Conversation
|
@kurkop I did some testing on Runbot and tried to install the generated module. Few things to fix:
Category and summary are on the same line: Data keyword contains demo file and demo keyword is wrong: If you can, we should remove the description keyword and output the content in a README.rst file
I created a char file with a length and I got an error message when installing the generated module. The coma after readonly is missing: |
|
@kurkop Can you also bump the version of the prototyper to 8.0.0.4.0 ? Thanks! |
|
@max3903 I can't see the openerp.py errors: This file not exists in module_prototyper. (models/model.py) I'm confused? |
|
@kurkop There are old beta messages. Your fix is welcome (if you want) ************* Module module_prototyper
module_prototyper/__init__.py:1: [E7901(rst-syntax-error), ] data/README.rst:47 Unexpected possible title overline or transition.|Treating it as ordinary text because it's so short.
************* Module module_prototyper.__openerp__
module_prototyper/__openerp__.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
************* Module module_prototyper.models.ir_model_fields
module_prototyper/models/ir_model_fields.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
module_prototyper/models/ir_model_fields.py:27: [C8104(class-camelcase), ir_model_fields] Use `CamelCase` "IrModelFields" in class name "ir_model_fields". You can use oca-autopep8 of https://github.com/OCA/maintainer-tools to auto fix it.
module_prototyper/models/ir_model_fields.py:36: [W8103(translation-field), ir_model_fields] Translation method _("string") in fields is not necessary.
module_prototyper/models/ir_model_fields.py:41: [W8103(translation-field), ir_model_fields] Translation method _("string") in fields is not necessary.
module_prototyper/models/ir_model_fields.py:44: [W8103(translation-field), ir_model_fields] Translation method _("string") in fields is not necessary.
module_prototyper/models/ir_model_fields.py:47: [W8103(translation-field), ir_model_fields] Translation method _("string") in fields is not necessary.
************* Module module_prototyper.models.licenses
module_prototyper/models/licenses.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
************* Module module_prototyper.models.module_prototyper
module_prototyper/models/module_prototyper.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
************* Module module_prototyper.tests.test_prototype
module_prototyper/tests/test_prototype.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
************* Module module_prototyper.tests.test_prototype_module_export
module_prototyper/tests/test_prototype_module_export.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
module_prototyper/tests/test_prototype_module_export.py:27: [C8104(class-camelcase), test_prototype_module_export] Use `CamelCase` "TestPrototypeModuleExport" in class name "test_prototype_module_export". You can use oca-autopep8 of https://github.com/OCA/maintainer-tools to auto fix it.
************* Module module_prototyper.wizard.module_prototyper_module_export
module_prototyper/wizard/module_prototyper_module_export.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-` |
|
@kurkop The errors I mentioned are in the generated module, not in the prototyper. |
|
@kurkop Few remaining things to fix:
|
|
@max3903 excuse me, but I don't understand how fix errors to coverage testing. Do you can fix these? |
|
@kurkop Coveralls is red because the test coverage decreased. If you add a test to pass through new lines of code, it will increase and get green. Let me know if you can fix the 3 items I mentioned above. |
…templates/8.0/data/model_name.xml.template, module_prototyper/wizard/module_prototyper_module_export.py, module_prototyper/wizard/module_prototyper_module_export_view.xml): Added and override methods/views that generate files during export.
…rt.py): fixed pep8 errors
…templates/8.0/data/model_name.xml.template): added suport to many2many field when export data
[IMP] Bump version. Add contributor.
[FIX] Pylint messages [IMP] Bump version. Add contributor. [ADD] README.rst.template
77744f7 to
7363b45
Compare
Web mail send using composition wizard instead of 'mailto:'
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Syncing from upstream OCA/server-tools (10.0)
This commit add changes to PR #276 (fix bug when export many2many fields).
Updated: