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

14.0 mig crm phonecall #361

Closed
wants to merge 48 commits into from
Closed

14.0 mig crm phonecall #361

wants to merge 48 commits into from

Conversation

redapureskill
Copy link
Contributor

Migrating crm_phonecall to from V13 to V14.

cubells and others added 30 commits October 26, 2020 15:38
* crm_phonecall module (#131)

This module is the part extracted from Odoo v8 crm module from Odoo that allows to record phone calls. As it has been stripped off from Odoo v9, we add again the feature via this module.

Migration scripts are also included to upgrade a v8 database via OpenUpgrade and don't lose your history.

* [MIG] crm_phone_call: Migrated to 10.0

 - FIX: Correct some lint errors

* [MIG] crm_phone_call: Migrated to 10.0
Currently translated at 100.0% (150 of 150 strings)

Translation: crm-12.0/crm-12.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_phonecall/es/
Currently translated at 86.0% (129 of 150 strings)

Translation: crm-12.0/crm-12.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_phonecall/de/
Currently translated at 92.7% (139 of 150 strings)

Translation: crm-12.0/crm-12.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_phonecall/de/
Currently translated at 98.0% (147 of 150 strings)

Translation: crm-12.0/crm-12.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_phonecall/de/
Currently translated at 27.3% (41 of 150 strings)

Translation: crm-12.0/crm-12.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_phonecall/hr/
Currently translated at 41.3% (62 of 150 strings)

Translation: crm-12.0/crm-12.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_phonecall/hr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: crm-13.0/crm-13.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_phonecall/
ibuioli and others added 7 commits October 26, 2020 15:38
Currently translated at 100.0% (161 of 161 strings)

Translation: crm-13.0/crm-13.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_phonecall/es_AR/
The Phonecall form's statusbar is intended to be clickable, but Odoo 13 is apparently no longer compatible with clickable="True". Instead, either clickable="1" or options="{'clickable': 1}" must be used. Odoo core code uses the latter, so the Claim form has been updated to match core convention.
Currently translated at 100.0% (161 of 161 strings)

Translation: crm-13.0/crm-13.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_phonecall/es_AR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: crm-13.0/crm-13.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_phonecall/
Currently translated at 100.0% (161 of 161 strings)

Translation: crm-13.0/crm-13.0-crm_phonecall
Translate-URL: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_phonecall/es_AR/
@@ -48,6 +48,7 @@ repos:
- "@prettier/[email protected]"
args:
- --plugin=@prettier/plugin-xml
files: \.xml$

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was giving me error on prettier and xml plugin in pre-commit, when i added it, it worked 👍

Copy link

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @redapureskill, thank you for your contribution. Could you adapt your code ?

@@ -1,11 +1,10 @@
# Copyright 2017 Tecnativa - Vicent Cubells

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot remove authorship

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure my bad

"category": "Customer Relationship Management",
"author": "Odoo S.A., Tecnativa, Odoo Community Association (OCA)",
"author": "Odoo Community Association (OCA)",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git was showing problem with "no Odoo Community Association (OCA)" author found in manifest.
i'll fix it

@@ -0,0 +1 @@
../../../../crm_phonecall

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmmh, I think your link is not good (see Travis error). Did you use setuptools-odoo-make-default ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was getting this erreur when i do it :
OSError: [WinError 1314] Le client ne dispose pas d'un privilège nécessaire: '..\..\..\..\crm_phonecall' -> '.\setup\crm_phonecall\odoo\addons\crm_phonecall'
i tried with administrator same thing.

@pedrobaeza
Copy link
Member

Are you developing in Windows? If so, that's the problem I'm afraid.

Copy link
Contributor Author

@redapureskill redapureskill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows and docker

@@ -48,6 +48,7 @@ repos:
- "@prettier/[email protected]"
args:
- --plugin=@prettier/plugin-xml
files: \.xml$
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was giving me error on prettier and xml plugin in pre-commit, when i added it, it worked 👍

@pedrobaeza
Copy link
Member

I think the flow is not well supported by Windows, as there's no symbolic link option there.

@rousseldenis
Copy link

@redapureskill The prettier problem should almost be changed in a separate commit (and best in another PR). As prettier for xml is quite new in OCA, I suggest you to point out what's going wrong (with error message) and take a look there OCA/oca-addons-repo-template#34 if it is not the problem you have.

@redapureskill
Copy link
Contributor Author

Generate default setup.py for an addons directory........................Failed

  • hook id: setuptools-odoo-make-default
  • exit code: 1

Traceback (most recent call last):
File "C:\Users\y.yahla\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\y.yahla\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\Scripts\setuptools-odoo-make-default.EXE_main
.py", line 7, in
File "c:\users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 397, in main
make_default_setup_addons_dir(
File "c:\users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 151, in make_default_setup_addons_dir
make_default_setup_addon(
File "c:\users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 121, in make_default_setup_addon
os.symlink(os.path.relpath(addon_dir, odoo_addons_path), link_path)
OSError: [WinError 1314] Le client ne dispose pas d'un privilège nécessaire: '..\..\..\..\crm_phonecall' -> '.\setup\crm_phonecall\odoo\addons\crm_phonecall'

@redapureskill
Copy link
Contributor Author

Generate default setup.py for an addons directory........................Failed

  • hook id: setuptools-odoo-make-default
  • exit code: 1

Traceback (most recent call last):
File "C:\Users\y.yahla\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\y.yahla\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\Scripts\setuptools-odoo-make-default.EXE__main
.py", line 7, in
File "c:\users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 397, in main
make_default_setup_addons_dir(
File "c:\users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 151, in make_default_setup_addons_dir
make_default_setup_addon(
File "c:\users\y.yahla.cache\pre-commit\repo_uveda\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 121, in make_default_setup_addon
os.symlink(os.path.relpath(addon_dir, odoo_addons_path), link_path)
OSError: [WinError 1314] Le client ne dispose pas d'un privilège nécessaire: '........\crm_phonecall' -> '.\setup\crm_phonecall\odoo\addons\crm_phonecall'

this is what's stopping me rn :'(

@pedrobaeza
Copy link
Member

It seems you are forced to develop in Linux.

@redapureskill
Copy link
Contributor Author

It seems you are forced to develop in Linux.

i wonder if there's a docker image with git+python ?

@pedrobaeza
Copy link
Member

Well, I think a base Ubuntu Docker image should be enough for having the proper stack, but I recommend you that if you are going to be serious in this Odoo world, to fully switch to Linux in your development environment.

@redapureskill
Copy link
Contributor Author

i am, and i'll be switching to linux ,
thank you pedro

@redapureskill
Copy link
Contributor Author

on linux, i'm getting errors on shebangs in pre-commit 👍
Check that executables have shebangs.....................................Failed

  • hook id: check-executables-have-shebangs
  • exit code: 1

crm_phonecall/report/crm_phonecall_report_view.xml: marked executable but has no (or invalid) shebang!
If it isn't supposed to be executable, try: chmod -x crm_phonecall/report/crm_phonecall_report_view.xml
If it is supposed to be executable, double-check its shebang.
...

and

pylint with mandatory checks.............................................Failed

  • hook id: pylint
  • exit code: 4

************* Module crm_phonecall.report.init
crm_phonecall/report/init.py:1: [W8201(incoherent-interpreter-exec-perm), ] You have a python file with execution permissions but you don't have an interpreter magic comment, or a magic comment but no execution permission. If you really needs a execution permission then add a magic comment ( https://en.wikipedia.org/wiki/Shebang_(Unix) ). If you don't needs a execution permission then remove it with: chmod -x init.py
...

@pedrobaeza
Copy link
Member

Are you sharing the files through NTFS or similar (or copied from them)? The +x attribute is not allowed in Windows like filesystems, and then Linux put to all of them this flag by default. You should clone the repo directly on Linux or change these attributes.

@redapureskill
Copy link
Contributor Author

i tried changing the attributes using chmod -x but still same errors.

@pedrobaeza
Copy link
Member

As said, it seems you are under a Window filesystem.

@redapureskill
Copy link
Contributor Author

Should be ok in #364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.