Archives
- By thread 1472
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 57
- December 2025 33
- January 2026 63
- February 2026 48
Contributors
contributors@odoo-community.org
-
requirements.txt: Repository Level vs Module Level
Hi all,As i see, usually in OCA repositories "requirements.txt" file with pip dependencies is located in the root of the repository and contains a list of all python dependencies for all addons in the repository. This way it works fine, when we clone full repository, and install all dependencies for all modules there, thus when user will try to install new module on DB, 99% that all python dependencies will be satisfied.But, let's take for example repository partner-contact repository for Odoo 12.0 and let's try to add the module 'partner_email_check' to odoo server. For this task, i will use [odoo-helper-scripts](https://github.com/katyukha/odoo-helper-scripts) that can automatically resolve repository dependencies (including those specified by oca_dependencies.txt). So, at first i would try to fetch (clone) repository partner-contact, and in this case system will automatically fetch 42 OCA repositories following 'oca_requirements.txt', and also it will try to install python dependencies mentioned in requirements.txt. It is good for development. But installation this way on prod, may lead to a lot of unneeded modules, that polutes system with strange dependencies that are in some cases may be not installable (for example because of system dependencies).To solve this reason, we started to use 'assembly' approach, that assumes that we have to create separate git repository with only addons needed on server. But in this case, if assembly repo created automatically, there is no way to get python requirements for module, if it is not specified in module directory. Looking for python dependencies in manifest is also not good, because there are python packages exists, that has different name for package and python module inside package.So, may be it have sense to place requirements.txt inside module directory? Thus module's requirements will be always delivered with module, that will make easier installation of module. Also, i think this way, it will be much easier to generate setup.py files for modules, that will contain info about module's python dependencies.Possible drawbacks may be in case, when different versions of python dep will be specified in different modules. But same is applicable for repositories.What do you think about this?With regards,Dmytro Katyukha
by dmytro.katyukha - 10:56 - 11 Feb 2021-
Re: requirements.txt: Repository Level vs Module Level
I think that the number of extra external dependencies is so low (or null, as most of the modules only require Odoo Framework), that managing them manually in an extra requirements.txt per project according needed modules is affordable instead of entering in the IMO hell pip method. That's what we do in Tecnativa and Doodba scaffolding has such option in /odoo/custom/dependencies/pip.txt. Other option in v13+ is to scrap the external dependencies from manifests for getting the proper pip packages.Regards.
by Pedro M. Baeza - 11:40 - 11 Feb 2021 -
Re: requirements.txt: Repository Level vs Module Level
Hello Dmytro,
I feel that the best solution is to adopt pip-installed modules to your workflow.
That may need a learning curve, but it already solves all problems you describe.
I'm not the best person to get into the detail, but I'm sure there on people on this ML that can fill in.
If you prefer to go the Git way, my opinion is that you should to deploy OCA modules from their Git repos.
What I do is to have each OCA repo I need as a submodule, and then have a "link-addons" with symlinks for the modules used.
Only "link-addons" is added to the server addons path.
The requirements.txt is maintained manually - when a new "link-addons" symlink is added, is it has specific dependencies, the requirements.txt is also updated.
For requirements.txt inside modules, this is not an issue in recent Odoo versions, and external_Dependencies now supports the package name.
See https://github.com/odoo/odoo/issues/25541
I hope this is helpful
Daniel
On 11/02/2021 09:56, Dmytro Katyukha wrote:
Hi all,
As i see, usually in OCA repositories "requirements.txt" file with pip dependencies is located in the root of the repository and contains a list of all python dependencies for all addons in the repository. This way it works fine, when we clone full repository, and install all dependencies for all modules there, thus when user will try to install new module on DB, 99% that all python dependencies will be satisfied.
But, let's take for example repository partner-contact repository for Odoo 12.0 and let's try to add the module 'partner_email_check' to odoo server. For this task, i will use [odoo-helper-scripts](https://github.com/katyukha/odoo-helper-scripts) that can automatically resolve repository dependencies (including those specified by oca_dependencies.txt). So, at first i would try to fetch (clone) repository partner-contact, and in this case system will automatically fetch 42 OCA repositories following 'oca_requirements.txt', and also it will try to install python dependencies mentioned in requirements.txt. It is good for development. But installation this way on prod, may lead to a lot of unneeded modules, that polutes system with strange dependencies that are in some cases may be not installable (for example because of system dependencies).
To solve this reason, we started to use 'assembly' approach, that assumes that we have to create separate git repository with only addons needed on server. But in this case, if assembly repo created automatically, there is no way to get python requirements for module, if it is not specified in module directory. Looking for python dependencies in manifest is also not good, because there are python packages exists, that has different name for package and python module inside package.
So, may be it have sense to place requirements.txt inside module directory? Thus module's requirements will be always delivered with module, that will make easier installation of module. Also, i think this way, it will be much easier to generate setup.py files for modules, that will contain info about module's python dependencies.
Possible drawbacks may be in case, when different versions of python dep will be specified in different modules. But same is applicable for repositories.
What do you think about this?
With regards,Dmytro Katyukha_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--
Daniel Reis
Managing Director
M: +351 919991307
E: DReis@OpenSourceIntegrators.comAv Doutor Desidério Cambournac 12 • 2710-553 Sintra, Portugal 



by Daniel Reis - 11:21 - 11 Feb 2021 -
Re: requirements.txt: Repository Level vs Module Level
Hi Dmytro,
You can achieve fine grained (per module) installation using pip.For OCA modules and your example: "pip install odoo12-addon-partner_email_check" should just work, as the OCA modules are available on PyPI.Dependencies on python libraries are installed automatically if they are declared in the manifest, as it is the case for that module.You can also install from git using the PEP 508 syntax for pip VCS urls: "pip install odoo12-addon-partner_email_check@git+https://github.com/OCA/partner-contact@12.0#subdirectory=setup/partner_email_check".You can find more information in this post from 2015 (time flies :) and how it is done in setuptools-odoo.> Looking for python dependencies in manifest is also not good, because there are python packages exists, that has different name for package and python module inside package.This particular problem is also resolved by setuptools-odoo (look for external dependencies override in the setuptools-odoo doc).And for Odoo >=13 you can and should declare the PyPI project name in external_dependencies in the manifest.Best regards,-sbiOn Thu, Feb 11, 2021 at 10:56 AM Dmytro Katyukha <dmytro.katyukha@gmail.com> wrote:Hi all,As i see, usually in OCA repositories "requirements.txt" file with pip dependencies is located in the root of the repository and contains a list of all python dependencies for all addons in the repository. This way it works fine, when we clone full repository, and install all dependencies for all modules there, thus when user will try to install new module on DB, 99% that all python dependencies will be satisfied.But, let's take for example repository partner-contact repository for Odoo 12.0 and let's try to add the module 'partner_email_check' to odoo server. For this task, i will use [odoo-helper-scripts](https://github.com/katyukha/odoo-helper-scripts) that can automatically resolve repository dependencies (including those specified by oca_dependencies.txt). So, at first i would try to fetch (clone) repository partner-contact, and in this case system will automatically fetch 42 OCA repositories following 'oca_requirements.txt', and also it will try to install python dependencies mentioned in requirements.txt. It is good for development. But installation this way on prod, may lead to a lot of unneeded modules, that polutes system with strange dependencies that are in some cases may be not installable (for example because of system dependencies).To solve this reason, we started to use 'assembly' approach, that assumes that we have to create separate git repository with only addons needed on server. But in this case, if assembly repo created automatically, there is no way to get python requirements for module, if it is not specified in module directory. Looking for python dependencies in manifest is also not good, because there are python packages exists, that has different name for package and python module inside package.So, may be it have sense to place requirements.txt inside module directory? Thus module's requirements will be always delivered with module, that will make easier installation of module. Also, i think this way, it will be much easier to generate setup.py files for modules, that will contain info about module's python dependencies.Possible drawbacks may be in case, when different versions of python dep will be specified in different modules. But same is applicable for repositories.What do you think about this?With regards,Dmytro Katyukha_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Stéphane Bidoul - 11:16 - 11 Feb 2021 -
Re: requirements.txt: Repository Level vs Module Level
Hello,or... just use `pip install odoo${version}-addon-module-name` and you can forget about dependencies and about cloning over and over all the repos.Unless you want to use a local editable version, in which case you could simply do `pip install -e $repo/setup/module_name`.Extra goodie: you can pin the module version in your requirements.Hope this helps.Bests,S.On Thu, Feb 11, 2021 at 10:56 AM Dmytro Katyukha <dmytro.katyukha@gmail.com> wrote:Hi all,As i see, usually in OCA repositories "requirements.txt" file with pip dependencies is located in the root of the repository and contains a list of all python dependencies for all addons in the repository. This way it works fine, when we clone full repository, and install all dependencies for all modules there, thus when user will try to install new module on DB, 99% that all python dependencies will be satisfied.But, let's take for example repository partner-contact repository for Odoo 12.0 and let's try to add the module 'partner_email_check' to odoo server. For this task, i will use [odoo-helper-scripts](https://github.com/katyukha/odoo-helper-scripts) that can automatically resolve repository dependencies (including those specified by oca_dependencies.txt). So, at first i would try to fetch (clone) repository partner-contact, and in this case system will automatically fetch 42 OCA repositories following 'oca_requirements.txt', and also it will try to install python dependencies mentioned in requirements.txt. It is good for development. But installation this way on prod, may lead to a lot of unneeded modules, that polutes system with strange dependencies that are in some cases may be not installable (for example because of system dependencies).To solve this reason, we started to use 'assembly' approach, that assumes that we have to create separate git repository with only addons needed on server. But in this case, if assembly repo created automatically, there is no way to get python requirements for module, if it is not specified in module directory. Looking for python dependencies in manifest is also not good, because there are python packages exists, that has different name for package and python module inside package.So, may be it have sense to place requirements.txt inside module directory? Thus module's requirements will be always delivered with module, that will make easier installation of module. Also, i think this way, it will be much easier to generate setup.py files for modules, that will contain info about module's python dependencies.Possible drawbacks may be in case, when different versions of python dep will be specified in different modules. But same is applicable for repositories.What do you think about this?With regards,Dmytro Katyukha_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Simone OrsiFull stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source.
by Simone Orsi. - 11:16 - 11 Feb 2021
-
-
Any module that verify numbers, i.e., employee's citizen ID
Dear community,I have a requirement to validate hr.employee's citizen ID format in my country, but I think it would be nicer if we can just extend some base modules to be more generic.So far, I found this, https://github.com/OCA/partner-contact/tree/13.0/partner_identification, which can verify numbers but onlty to res.partner.Are the more generic base module to be used with other models yet, (or at least for hr.employee)Thank you,Kitti
by Kitti Upariphutthiphong - 06:25 - 11 Feb 2021-
Re: Any module that verify numbers, i.e., employee's citizen ID
Thank you Alexis de Lattre, this is great!On Thu, Feb 18, 2021 at 7:36 PM Alexis de Lattre <alexis.delattre@akretion.com> wrote:Le jeu. 11 févr. 2021 à 12:46, Rubén Seijas <ruben@comunitea.com> a écrit :I would also recommend to use python-stdnum. If the citizen ID validation for your country is not yet supported by python-stdnum, you can add it there ; the maintainer is very nice and reactive. I worked with him to add support for the new VAT numbers of Northern Ireland and it was added a few days later.For example, python-stdnum supports validation of France's social security numbers. Then we have a small "glue" module l10n_fr_hr_check_ssnid that uses python-stdnum and adds a constraint to validate the number :
--Alexis de Lattre
Akretion France - 27 rue Henri Rolland - 69100 Villeurbanne - France
Mail : alexis.delattre@akretion.comMobile : +33 6 99 08 92 45_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Kitti Upariphutthiphong - 04:11 - 18 Feb 2021 -
Re: Any module that verify numbers, i.e., employee's citizen ID
Le jeu. 11 févr. 2021 à 12:46, Rubén Seijas <ruben@comunitea.com> a écrit :I would also recommend to use python-stdnum. If the citizen ID validation for your country is not yet supported by python-stdnum, you can add it there ; the maintainer is very nice and reactive. I worked with him to add support for the new VAT numbers of Northern Ireland and it was added a few days later.For example, python-stdnum supports validation of France's social security numbers. Then we have a small "glue" module l10n_fr_hr_check_ssnid that uses python-stdnum and adds a constraint to validate the number :
--Alexis de Lattre
Akretion France - 27 rue Henri Rolland - 69100 Villeurbanne - France
Mail : alexis.delattre@akretion.comMobile : +33 6 99 08 92 45
by Alexis de Lattre - 01:36 - 18 Feb 2021 -
Re: Any module that verify numbers, i.e., employee's citizen ID
Thank you everyone for the advice / suggestions.On Thu, Feb 11, 2021 at 7:17 PM Daniel Reis <dreis@opensourceintegrators.com> wrote:Hello Ruben,
AFAIK VAT number validation is out of the box in Odoo.
For specific country ID numbers, that be be a different case.
For these, I invite controibutions to the appropriate l10n_* OCA repository: https://github.com/OCA?q=l10n
Thanks
Daniel
On 11/02/2021 11:46, Rubén Seijas wrote:
Hi,
Maybe can this help.
import
stdnum.eu.vatdef check_vat(self, vat):
"""
Check VAT on create partnervat : VAT string"""_LOG.info("Checking VAT number: %s", vat)
if stdnum.eu.vat.is_valid(vat):
_LOG.info("VAT %s is valid", vat)
return vat
else:
_LOG.info("VAT not valid, detecting VAT Country...")
vat_country = stdnum.eu.vat.guess_country(vat)
if vat_country:
vat = vat_country[0].upper() + vat
_LOG.info("Country + VAT = %s, checking is valid", vat)
stdnum.eu.vat.validate(vat)
_LOG.info('VAT is valid: %s', vat)
return vat
else:
raise stdnum.eu.vat.ValidationError(
'All checks have failed on VAT {}'.format(vat))
return vat
El jue, 11 feb 2021 a las 11:57, Torvald Baade Bringsvor (<bringsvor@bringsvor.com>) escribió:
Hi
I made a module a couple of years ago for this requirement:
This validates the number entered to the rules for the Norwegian number (modulo 10) checksum) AFAIK.
But you are right, this is a common requirement for many countries.
-Torvald
tor. 11. feb. 2021 kl. 06:27 skrev Kitti Upariphutthiphong <kittiu@ecosoft.co.th>:
Dear community,
I have a requirement to validate hr.employee's citizen ID format in my country, but I think it would be nicer if we can just extend some base modules to be more generic.
So far, I found this, https://github.com/OCA/partner-contact/tree/13.0/partner_identification, which can verify numbers but onlty to res.partner.
Are the more generic base module to be used with other models yet, (or at least for hr.employee)
Thank you,Kitti
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--
Daniel Reis
Managing Director
M: +351 919991307
E: DReis@OpenSourceIntegrators.comAv Doutor Desidério Cambournac 12 • 2710-553 Sintra, Portugal 



_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Kitti Upariphutthiphong - 05:06 - 16 Feb 2021 -
Re: Any module that verify numbers, i.e., employee's citizen ID
Hello Ruben,
AFAIK VAT number validation is out of the box in Odoo.
For specific country ID numbers, that be be a different case.
For these, I invite controibutions to the appropriate l10n_* OCA repository: https://github.com/OCA?q=l10n
Thanks
Daniel
On 11/02/2021 11:46, Rubén Seijas wrote:
Hi,
Maybe can this help.
import
stdnum.eu.vatdef check_vat(self, vat):
"""
Check VAT on create partnervat : VAT string"""_LOG.info("Checking VAT number: %s", vat)
if stdnum.eu.vat.is_valid(vat):
_LOG.info("VAT %s is valid", vat)
return vat
else:
_LOG.info("VAT not valid, detecting VAT Country...")
vat_country = stdnum.eu.vat.guess_country(vat)
if vat_country:
vat = vat_country[0].upper() + vat
_LOG.info("Country + VAT = %s, checking is valid", vat)
stdnum.eu.vat.validate(vat)
_LOG.info('VAT is valid: %s', vat)
return vat
else:
raise stdnum.eu.vat.ValidationError(
'All checks have failed on VAT {}'.format(vat))
return vat
El jue, 11 feb 2021 a las 11:57, Torvald Baade Bringsvor (<bringsvor@bringsvor.com>) escribió:
Hi
I made a module a couple of years ago for this requirement:
This validates the number entered to the rules for the Norwegian number (modulo 10) checksum) AFAIK.
But you are right, this is a common requirement for many countries.
-Torvald
tor. 11. feb. 2021 kl. 06:27 skrev Kitti Upariphutthiphong <kittiu@ecosoft.co.th>:
Dear community,
I have a requirement to validate hr.employee's citizen ID format in my country, but I think it would be nicer if we can just extend some base modules to be more generic.
So far, I found this, https://github.com/OCA/partner-contact/tree/13.0/partner_identification, which can verify numbers but onlty to res.partner.
Are the more generic base module to be used with other models yet, (or at least for hr.employee)
Thank you,Kitti
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--
Daniel Reis
Managing Director
M: +351 919991307
E: DReis@OpenSourceIntegrators.comAv Doutor Desidério Cambournac 12 • 2710-553 Sintra, Portugal 



by Daniel Reis - 01:15 - 11 Feb 2021 -
Re: Any module that verify numbers, i.e., employee's citizen ID
Hi,Maybe can this help.import
stdnum.eu.vatdef check_vat(self, vat):
"""
Check VAT on create partnervat : VAT string"""_LOG.info("Checking VAT number: %s", vat)
if stdnum.eu.vat.is_valid(vat):
_LOG.info("VAT %s is valid", vat)
return vat
else:
_LOG.info("VAT not valid, detecting VAT Country...")
vat_country = stdnum.eu.vat.guess_country(vat)
if vat_country:
vat = vat_country[0].upper() + vat
_LOG.info("Country + VAT = %s, checking is valid", vat)
stdnum.eu.vat.validate(vat)
_LOG.info('VAT is valid: %s', vat)
return vat
else:
raise stdnum.eu.vat.ValidationError(
'All checks have failed on VAT {}'.format(vat))
return vat
El jue, 11 feb 2021 a las 11:57, Torvald Baade Bringsvor (<bringsvor@bringsvor.com>) escribió:HiI made a module a couple of years ago for this requirement:This validates the number entered to the rules for the Norwegian number (modulo 10) checksum) AFAIK.But you are right, this is a common requirement for many countries.-Torvaldtor. 11. feb. 2021 kl. 06:27 skrev Kitti Upariphutthiphong <kittiu@ecosoft.co.th>:Dear community,I have a requirement to validate hr.employee's citizen ID format in my country, but I think it would be nicer if we can just extend some base modules to be more generic.So far, I found this, https://github.com/OCA/partner-contact/tree/13.0/partner_identification, which can verify numbers but onlty to res.partner.Are the more generic base module to be used with other models yet, (or at least for hr.employee)Thank you,Kitti_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Rubén Seijas - 12:45 - 11 Feb 2021
-
-
Stock valuation and property propagation on Odoo 12
Hi everyone,I need some technical help to understand if the problem comes from my production environment or if it's an Odoo bug.Starting working with stock valuation, I found that the product's `property_valuation` were not updated after changing it from the category.Technically `_compute_valuation_type` is never called when saving the category form whereas the `api.depends` decorator clearly sets `categ_id.property_valuation` as a dependency.That's a big issue because all my products stay in `manual_periodic` even if their category is set to `real_time`.@api.one@api.depends('property_valuation', 'categ_id.property_valuation')def _compute_valuation_type(self):self.valuation = self.property_valuation or self.categ_id.property_valuationCan someone try to set a breakpoint here to see if this computation function is called in its environment ?odoo/addons/stock_account/models/product.py:L48Thank you for your time.--
Yann PAPOUIN, Ingénieur R&D | DEC
by Yann Papouin - 12:40 - 11 Feb 2021 -
Accelerated approval of pull requests
Dear OCA-Maintainers,
i am reaching out to you to request accelerated approval of two pull requests i recently created:
- https://github.com/OCA/web/pull/1805
- Affected modules: web_ir_actions_close_wizard_refresh_view
- Purpose: Migration to 13.0
- https://github.com/OCA/operating-unit/pull/356/
- Affected modules: sale_stock_operating_unit, stock_account_operating_unit
- Purpose: Migration to 13.0
Both pull requests only contain simple migrations, no features were added, which need to be reviewed.
I am contacting you since it is critical for my organsation to have the resulting Wheels in Wheelhouse soon.
Many thanks in advance, you are doing a great job!Best regards,
Bastian Guenther | BI ERP Developer | AMETRAS intelligence GmbH
by "Bastian Guenther" <Bastian.Guenther@ametras.com> - 11:55 - 5 Feb 2021-
Re: Accelerated approval of pull requests
I'd say that rule is inspired from science, where you get three blind reviews for any research paper that you submit for publication. Here we get two transparent reviews, so the rule should be adjusted then: review 2 PRs, expect 1 PR reviewed.camptocampINNOVATIVE SOLUTIONSBY OPEN SOURCE EXPERTSCarlos Serra-ToroSenior Software EngineerOn Fri, 5 Feb 2021 at 14:37, Rafael Blasco <rblasco@rbnpro.com> wrote:+1
Review 3 PR and expect get reviewed 1 PR (Fayolle rules!). OCA’s traffic jump come from everyone expect reviews but don’t review.
Give fist receive later.
J
De: Holger Brunn
Enviado el: viernes, 5 de febrero de 2021 13:57
Para: Contributors <contributors@odoo-community.org>
Asunto: Re: Accelerated approval of pull requestsHi Bastian,> i am reaching out to you to request accelerated approval of two pull> requests i recently created:thank you for your efforts. As contributing as a collaborative effort, I suggestyou review some other PRs, and then politely point those PRs' authors to yourown PRs. Reviewing is work we need to share.Best regards,Holger_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Carlos Serra-Toro - 08:51 - 8 Feb 2021 -
Re: Accelerated approval of pull requests
+1
I will happy to give fist
Op 2/5/21 om 2:37 PM schreef Rafael Blasco:
+1
Review 3 PR and expect get reviewed 1 PR (Fayolle rules!). OCA’s traffic jump come from everyone expect reviews but don’t review.
Give fist receive later.
J
De: Holger Brunn
Enviado el: viernes, 5 de febrero de 2021 13:57
Para: Contributors <contributors@odoo-community.org>
Asunto: Re: Accelerated approval of pull requestsHi Bastian,> i am reaching out to you to request accelerated approval of two pull> requests i recently created:thank you for your efforts. As contributing as a collaborative effort, I suggestyou review some other PRs, and then politely point those PRs' authors to yourown PRs. Reviewing is work we need to share.Best regards,Holger_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Tom Blauwendraat - 04:46 - 5 Feb 2021 -
RE: Accelerated approval of pull requests
+1
Review 3 PR and expect get reviewed 1 PR (Fayolle rules!). OCA’s traffic jump come from everyone expect reviews but don’t review.
Give fist receive later.
J
De: Holger Brunn
Enviado el: viernes, 5 de febrero de 2021 13:57
Para: Contributors <contributors@odoo-community.org>
Asunto: Re: Accelerated approval of pull requestsHi Bastian,> i am reaching out to you to request accelerated approval of two pull> requests i recently created:thank you for your efforts. As contributing as a collaborative effort, I suggestyou review some other PRs, and then politely point those PRs' authors to yourown PRs. Reviewing is work we need to share.Best regards,Holger
by Rafael Blasco (Moduon) - 02:31 - 5 Feb 2021 -
Re: Accelerated approval of pull requests
Hi Bastian, > i am reaching out to you to request accelerated approval of two pull > requests i recently created: thank you for your efforts. As contributing as a collaborative effort, I suggest you review some other PRs, and then politely point those PRs' authors to your own PRs. Reviewing is work we need to share. Best regards, Holger -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 01:56 - 5 Feb 2021 -
Re: Accelerated approval of pull requests
Yes, this is the right direction.
I deploy from Git, but don't rely on OCA merges.
I run project specific branches where my OCA PRs are early merged, and deploy from there.
/Daniel
On 05/02/2021 12:07, Sergio Corato wrote:
Perhabs create a custom PIP server should solve the problem faster?
--
Daniel Reis
Managing Director
M: +351 919991307
E: DReis@OpenSourceIntegrators.comAv Doutor Desidério Cambournac 12 • 2710-553 Sintra, Portugal 



by Daniel Reis - 01:16 - 5 Feb 2021
-
Review PR, that fixes web_view_searchpanel for 12.0
Hi all,I would like to ask someone to review my PR related to the web_view_searchpanel module, that fixes incorrect behavior in case there is an extra search domain present in action.The link to PR: https://github.com/OCA/web/pull/1798My question is to decide whether it makes sense to depend on the OCA module for this functionality, or maybe it would be better to fork it and use my own version.Thanks,With regards,Dmytro Katyukha
by dmytro.katyukha - 05:51 - 4 Feb 2021 -
oca/oca.recipe.odoo repository?
Hi all, I'd like to fork https://github.com/anybox/anybox.recipe.odoo which has been inactive/externally maintained (amongst others by Stefan Rijnhart and me) to a repo under the OCA umbrella, namely oca/oca.recipe.odoo. We had the discussion before in https://odoo-community.org/groups/contributors-15/contributors-27171 where the issue of branding was raised, that's why I suggest the new name. This way we also don't clash with the original on pypi etc. Please don't let this devolve into a discussion about what to use for builds/ deployment, OCA can host various alternatives in my opinion. The fork will probably happen anyways, but I prefer to have it under the OCA organization rather than some specific one just for that. Best regards, Holger Brunn -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 11:01 - 4 Feb 2021-
Re: oca/oca.recipe.odoo repository?
> Could somebody with the appropriate permissions make the settings accessible > to the maintainers (StefanRijnhart+hbrunn at the moment)? > Currently permissions are managed via a GitHub team sync script, from the > PSC members database. The current policy is that only PSC representatives > and board have admin access to the repos. I'm not sure it still makes sense > for tooling repos such as this one, but it's the way it is now. I gave you > access, but it may only last until the team sync script kicks in again. thanks Stéphane, I changed the bits that need changing currently, so it won't be super problematic if we lose access again. > Generally, who is the address to ask about OCA github permission stuff? I > try to avoid asking Alexandre about everything. > I guess it's support@odoo-community.org [3] , but it will mostly end up with > Alexandre and myself anyway ;) That's also something we'll need to work on, > i.e. manage the bus factor for the OCA infrastructure. Cheers, indeed, that's an important one. -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 11:30 - 22 Dec 2021 -
Re: oca/oca.recipe.odoo repository?
we're busy with this currently, but don't have access to the settings tab of https://github.com/OCA/oca.recipe.odoo Could somebody with the appropriate permissions make the settings accessible to the maintainers (StefanRijnhart+hbrunn at the moment)?
Currently permissions are managed via a GitHub team sync script, from the PSC members database.The current policy is that only PSC representatives and board have admin access to the repos.I'm not sure it still makes sense for tooling repos such as this one, but it's the way it is now.I gave you access, but it may only last until the team sync script kicks in again.Generally, who is the address to ask about OCA github permission stuff? I try to avoid asking Alexandre about everything.
I guess it's support@odoo-community.org, but it will mostly end up with Alexandre and myself anyway ;)That's also something we'll need to work on, i.e. manage the bus factor for the OCA infrastructure.Cheers,-sbi
by Stéphane Bidoul - 11:01 - 22 Dec 2021 -
Re: oca/oca.recipe.odoo repository?
Hi all, we're busy with this currently, but don't have access to the settings tab of https://github.com/OCA/oca.recipe.odoo Could somebody with the appropriate permissions make the settings accessible to the maintainers (StefanRijnhart+hbrunn at the moment)? Generally, who is the address to ask about OCA github permission stuff? I try to avoid asking Alexandre about everything. Thanks in advance, Holger -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 10:45 - 22 Dec 2021 -
Re: oca/oca.recipe.odoo repository?
> I'll take care of this this week. yay thanks! We're busy closing PRs on https://github.com/anybox/anybox.recipe.odoo/pulls currently, the plan is to also add py3 tests there and then move the whole thing to the OCA repo -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 08:55 - 3 Mar 2021 -
Re: oca/oca.recipe.odoo repository?
I'll take care of this this week. Alexandre On 04/02/2021 11:02, Holger Brunn wrote: > Hi all, > > I'd like to fork https://github.com/anybox/anybox.recipe.odoo which has been > inactive/externally maintained (amongst others by Stefan Rijnhart and me) to a > repo under the OCA umbrella, namely oca/oca.recipe.odoo. > > We had the discussion before in > https://odoo-community.org/groups/contributors-15/contributors-27171 > where the issue of branding was raised, that's why I suggest the new name. > This way we also don't clash with the original on pypi etc. > > Please don't let this devolve into a discussion about what to use for builds/ > deployment, OCA can host various alternatives in my opinion. > > The fork will probably happen anyways, but I prefer to have it under the OCA > organization rather than some specific one just for that. > > Best regards, > Holger Brunn > > -- Your partner for the hard Odoo problems https://hunki-enterprises.com > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > <https://odoo-community.org/groups/contributors-15> > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe > <https://odoo-community.org/groups?unsubscribe> > -- Alexandre Fayolle Senior Software Engineer Tel : +33 4 58 48 20 30 Camptocamp France SAS 18 rue du Lac Saint André 73 370 Le Bourget-du-Lac France http://www.camptocamp.com
by Alexandre Fayolle - 08:16 - 3 Mar 2021
-
-
Off line module or third party ?
Hello,Some of my prospect need the off line possibility, would you be so kind as to inform me regarding the existing module or the best contractor ?Best regardsVéronique
Véronique Piveteau Helpdesk manager - Consultante veronique.piveteau@auguria.fr +33 6 81 45 58 53 auguria.fr LinkedIn| Facebook| Twitter 
by "Véronique Piveteau" <veronique.piveteau@auguria.fr> - 10:51 - 1 Feb 2021-
Re: Off line module or third party ?
odoo is online only - with the exception of the POS, which can run offline.For any other module to run offline, you'll need to do a custom development. Note that you can use other technologies for that, for example, we've done a mobile app for repair orders (mrp.repair) with offline capabilities, using Flutter.Cheers,Dominique KON-SUN-TACK [Project Manager]Odoo Gold Partner, best Odoo Partner 2014 for APACMobile: + 65 8502 2399Skype: dominique_elicoWebsite: www.elico-corp.com
On Mon, 1 Feb 2021 at 17:52, Véronique Piveteau <veronique.piveteau@auguria.fr> wrote:Hello,Some of my prospect need the off line possibility, would you be so kind as to inform me regarding the existing module or the best contractor ?Best regardsVéronique
Véronique Piveteau Helpdesk manager - Consultante veronique.piveteau@auguria.fr +33 6 81 45 58 53 auguria.fr LinkedIn| Facebook| Twitter 
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by dominique.k - 11:21 - 1 Feb 2021
-
-
How to test v14 upgrade scripts
Hi all,we are porting to 14.0 the OCA/l10n-italy modules and developing some upgrade scripts, like thisOur doubt: is this testable?In general, is it possible to test v14 upgrade scripts before OpenUpgrade is available for v14?Thanks!
--Lorenzo Battistini
https://github.com/eLBati
by Lorenzo Battistini. - 10:06 - 29 Jan 2021-
Re: How to test v14 upgrade scripts
Il giorno ven 29 gen 2021 alle ore 11:27 Holger Brunn <mail@hunki-enterprises.com> ha scritto: > > > In general, is it possible to test v14 upgrade scripts before OpenUpgrade is > > > available for v14? > > yes, you don't need OpenUpgrade for that. We did some test using a pre-migrate script like the one linked by Lorenzo (*). The main purpose is to change the name of the module, as well as rename xmlids, model and tables. Steps: 1) old_name module installation 2) add/change some data 3) checkout to commit containing new_name module, migration script and version bumped 4) launch old_name_module update: ./odoo-bin -c etc/odoo14.cfg -d testdb -u old_name_module --stop-after-init Output: old_name_module: not installable, skipped In fact pre-migrate script is not triggered. We tried this also: 4) launch new_name_module update: ./odoo-bin -c etc/odoo14.cfg -d testdb -u new_name_module --stop-after-init But it didn't work as well. The only way (we have found so far) to trigger pre-migrate script is this: 1) old_name module installation 2) add/change some data 3) checkout to commit containing new_name module, migration script and version bumped 4) execute odoo shell >>> from openupgradelib import openupgrade >>> openupgrade.update_module_names(env.cr, [('old_name_module', 'new_name_module'),], merge_modules=False,) >>> env.cr.commit() 5) launch new_name_module update: ./odoo-bin -c etc/odoo14.cfg -d testdb -u new_name_module --stop-after-init Do you know a way to trigger the migration script without using odoo shell? Thanks in advance. S. (*) https://github.com/OCA/l10n-italy/blob/0d65b1f7fa23facd9ef52749571a4a18a58f4045/l10n_it_vat_payability/migrations/14.0.1.0.0/pre-migrate.py
by Sergio Zanchetta - 10:15 - 28 Apr 2021 -
Re: How to test v14 upgrade scripts
Il giorno ven 23 apr 2021 alle ore 15:20 Sergio Zanchetta <primes2h@gmail.com> ha scritto: > > Il giorno ven 29 gen 2021 alle ore 11:27 Holger Brunn > <mail@hunki-enterprises.com> ha scritto: > > > The only way (we have found so far) to trigger pre-migrate script is this: > > 1) old_name module installation > 2) add/change some data > 3) checkout to commit containing new_name module, migration script and > version bumped > 4) execute odoo shell > >>> from openupgradelib import openupgrade > >>> openupgrade.update_module_names(env.cr, [('l10n_it_codici_carica', 'l10n_it_appointment_code'),], merge_modules=False,) Sorry, this one is obviously: >>> openupgrade.update_module_names(env.cr, [('old_name_module', 'new_name_module'),], merge_modules=False,)
by Sergio Zanchetta - 10:14 - 28 Apr 2021 -
Re: How to test v14 upgrade scripts
Il giorno ven 29 gen 2021 alle ore 11:27 Holger Brunn <mail@hunki-enterprises.com> ha scritto: > > > In general, is it possible to test v14 upgrade scripts before OpenUpgrade is > > > available for v14? > > yes, you don't need OpenUpgrade for that. We did some test using a pre-migrate script like the one linked by Lorenzo (*). The main purpose is to change the name of the module, as well as rename xmlids, model and tables. Steps: 1) old_name module installation 2) add/change some data 3) checkout to commit containing new_name module, migration script and version bumped 4) launch old_name_module update: ./odoo-bin -c etc/odoo14.cfg -d testdb -u old_name_module --stop-after-init Output: old_name_module: not installable, skipped In fact pre-migrate script is not triggered. We tried this also: 4) launch new_name_module update: ./odoo-bin -c etc/odoo14.cfg -d testdb -u new_name_module --stop-after-init But it didn't work as well. The only way (we have found so far) to trigger pre-migrate script is this: 1) old_name module installation 2) add/change some data 3) checkout to commit containing new_name module, migration script and version bumped 4) execute odoo shell >>> from openupgradelib import openupgrade >>> openupgrade.update_module_names(env.cr, [('l10n_it_codici_carica', 'l10n_it_appointment_code'),], merge_modules=False,) >>> env.cr.commit() 5) launch new_name_module update: ./odoo-bin -c etc/odoo14.cfg -d testdb -u new_name_module --stop-after-init Do you know a way to trigger the migration script without using odoo shell? Thanks in advance. S. (*) https://github.com/OCA/l10n-italy/blob/0d65b1f7fa23facd9ef52749571a4a18a58f4045/l10n_it_vat_payability/migrations/14.0.1.0.0/pre-migrate.py
by Sergio Zanchetta - 10:14 - 28 Apr 2021 -
Re: How to test v14 upgrade scripts
> In general, is it possible to test v14 upgrade scripts before OpenUpgrade is > available for v14? yes, you don't need OpenUpgrade for that. We lack a good mechanism to test migration scripts, I'm also not sure how I would implement such a thing in general. The specific script looks a bit pointless to test to me, but you could mock the openupgradelib calls and call the function if you're into coverage. -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 11:25 - 29 Jan 2021
-
-
Odoo2Odoo
Dear Community
According to https://odoo-community.org/groups/contributors-15/contributors-153784?mode=thread&date_begin=&date_end=
and
the subject has been discussed before...
Nowadays, could you please give your experience on bidirectional partial replication of Odoo data between 2 databases ?
Our use case is :
- Main database on land (accounting, inventory, sales, website...)
- Secondary database on a boat that loses Internet connexion for several hours (point_of_sale only)
We already tested https://github.com/JayVora-SerpentCS/SerpentCS_Contributions/tree/13.0/base_synchro it's very slow and have a few issues
We are going to test bucardo.org with Multi Master Replication but it does not look like the perfect solution
Would you go to an ESB for such a small use case ?
Thanks in advance
Best regards
--
Cordialement -------------------------------- Cyril VINH-TUNG INVITU Computer & Network Engineering BP 32 - 98713 Papeete - French Polynesia Tél: +689 40 46 11 99 contact@invitu.com www.invitu.com
P Please consider the environment before printing this e-mail!
by Cyril VINH-TUNG - 10:56 - 25 Jan 2021-
Re: Odoo2Odoo
Hello,A few years ago we worked on a project with 60 knots with Bucardo the documentation is attached, with today's technologies with docker and CD it should be easier to maintain an environment like this.This article may help you: https://www.percona.com/blog/2020/06/09/multi-master-replication-solutions-for-postgresql/I recently did some tests with https://github.com/OCA/connector-odoo2odoo/pull/11 and it looked promising.Best regardsDe: "INVITU" <cyril@invitu.com>
Para: "Odoo Community Association, (OCA) Contributors" <contributors@odoo-community.org>
Enviadas: Segunda-feira, 25 de janeiro de 2021 18:57:28
Assunto: Odoo2OdooDear Community
According to https://odoo-community.org/groups/contributors-15/contributors-153784?mode=thread&date_begin=&date_end=
and
the subject has been discussed before...
Nowadays, could you please give your experience on bidirectional partial replication of Odoo data between 2 databases ?
Our use case is :
- Main database on land (accounting, inventory, sales, website...)
- Secondary database on a boat that loses Internet connexion for several hours (point_of_sale only)
We already tested https://github.com/JayVora-SerpentCS/SerpentCS_Contributions/tree/13.0/base_synchro it's very slow and have a few issues
We are going to test bucardo.org with Multi Master Replication but it does not look like the perfect solution
Would you go to an ESB for such a small use case ?
Thanks in advance
Best regards
--
Cordialement -------------------------------- Cyril VINH-TUNG INVITU Computer & Network Engineering BP 32 - 98713 Papeete - French Polynesia Tél: +689 40 46 11 99 contact@invitu.com www.invitu.com
P Please consider the environment before printing this e-mail!
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Luis F Miléo - 01:16 - 26 Jan 2021
-
-
Right way to do a new OCA module that depends on EE's LGPL module.
Dear community,Got some questions about licensing.There are modules that we want to extend but they are in EE14 --> "approvals", "approvals_purchase".Where approvals is a simple module for approving something. And approvals_purchase allow creating purchase order at the end of process.
They are quite simple. But what we need is to create modules "approvals_purchase_request" and "approvals_hr_expense".I have checked that "approvals", although in EE source code, its license is in CE, LGPL.What is the right way to deal with this?- Just include approvals in OCA and continue the new module (as it is LGPL, not sure)
- We can't use "approvals", and so, we have to first create something similar to it, may be renaming it, add/remove some feature etc. and make it pure OCA module first before continue our needing module.
Thank you!Kitti U.
by Kitti Upariphutthiphong - 04:31 - 25 Jan 2021-
Re: Right way to do a new OCA module that depends on EE's LGPL module.
Yes Pedro, "base_tier_validation" will serve us well, will use it with new approvals object (spending request sounds better).We want this approvals as a helper window only. End user can request all spending in the same place and at after approval, will create all PR, EX and AV. So, as combined amount, it can go through the right approvals steps (versus smaller documents and get away with) and also for budget check in total amount too.I saw, approvals and approvals_purchase, and I think it is intuitive for very end users.On Mon, Jan 25, 2021 at 5:27 PM Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> wrote:Kitti, `base_tier_validation` doesn't serve you as base for this?Regards.El lun, 25 ene 2021 a las 10:27, Kitti Upariphutthiphong (<kittiu@ecosoft.co.th>) escribió:Hi Stephane,Yes, then I think Odoo just forget it as you say, so it defaults to LGPL. But in any case, I will go with the option 2. Which is to create a new module from the beginning.Thanks for your prompt reply.Kitti U.On Mon, Jan 25, 2021 at 3:47 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:> I have checked that "approvals", although in EE source code, its license is in CE, LGPL.Have you checked that with Odoo ? Some EE modules don't have a license key, and when you load them in a database, the license field of ir.module.module defaults to LGPL.But last time I reported that to Odoo it was quickly fixed.So unless explicitly written otherwise I would assume that all the odoo/enterprise repo is under a proprietary license.And you can't create a module that depends on both AGPL and proprietary code.In any case adding code that depends on Odoo EE in OCA is not possible because the EE code is not public so we could not run CI, runbot etc.Best regards,-sbi--On Mon, Jan 25, 2021 at 4:32 AM Kitti Upariphutthiphong <kittiu@ecosoft.co.th> wrote:Dear community,Got some questions about licensing.There are modules that we want to extend but they are in EE14 --> "approvals", "approvals_purchase".Where approvals is a simple module for approving something. And approvals_purchase allow creating purchase order at the end of process.
They are quite simple. But what we need is to create modules "approvals_purchase_request" and "approvals_hr_expense".I have checked that "approvals", although in EE source code, its license is in CE, LGPL.What is the right way to deal with this?- Just include approvals in OCA and continue the new module (as it is LGPL, not sure)
- We can't use "approvals", and so, we have to first create something similar to it, may be renaming it, add/remove some feature etc. and make it pure OCA module first before continue our needing module.
Thank you!Kitti U._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Kitti Upariphutthiphong - 12:21 - 25 Jan 2021 -
Re: Right way to do a new OCA module that depends on EE's LGPL module.
Kitti, `base_tier_validation` doesn't serve you as base for this?Regards.El lun, 25 ene 2021 a las 10:27, Kitti Upariphutthiphong (<kittiu@ecosoft.co.th>) escribió:Hi Stephane,Yes, then I think Odoo just forget it as you say, so it defaults to LGPL. But in any case, I will go with the option 2. Which is to create a new module from the beginning.Thanks for your prompt reply.Kitti U.On Mon, Jan 25, 2021 at 3:47 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:> I have checked that "approvals", although in EE source code, its license is in CE, LGPL.Have you checked that with Odoo ? Some EE modules don't have a license key, and when you load them in a database, the license field of ir.module.module defaults to LGPL.But last time I reported that to Odoo it was quickly fixed.So unless explicitly written otherwise I would assume that all the odoo/enterprise repo is under a proprietary license.And you can't create a module that depends on both AGPL and proprietary code.In any case adding code that depends on Odoo EE in OCA is not possible because the EE code is not public so we could not run CI, runbot etc.Best regards,-sbi--On Mon, Jan 25, 2021 at 4:32 AM Kitti Upariphutthiphong <kittiu@ecosoft.co.th> wrote:Dear community,Got some questions about licensing.There are modules that we want to extend but they are in EE14 --> "approvals", "approvals_purchase".Where approvals is a simple module for approving something. And approvals_purchase allow creating purchase order at the end of process.
They are quite simple. But what we need is to create modules "approvals_purchase_request" and "approvals_hr_expense".I have checked that "approvals", although in EE source code, its license is in CE, LGPL.What is the right way to deal with this?- Just include approvals in OCA and continue the new module (as it is LGPL, not sure)
- We can't use "approvals", and so, we have to first create something similar to it, may be renaming it, add/remove some feature etc. and make it pure OCA module first before continue our needing module.
Thank you!Kitti U._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Pedro M. Baeza - 11:25 - 25 Jan 2021 -
Re: Right way to do a new OCA module that depends on EE's LGPL module.
Hi Stephane,Yes, then I think Odoo just forget it as you say, so it defaults to LGPL. But in any case, I will go with the option 2. Which is to create a new module from the beginning.Thanks for your prompt reply.Kitti U.On Mon, Jan 25, 2021 at 3:47 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:> I have checked that "approvals", although in EE source code, its license is in CE, LGPL.Have you checked that with Odoo ? Some EE modules don't have a license key, and when you load them in a database, the license field of ir.module.module defaults to LGPL.But last time I reported that to Odoo it was quickly fixed.So unless explicitly written otherwise I would assume that all the odoo/enterprise repo is under a proprietary license.And you can't create a module that depends on both AGPL and proprietary code.In any case adding code that depends on Odoo EE in OCA is not possible because the EE code is not public so we could not run CI, runbot etc.Best regards,-sbi--On Mon, Jan 25, 2021 at 4:32 AM Kitti Upariphutthiphong <kittiu@ecosoft.co.th> wrote:Dear community,Got some questions about licensing.There are modules that we want to extend but they are in EE14 --> "approvals", "approvals_purchase".Where approvals is a simple module for approving something. And approvals_purchase allow creating purchase order at the end of process.
They are quite simple. But what we need is to create modules "approvals_purchase_request" and "approvals_hr_expense".I have checked that "approvals", although in EE source code, its license is in CE, LGPL.What is the right way to deal with this?- Just include approvals in OCA and continue the new module (as it is LGPL, not sure)
- We can't use "approvals", and so, we have to first create something similar to it, may be renaming it, add/remove some feature etc. and make it pure OCA module first before continue our needing module.
Thank you!Kitti U._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Kitti Upariphutthiphong - 10:26 - 25 Jan 2021 -
Re: Right way to do a new OCA module that depends on EE's LGPL module.
> I have checked that "approvals", although in EE source code, its license is in CE, LGPL.Have you checked that with Odoo ? Some EE modules don't have a license key, and when you load them in a database, the license field of ir.module.module defaults to LGPL.But last time I reported that to Odoo it was quickly fixed.So unless explicitly written otherwise I would assume that all the odoo/enterprise repo is under a proprietary license.And you can't create a module that depends on both AGPL and proprietary code.In any case adding code that depends on Odoo EE in OCA is not possible because the EE code is not public so we could not run CI, runbot etc.Best regards,-sbi--On Mon, Jan 25, 2021 at 4:32 AM Kitti Upariphutthiphong <kittiu@ecosoft.co.th> wrote:Dear community,Got some questions about licensing.There are modules that we want to extend but they are in EE14 --> "approvals", "approvals_purchase".Where approvals is a simple module for approving something. And approvals_purchase allow creating purchase order at the end of process.
They are quite simple. But what we need is to create modules "approvals_purchase_request" and "approvals_hr_expense".I have checked that "approvals", although in EE source code, its license is in CE, LGPL.What is the right way to deal with this?- Just include approvals in OCA and continue the new module (as it is LGPL, not sure)
- We can't use "approvals", and so, we have to first create something similar to it, may be renaming it, add/remove some feature etc. and make it pure OCA module first before continue our needing module.
Thank you!Kitti U._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Stéphane Bidoul - 09:46 - 25 Jan 2021
-
Repository for repair module
Hello,I'll be working on a module to make a procurement from a repair order in the repair module for V14. But I don't know in which repository I can make the PR, I have searched in OCA Shop and I found modules related to repair in field-service and manufacture repositories.Where is the best repo to add this module?Thanks in advance
by Jesús Alan Ramos Rodriguez - 09:00 - 20 Jan 2021-
Re: Repository for repair module
If that is subcontracting a repair far an equipment of yours, this is a Maintenance feature:
https://github.com/OCA/maintenance
If you are receiving from a customer to repair and then ship back, that is an RMA:
https://github.com/OCA/rma
Thanks
Daniel
On 20/01/2021 20:01, Jesús Alan Ramos Rodríguez wrote:
Hello,
I'll be working on a module to make a procurement from a repair order in the repair module for V14. But I don't know in which repository I can make the PR, I have searched in OCA Shop and I found modules related to repair in field-service and manufacture repositories.
Where is the best repo to add this module?
Thanks in advance
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--
Daniel Reis
Managing Director
M: +351 919991307
E: DReis@OpenSourceIntegrators.comAv Doutor Desidério Cambournac 12 • 2710-553 Sintra, Portugal 



by Daniel Reis - 10:31 - 20 Jan 2021
-
-
Muli Cloud and Hybrid Cloud for Odoo Solutions
Hi Contributors,JuanDCG.
I've been 4 months researching about IaC with Terraform for Odoo implementations at multi cloud level.
I've also been researching in hybrid cloud with kubernetes for Odoo solutions.
This research is cover by the open source project "TerradooCloud" (https://github.com/TerradooCloud), where I want offer a documentation reference for all the possible deployments scenarios for Odoo on Cloud.
Recently, Google Cloud launch a course and already have a docs for SAP (https://cloud.google.com/solutions/sap/docs).
This is like my intends to build for Odoo instead for SAP.
At this moment, I don't have more time to spend in this research, I only can offer management of GitHub projects and reviews, but due to it is a very big and ambitious project, only can be possible with contributors interested.
Now, I'm focusing in IoT and electronics, so I continue with microk8s and Odoo for server side of IoT, but my focus will be in electronics side.
If there are anyone interested in participate in this project is already invited to be a member of the organization, but with external PRs is the best way to participate.
Thank you very much, I hope this project will be interested to anyone,
by Juan Del Castillo Gómez - 01:36 - 20 Jan 2021-
Re: Muli Cloud and Hybrid Cloud for Odoo Solutions
Hi,Sorry for the delay, but I've no time for this project.Naran, thanks for your feedback, it is great and you are a very early adopter of k8s with odoo.But, there are other study cases when k8s is too big, for example an odoo for a freelence.I would like cover all study cases from one instance to k8s hosting.But now, I don't have time for this and the project is stopped to me.I don't know if you are interested in share your experience and know-how at TerradooCloud documentation or you preferred maintain it as private information.Cheers,Juan.El jue, 21 ene 2021 a las 4:12, Naran M (<moturi12@gmail.com>) escribió:Hi Juan,Thanks for the info.Did you come across an open source Rancher orchestration tool (https://rancher.com/ , now owned by Suse)...? It enables the deployments on K8's with multi-cloud providers.We have been using the Rancher for the last 4+ years to deploy our Odoo productions instances on multi-cloud and the experience is amazing, it made it a lot easier to deploy & manage services.For IoT related, they have K3's ( lightweight K8's).Cheers,NaranOn Wed, Jan 20, 2021 at 11:37 PM Juan DCG <juandcg314@gmail.com> wrote:Hi Contributors,JuanDCG.
I've been 4 months researching about IaC with Terraform for Odoo implementations at multi cloud level.
I've also been researching in hybrid cloud with kubernetes for Odoo solutions.
This research is cover by the open source project "TerradooCloud" (https://github.com/TerradooCloud), where I want offer a documentation reference for all the possible deployments scenarios for Odoo on Cloud.
Recently, Google Cloud launch a course and already have a docs for SAP (https://cloud.google.com/solutions/sap/docs).
This is like my intends to build for Odoo instead for SAP.
At this moment, I don't have more time to spend in this research, I only can offer management of GitHub projects and reviews, but due to it is a very big and ambitious project, only can be possible with contributors interested.
Now, I'm focusing in IoT and electronics, so I continue with microk8s and Odoo for server side of IoT, but my focus will be in electronics side.
If there are anyone interested in participate in this project is already invited to be a member of the organization, but with external PRs is the best way to participate.
Thank you very much, I hope this project will be interested to anyone,_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Juan Del Castillo Gómez - 06:51 - 1 Feb 2021 -
Re: Muli Cloud and Hybrid Cloud for Odoo Solutions
Hi Juan,Thanks for the info.Did you come across an open source Rancher orchestration tool (https://rancher.com/ , now owned by Suse)...? It enables the deployments on K8's with multi-cloud providers.We have been using the Rancher for the last 4+ years to deploy our Odoo productions instances on multi-cloud and the experience is amazing, it made it a lot easier to deploy & manage services.For IoT related, they have K3's ( lightweight K8's).Cheers,NaranOn Wed, Jan 20, 2021 at 11:37 PM Juan DCG <juandcg314@gmail.com> wrote:Hi Contributors,JuanDCG.
I've been 4 months researching about IaC with Terraform for Odoo implementations at multi cloud level.
I've also been researching in hybrid cloud with kubernetes for Odoo solutions.
This research is cover by the open source project "TerradooCloud" (https://github.com/TerradooCloud), where I want offer a documentation reference for all the possible deployments scenarios for Odoo on Cloud.
Recently, Google Cloud launch a course and already have a docs for SAP (https://cloud.google.com/solutions/sap/docs).
This is like my intends to build for Odoo instead for SAP.
At this moment, I don't have more time to spend in this research, I only can offer management of GitHub projects and reviews, but due to it is a very big and ambitious project, only can be possible with contributors interested.
Now, I'm focusing in IoT and electronics, so I continue with microk8s and Odoo for server side of IoT, but my focus will be in electronics side.
If there are anyone interested in participate in this project is already invited to be a member of the organization, but with external PRs is the best way to participate.
Thank you very much, I hope this project will be interested to anyone,_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Naran Moturi - 04:11 - 21 Jan 2021
-
-
Header sorting in form view
Dear community,I'm looking for an addon or a way to keep user sorting choices.As you know, you can click on a One2Many or Many2Many header (of a stored field) to sort the lines but any action in the form (validate something or encoding quantities, etc.) reload it and reset the user sort.I don't have a great JS expertise that's why I'm asking here before starting to work on a new module/hook dedicated to this feature.Thank you.--Yann Papouin
by Yann Papouin - 11:11 - 11 Jan 2021-
Re: Header sorting in form view
Just a PR, thanksDavidLe mer. 24 févr. 2021 à 17:22, Yann Papouin <y.papouin@dec-industrie.com> a écrit :Is there a procedure somewhere ? or just make a pull request ?--
Yann PAPOUIN, Ingénieur R&D | DECLe mer. 24 févr. 2021 à 09:10, David Beal <david.beal@akretion.com> a écrit :Thanks Yann,Probably a good addition in oca repo ?Le mar. 23 févr. 2021 à 23:36, Yann Papouin <y.papouin@dec-industrie.com> a écrit :For the record:Values are kept locally until a full reload.The user orderedBy is stored in a dictionary where the primary key is model,res_id and the secondary key is the field name.--
Yann PAPOUIN, Ingénieur R&D | DECLe lun. 11 janv. 2021 à 11:06, Yann Papouin <y.papouin@dec-industrie.com> a écrit :Dear community,I'm looking for an addon or a way to keep user sorting choices.As you know, you can click on a One2Many or Many2Many header (of a stored field) to sort the lines but any action in the form (validate something or encoding quantities, etc.) reload it and reset the user sort.I don't have a great JS expertise that's why I'm asking here before starting to work on a new module/hook dedicated to this feature.Thank you.--Yann Papouin_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by David BEAL - 05:36 - 24 Feb 2021 -
Re: Header sorting in form view
Is there a procedure somewhere ? or just make a pull request ?--
Yann PAPOUIN, Ingénieur R&D | DECLe mer. 24 févr. 2021 à 09:10, David Beal <david.beal@akretion.com> a écrit :Thanks Yann,Probably a good addition in oca repo ?Le mar. 23 févr. 2021 à 23:36, Yann Papouin <y.papouin@dec-industrie.com> a écrit :For the record:Values are kept locally until a full reload.The user orderedBy is stored in a dictionary where the primary key is model,res_id and the secondary key is the field name.--
Yann PAPOUIN, Ingénieur R&D | DECLe lun. 11 janv. 2021 à 11:06, Yann Papouin <y.papouin@dec-industrie.com> a écrit :Dear community,I'm looking for an addon or a way to keep user sorting choices.As you know, you can click on a One2Many or Many2Many header (of a stored field) to sort the lines but any action in the form (validate something or encoding quantities, etc.) reload it and reset the user sort.I don't have a great JS expertise that's why I'm asking here before starting to work on a new module/hook dedicated to this feature.Thank you.--Yann Papouin_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yann Papouin - 05:21 - 24 Feb 2021 -
Re: Header sorting in form view
Thanks Yann,Probably a good addition in oca repo ?Le mar. 23 févr. 2021 à 23:36, Yann Papouin <y.papouin@dec-industrie.com> a écrit :For the record:Values are kept locally until a full reload.The user orderedBy is stored in a dictionary where the primary key is model,res_id and the secondary key is the field name.--
Yann PAPOUIN, Ingénieur R&D | DECLe lun. 11 janv. 2021 à 11:06, Yann Papouin <y.papouin@dec-industrie.com> a écrit :Dear community,I'm looking for an addon or a way to keep user sorting choices.As you know, you can click on a One2Many or Many2Many header (of a stored field) to sort the lines but any action in the form (validate something or encoding quantities, etc.) reload it and reset the user sort.I don't have a great JS expertise that's why I'm asking here before starting to work on a new module/hook dedicated to this feature.Thank you.--Yann Papouin_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by David BEAL - 09:01 - 24 Feb 2021 -
Re: Header sorting in form view
For the record:Values are kept locally until a full reload.The user orderedBy is stored in a dictionary where the primary key is model,res_id and the secondary key is the field name.--
Yann PAPOUIN, Ingénieur R&D | DECLe lun. 11 janv. 2021 à 11:06, Yann Papouin <y.papouin@dec-industrie.com> a écrit :Dear community,I'm looking for an addon or a way to keep user sorting choices.As you know, you can click on a One2Many or Many2Many header (of a stored field) to sort the lines but any action in the form (validate something or encoding quantities, etc.) reload it and reset the user sort.I don't have a great JS expertise that's why I'm asking here before starting to work on a new module/hook dedicated to this feature.Thank you.--Yann Papouin
by Yann Papouin - 11:35 - 23 Feb 2021
-
-
Sales terms
Hi there !I wish you the best for 2021 !I'm on the way to add terms.template model to be able to define different terms template onSale Order (maybe on invoice as well later) so that users can choose the template that will populate terms ( note fields as Html field). Expected behaviour is what happens with email template, the user chooses a term template, the note field will be populated and the user can change it afterwards.Do you know a such module exists if not what do you think to create a such module in Sale Workflow repoRegards,
by Pierre Verkest - 11:16 - 7 Jan 2021-
Re: Sales terms
In fact functionalities are quite similar but the intent is quite different so I've proposed a new module and explained why it's different from [base|sale]_comment_template.Regards,Le jeu. 7 janv. 2021 à 11:27, Pierre Verkest <pierreverkest84@gmail.com> a écrit :Thanks a lot Pedro for your insight !RegardsLe jeu. 7 janv. 2021 à 11:22, Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> a écrit :You have base_comment_template module + extensions (account_comment_template for example).Regards._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Pierre
--Pierre
by Pierre Verkest - 12:16 - 27 Jan 2021 -
Re: Sales terms
Thanks a lot Pedro for your insight !RegardsLe jeu. 7 janv. 2021 à 11:22, Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> a écrit :You have base_comment_template module + extensions (account_comment_template for example).Regards._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Pierre
by Pierre Verkest - 11:30 - 7 Jan 2021 -
Re: Sales terms
You have base_comment_template module + extensions (account_comment_template for example).Regards.
by Pedro M. Baeza - 11:21 - 7 Jan 2021
-
-
A module to add methods to convert datetime between UTC and user's timezone
I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now. A pointer would be appreciated.--Yoshi Tashiro
by Yoshi Tashiro - 04:40 - 6 Jan 2021-
Re: A module to add methods to convert datetime between UTC and user's timezone
Yes, that's it. Thank you, Lorenzo!--Yoshi TashiroOn Wed, Jan 6, 2021 at 5:02 PM Lorenzo Battistini <elbaddy@gmail.com> wrote:On Wed, 6 Jan 2021 at 04:42, Yoshi Tashiro <tashiro@quartile.co> wrote:I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now. A pointer would be appreciated.--Yoshi Tashiro_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Lorenzo Battistini
https://github.com/eLBati_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yoshi Tashiro - 09:21 - 6 Jan 2021 -
Re: A module to add methods to convert datetime between UTC and user's timezone
On Wed, 6 Jan 2021 at 04:42, Yoshi Tashiro <tashiro@quartile.co> wrote:I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now. A pointer would be appreciated.--Yoshi Tashiro_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Lorenzo Battistini
https://github.com/eLBati
by Lorenzo Battistini. - 09:01 - 6 Jan 2021 -
Re: A module to add methods to convert datetime between UTC and user's timezone
OK, I'd better look into odoo.tools, although there might be cases where we do not want to apply the formats by the language. Thanks a lot, Graeme!--Yoshi TashiroOn Wed, Jan 6, 2021 at 4:12 PM Graeme Gellatly <gdgellatly@gmail.com> wrote:HiThe first 2 cases are already done better in odoo.tools and also exposed to mail.template, maybe reports too, well except it also formats the string for the users language too I think. Easily importable.The 3rd case isn't worth it IMO, it seems quite specific and written in a very long way. Something like datetime.now(pytz.timezone('tz')).utcoffset() will do it in a 1 liner with maybe a bit of math and its a ton easier using python main datetime and pytz modulesI used to maintain a report date helper module but never use it anymore.On Wed, 6 Jan 2021, 7:27 pm Yoshi Tashiro, <tashiro@quartile.co> wrote:Thanks Graeme and Dominique. What I'm looking for is a collection of methods that are not covered in Date and Datetime classes of vanilla Odoo. For example:# Convert datetime object to date stringdef _convert_to_user_date_string(self, datetime, hours):user_datetime = datetime + relativedelta(hours=hours)return fields.Date.to_string(fields.Date.to_date(user_datetime))# Convert date string with timestamp to datetime objectdef _convert_to_user_datetime_string(self, date, timestamp, hours):datetime_value = fields.Datetime.from_string("{} {}".format(date, timestamp))return fields.Datetime.to_string(datetime_value - relativedelta(hours=hours))# Return the time difference (in hours), e.g. if user's timezone is in# GMT+9 this method will return 9.0def _get_tz_hours_diff(self):current_time = fields.Datetime.now()user_time = pytz.utc.localize(current_time).astimezone(tz)utc_time = timezone("UTC").localize(current_time)hours_diff = ((user_time.utcoffset() - utc_time.utcoffset()) / timedelta(minutes=1) / 60)return hours_diffI vaguely remember seeing somewhere someone extending Date and Datetime in a somewhat similar manner. If there is nothing under OCA we may create a module and make a PR.--Yoshi TashiroOn Wed, Jan 6, 2021 at 2:12 PM Dominique k <dominique.k@elico-corp.com.sg> wrote:oh... will check that. thanks a lot--On Wed, 6 Jan 2021 at 12:42 PM, Graeme Gellatly <gdgellatly@gmail.com> wrote:It is built in to odoo and sometimes uses babel under hood.For today jobs fields.Date.context_today(record with tz context, optional timestamp) is my general go to available in views as context_today.odoo.tools.format_datetime or something like that does it too for datetime plus locale specific representation as string.There is some more. Check fields.Date* and odoo.toolsIn record rules it is tons harder but if you have the patience you can handroll a very ugly rule using time module.Regards from UTC+13.On Wed, 6 Jan 2021, 5:22 pm Dominique k, <dominique.k@elico-corp.com.sg> wrote:i would be curious if there is one, or contribute for developing oneUTC --> user timezone is a real real pain to develop. particularly when trying to get "today" jobsRegards,DominiqueOn Wed, 6 Jan 2021 at 11:42, Yoshi Tashiro <tashiro@quartile.co> wrote:I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now. A pointer would be appreciated.--Yoshi Tashiro_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Dominique KON-SUN-TACK [Project Manager]Odoo Gold Partner, best Odoo Partner 2014 for APACMobile: + 65 8502 2399Skype: dominique_elicoWebsite: www.elico-corp.com
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yoshi Tashiro - 08:26 - 6 Jan 2021 -
Re: A module to add methods to convert datetime between UTC and user's timezone
HiThe first 2 cases are already done better in odoo.tools and also exposed to mail.template, maybe reports too, well except it also formats the string for the users language too I think. Easily importable.The 3rd case isn't worth it IMO, it seems quite specific and written in a very long way. Something like datetime.now(pytz.timezone('tz')).utcoffset() will do it in a 1 liner with maybe a bit of math and its a ton easier using python main datetime and pytz modulesI used to maintain a report date helper module but never use it anymore.On Wed, 6 Jan 2021, 7:27 pm Yoshi Tashiro, <tashiro@quartile.co> wrote:Thanks Graeme and Dominique. What I'm looking for is a collection of methods that are not covered in Date and Datetime classes of vanilla Odoo. For example:# Convert datetime object to date stringdef _convert_to_user_date_string(self, datetime, hours):user_datetime = datetime + relativedelta(hours=hours)return fields.Date.to_string(fields.Date.to_date(user_datetime))# Convert date string with timestamp to datetime objectdef _convert_to_user_datetime_string(self, date, timestamp, hours):datetime_value = fields.Datetime.from_string("{} {}".format(date, timestamp))return fields.Datetime.to_string(datetime_value - relativedelta(hours=hours))# Return the time difference (in hours), e.g. if user's timezone is in# GMT+9 this method will return 9.0def _get_tz_hours_diff(self):current_time = fields.Datetime.now()user_time = pytz.utc.localize(current_time).astimezone(tz)utc_time = timezone("UTC").localize(current_time)hours_diff = ((user_time.utcoffset() - utc_time.utcoffset()) / timedelta(minutes=1) / 60)return hours_diffI vaguely remember seeing somewhere someone extending Date and Datetime in a somewhat similar manner. If there is nothing under OCA we may create a module and make a PR.--Yoshi TashiroOn Wed, Jan 6, 2021 at 2:12 PM Dominique k <dominique.k@elico-corp.com.sg> wrote:oh... will check that. thanks a lot--On Wed, 6 Jan 2021 at 12:42 PM, Graeme Gellatly <gdgellatly@gmail.com> wrote:It is built in to odoo and sometimes uses babel under hood.For today jobs fields.Date.context_today(record with tz context, optional timestamp) is my general go to available in views as context_today.odoo.tools.format_datetime or something like that does it too for datetime plus locale specific representation as string.There is some more. Check fields.Date* and odoo.toolsIn record rules it is tons harder but if you have the patience you can handroll a very ugly rule using time module.Regards from UTC+13.On Wed, 6 Jan 2021, 5:22 pm Dominique k, <dominique.k@elico-corp.com.sg> wrote:i would be curious if there is one, or contribute for developing oneUTC --> user timezone is a real real pain to develop. particularly when trying to get "today" jobsRegards,DominiqueOn Wed, 6 Jan 2021 at 11:42, Yoshi Tashiro <tashiro@quartile.co> wrote:I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now. A pointer would be appreciated.--Yoshi Tashiro_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Dominique KON-SUN-TACK [Project Manager]Odoo Gold Partner, best Odoo Partner 2014 for APACMobile: + 65 8502 2399Skype: dominique_elicoWebsite: www.elico-corp.com
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Graeme Gellatly - 08:11 - 6 Jan 2021 -
Re: A module to add methods to convert datetime between UTC and user's timezone
Thanks Graeme and Dominique. What I'm looking for is a collection of methods that are not covered in Date and Datetime classes of vanilla Odoo. For example:# Convert datetime object to date stringdef _convert_to_user_date_string(self, datetime, hours):user_datetime = datetime + relativedelta(hours=hours)return fields.Date.to_string(fields.Date.to_date(user_datetime))# Convert date string with timestamp to datetime objectdef _convert_to_user_datetime_string(self, date, timestamp, hours):datetime_value = fields.Datetime.from_string("{} {}".format(date, timestamp))return fields.Datetime.to_string(datetime_value - relativedelta(hours=hours))# Return the time difference (in hours), e.g. if user's timezone is in# GMT+9 this method will return 9.0def _get_tz_hours_diff(self):current_time = fields.Datetime.now()user_time = pytz.utc.localize(current_time).astimezone(tz)utc_time = timezone("UTC").localize(current_time)hours_diff = ((user_time.utcoffset() - utc_time.utcoffset()) / timedelta(minutes=1) / 60)return hours_diffI vaguely remember seeing somewhere someone extending Date and Datetime in a somewhat similar manner. If there is nothing under OCA we may create a module and make a PR.--Yoshi TashiroOn Wed, Jan 6, 2021 at 2:12 PM Dominique k <dominique.k@elico-corp.com.sg> wrote:oh... will check that. thanks a lot--On Wed, 6 Jan 2021 at 12:42 PM, Graeme Gellatly <gdgellatly@gmail.com> wrote:It is built in to odoo and sometimes uses babel under hood.For today jobs fields.Date.context_today(record with tz context, optional timestamp) is my general go to available in views as context_today.odoo.tools.format_datetime or something like that does it too for datetime plus locale specific representation as string.There is some more. Check fields.Date* and odoo.toolsIn record rules it is tons harder but if you have the patience you can handroll a very ugly rule using time module.Regards from UTC+13.On Wed, 6 Jan 2021, 5:22 pm Dominique k, <dominique.k@elico-corp.com.sg> wrote:i would be curious if there is one, or contribute for developing oneUTC --> user timezone is a real real pain to develop. particularly when trying to get "today" jobsRegards,DominiqueOn Wed, 6 Jan 2021 at 11:42, Yoshi Tashiro <tashiro@quartile.co> wrote:I think I've seen somewhere under OCA a module to add generic methods to convert datetime between UTC and user's timezone, but I somehow can't find it now. A pointer would be appreciated.--Yoshi Tashiro_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Dominique KON-SUN-TACK [Project Manager]Odoo Gold Partner, best Odoo Partner 2014 for APACMobile: + 65 8502 2399Skype: dominique_elicoWebsite: www.elico-corp.com
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Yoshi Tashiro - 07:26 - 6 Jan 2021
-
-
Odoo e2e testing with Cypress.
Dear community,Just recently, I played around with Cypress e2e testing. https://www.cypress.io/And it looks interesting especially for functional end to end testing. Test script is in JS, but it looks easy enough to apply with Odoo.Anyone have experiences using cypress with Odoo already?Kitti U.
by Kitti Upariphutthiphong - 04:56 - 31 Dec 2020-
Re: Odoo e2e testing with Cypress.
Nice, we use robotframework.Regards,Jens--Kitti Upariphutthiphong <kittiu@ecosoft.co.th> schrieb am Do. 31. Dez. 2020 um 16:57:Dear community,Just recently, I played around with Cypress e2e testing. https://www.cypress.io/And it looks interesting especially for functional end to end testing. Test script is in JS, but it looks easy enough to apply with Odoo.Anyone have experiences using cypress with Odoo already?Kitti U._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--


Jens Holze
Geschäftsführer (des besten Teams ever)
bloopark systems GmbH & Co. KG

+49 391 563069-10 
jholze@bloopark.de 
www.bloopark.de 
Beethovenstr. 4, 39106 Magdeburg
by Jens Holze - 06:51 - 1 Jan 2020
-
-
use "%d" in nginx with "dbfilter_from_header" module
hi all,How may I pass the equivalent of "dbfilter = ^%d.*" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header (odoo 13)?I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo.i.e. unsuccessfully tried:proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+;proxy_set_header X-Odoo-dbfilter ^%d.*;anyone can help?the use case is that I would like to set this dbfilter for only some defined range of subdomains.TIA--Yves Goldbergodoo| Official Partner - OCA delegateOpen Source ERP, CRM & CMST +972 (3) 720 8818
M +972 (55) 966 1405T +32 (2) 588 2500--
by Yves Goldberg - 11:00 - 31 Dec 2020-
Re: use "%d" in nginx with "dbfilter_from_header" module
Hi Rémy. this is great. thank you. I wrongly thought that <subdomain> was a predefined nginx variable. So now I could capture and assign the value in the server_name statement and use it in the dbfilter.Cheers.Yves.----- Original message -----From: "Rémy Taymans" <remy@coopiteasy.be>To: Contributors <contributors@odoo-community.org>Subject: Re: use "%d" in nginx with "dbfilter_from_header" moduleDate: Friday, January 01, 2021 12:32Dear Yves, The value of the header X-Odoo-dbfilter should be a regular expression matching your database name. (https://github.com/OCA/server-tools/blob/13.0/dbfilter_from_header/override.py#L20) The match performed by Odoo using the regular expression given in the dbfilter header ignore the url you are using for accessing the odoo instance. Considering that the database is named according to the subdomain, the following nginx config should work : server_name foo.example.org; ... proxy_set_header X-Odoo-dbfilter foo; This will match any database that *begins* with `foo`. If the server_name of your nginx configuration file consist of something like : server_name *.example.org; Then you should consider using a regular expression as a server_name value. With this regular expression, extract the subdomain in a variable that can be used as a value for the proxy header. server_name ~^(?<database>.+)\.example\.org$; ... proxy_set_header X-Odoo-dbfilter $database; To get more info about regular expression in nginx configuration file, see : http://nginx.org/en/docs/http/server_names.html#regex_names I have not tested the code given in this email, so use it with caution. :) Regards, -- Rémy Taymans @ Coop IT Easy +32 493 02 69 85 - <https://github.com/coopiteasy> <https://coopiteasy.be> Quoting Yves Goldberg (2020-12-31 11:02:05) > hi all, > How may I pass the equivalent of "dbfilter = *^%d.**" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header [1] (odoo 13)? > I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo. > i.e. unsuccessfully tried: > proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+; > proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+; proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+; proxy_set_header X-Odoo-dbfilter ^%d.*; > > anyone can help? > the use case is that I would like to set this dbfilter for only some defined range of subdomains. > TIA > > -- Yves Goldberg* o doo * | Official Partner - OCA delegate Open Source ERP, CRM & CMS Chat with me [2] T +972 (3) 720 8818* M +972 (55) 966 1405 T +32 (2) 588 2500 None [3] www.ygol.com None [4] None [5] None [6] None [7] --
_______________________________________________Mailing-List: https://odoo-community.org/groups/contributors-15Post to: mailto:contributors@odoo-community.orgUnsubscribe: https://odoo-community.org/groups?unsubscribe
by Yves Goldberg - 04:35 - 1 Jan 2020 -
Re: use "%d" in nginx with "dbfilter_from_header" module
Dear Yves, The value of the header X-Odoo-dbfilter should be a regular expression matching your database name. (https://github.com/OCA/server-tools/blob/13.0/dbfilter_from_header/override.py#L20) The match performed by Odoo using the regular expression given in the dbfilter header ignore the url you are using for accessing the odoo instance. Considering that the database is named according to the subdomain, the following nginx config should work : server_name foo.example.org; ... proxy_set_header X-Odoo-dbfilter foo; This will match any database that *begins* with `foo`. If the server_name of your nginx configuration file consist of something like : server_name *.example.org; Then you should consider using a regular expression as a server_name value. With this regular expression, extract the subdomain in a variable that can be used as a value for the proxy header. server_name ~^(?<database>.+)\.example\.org$; ... proxy_set_header X-Odoo-dbfilter $database; To get more info about regular expression in nginx configuration file, see : http://nginx.org/en/docs/http/server_names.html#regex_names I have not tested the code given in this email, so use it with caution. :) Regards, -- Rémy Taymans @ Coop IT Easy +32 493 02 69 85 - <https://github.com/coopiteasy> <https://coopiteasy.be> Quoting Yves Goldberg (2020-12-31 11:02:05) > hi all, > How may I pass the equivalent of "dbfilter = *^%d.**" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header [1] (odoo 13)? > I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo. > i.e. unsuccessfully tried: > proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+; > proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+; proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+; proxy_set_header X-Odoo-dbfilter ^%d.*; > > anyone can help? > the use case is that I would like to set this dbfilter for only some defined range of subdomains. > TIA > > -- Yves Goldberg* o doo * | Official Partner - OCA delegate Open Source ERP, CRM & CMS Chat with me [2] T +972 (3) 720 8818* M +972 (55) 966 1405 T +32 (2) 588 2500 None [3] www.ygol.com None [4] None [5] None [6] None [7] --
by Rémy Taymans - 11:30 - 1 Jan 2020 -
Re: use "%d" in nginx with "dbfilter_from_header" module
Thanks Bruno. The second one is the one I am using and the 1st one is similar.My question is more about if there is a syntax I could use.Happy new year----- Original message -----From: Bruno Joliveau <bruno.joliveau@numigi.com>To: Contributors <contributors@odoo-community.org>Subject: Re: use "%d" in nginx with "dbfilter_from_header" moduleDate: Thursday, December 31, 2020 18:37I sent my mail too quickly ;-)
Bruno Joliveau - Architecte applications - PrésidentNUMIGI SOLUTIONS INC.(514) 317-7944Longueuil, Québec, CanadaLe jeu. 31 déc. 2020 à 11:30, Bruno Joliveau <bruno.joliveau@numigi.com> a écrit :Hi Yves,Maybe this https://github.com/muk-it/muk_base/tree/13.0/muk_dbfilter help you?Have a nice day!
Bruno Joliveau - Architecte applications - PrésidentNUMIGI SOLUTIONS INC.(514) 317-7944Longueuil, Québec, CanadaLe jeu. 31 déc. 2020 à 05:02, Yves Goldberg <yves@ygol.com> a écrit :hi all,How may I pass the equivalent of "dbfilter = ^%d.*" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header (odoo 13)?I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo.i.e. unsuccessfully tried:proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+;proxy_set_header X-Odoo-dbfilter ^%d.*;anyone can help?the use case is that I would like to set this dbfilter for only some defined range of subdomains.TIA--Yves Goldbergodoo| Official Partner - OCA delegateOpen Source ERP, CRM & CMST +972 (3) 720 8818
M +972 (55) 966 1405T +32 (2) 588 2500--_______________________________________________Mailing-List: https://odoo-community.org/groups/contributors-15Post to: mailto:contributors@odoo-community.orgUnsubscribe: https://odoo-community.org/groups?unsubscribe_______________________________________________Mailing-List: https://odoo-community.org/groups/contributors-15Post to: mailto:contributors@odoo-community.orgUnsubscribe: https://odoo-community.org/groups?unsubscribe
by Yves Goldberg - 09:11 - 1 Jan 2020 -
Re: use "%d" in nginx with "dbfilter_from_header" module
I sent my mail too quickly ;-)
Bruno Joliveau - Architecte applications - PrésidentNUMIGI SOLUTIONS INC.(514) 317-7944Longueuil, Québec, CanadaLe jeu. 31 déc. 2020 à 11:30, Bruno Joliveau <bruno.joliveau@numigi.com> a écrit :Hi Yves,Maybe this https://github.com/muk-it/muk_base/tree/13.0/muk_dbfilter help you?Have a nice day!
Bruno Joliveau - Architecte applications - PrésidentNUMIGI SOLUTIONS INC.(514) 317-7944Longueuil, Québec, CanadaLe jeu. 31 déc. 2020 à 05:02, Yves Goldberg <yves@ygol.com> a écrit :hi all,How may I pass the equivalent of "dbfilter = ^%d.*" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header (odoo 13)?I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo.i.e. unsuccessfully tried:proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+;proxy_set_header X-Odoo-dbfilter ^%d.*;anyone can help?the use case is that I would like to set this dbfilter for only some defined range of subdomains.TIA--Yves Goldbergodoo| Official Partner - OCA delegateOpen Source ERP, CRM & CMST +972 (3) 720 8818
M +972 (55) 966 1405T +32 (2) 588 2500--_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Bruno Joliveau - 05:36 - 31 Dec 2020 -
Re: use "%d" in nginx with "dbfilter_from_header" module
Hi Yves,Maybe this https://github.com/muk-it/muk_base/tree/13.0/muk_dbfilter help you?Have a nice day!
Bruno Joliveau - Architecte applications - PrésidentNUMIGI SOLUTIONS INC.(514) 317-7944Longueuil, Québec, CanadaLe jeu. 31 déc. 2020 à 05:02, Yves Goldberg <yves@ygol.com> a écrit :hi all,How may I pass the equivalent of "dbfilter = ^%d.*" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header (odoo 13)?I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo.i.e. unsuccessfully tried:proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+;proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+;proxy_set_header X-Odoo-dbfilter ^%d.*;anyone can help?the use case is that I would like to set this dbfilter for only some defined range of subdomains.TIA--Yves Goldbergodoo| Official Partner - OCA delegateOpen Source ERP, CRM & CMST +972 (3) 720 8818
M +972 (55) 966 1405T +32 (2) 588 2500--_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Bruno Joliveau - 05:36 - 31 Dec 2020
-
-
Mailing list IoT PSC
Hi community,Are there any mailing list of IoT PSC ?Or we can use the new discussions feature of github ?Thanks,Juan.
by Juan Del Castillo Gómez - 04:11 - 24 Dec 2020-
Re: Mailing list IoT PSC
Hi Stéphane,
I would recommend using GitHub discussions but discord is fine. I'm going to try it.
Thank you !El lun, 28 dic 2020 a las 16:37, Stéphane Bidoul (<stephane.bidoul@acsone.eu>) escribió:Hello Juan,I would recommend using the contributors mailing list first, as it has relatively low traffic.I've also created an #iot channel in discord.We could also create a dedicated mailing list but the risk is it will have little visibility and you may not reach the intended audience.GitHub discussions is worth considering, although there is the risk of dispersing the information and diluting the audience if we have too many communication channels.-sbiOn Thu, Dec 24, 2020 at 4:11 AM Juan DCG <juandcg314@gmail.com> wrote:Hi community,Are there any mailing list of IoT PSC ?Or we can use the new discussions feature of github ?Thanks,Juan._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Juan Del Castillo Gómez - 06:45 - 28 Dec 2020 -
Re: Mailing list IoT PSC
Hello Juan,I would recommend using the contributors mailing list first, as it has relatively low traffic.I've also created an #iot channel in discord.We could also create a dedicated mailing list but the risk is it will have little visibility and you may not reach the intended audience.GitHub discussions is worth considering, although there is the risk of dispersing the information and diluting the audience if we have too many communication channels.-sbiOn Thu, Dec 24, 2020 at 4:11 AM Juan DCG <juandcg314@gmail.com> wrote:Hi community,Are there any mailing list of IoT PSC ?Or we can use the new discussions feature of github ?Thanks,Juan._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Stéphane Bidoul - 04:35 - 28 Dec 2020
-
-
OCA and security notices
Hi community,
Yesterday a security notices has been published.
Stefan has begun to bring one security fix to OCB with this PR
It raises what seems to be an important point about the handling of the security fixes for the unsupported Odoo version on OCB. Will this should be taken in charge by OCA, as OCB is under OCA umbrella or it'll remain on the goodwill of the community's members ? I don't have any problem with one of the possible responses.
My point is how do we takle the minimum about this topic. I mean how do we organize the contribution members on this topics ?
My first idea will be to open an issue on OCB for each security notice and organize the work as it done for modules migration. What do you think ? Creating a PSC team security could be another idea.
Finding the security issues seems to be easy but at this point we don't have a tracking on the ones that are brought back on the unsupported version on OCB.
Here at Coop IT Easy we'll probably focus on the versions affecting our customers it means 9.0 as 11.0 and later are still supported.
Regards,
Housine
by Houssine BAKKALI - 11:46 - 23 Dec 2020-
Re: OCA and security notices
Hi Pedro, It took a while to sink in, but yes, you have convinced me. Upgrading is the thing to do, instead of spending time on bugs and performance issues that are fixed in newer cores. I've seen my share of those and it's just not worth the effort to fight these rearguard battles. It's too bad that upgrading is in many cases a big, complex operation, but that's just the way it is. Thanks for your insights! Op 1/5/21 om 9:27 AM schreef Pedro M. Baeza (Tecnativa): > Hi, Tom, > > Each version can have some bugs, but it's better to handle them > between more people than let SaaS users or the same partners to > notify/fix them. You think it's "safer" to be on a previous version > for avoiding such bugs, but the facts are: > > - Such a bug is because of your use cases, and it will be found on the > version you are using, no matter if outdated or not. Nobody till then > may notify it. > - Odoo is fixing bugs very quickly and without effort by your part on > the latest version (or the previous one), as they are committed to > "stabilize" that version, but not on very old versions. A note about > this: notifying properly a bug is the key for having it solved. You > can't expect to have the work done not doing a minimum effort on your > part. > - Bugs can happen even on unsupported versions, so the maintenance > cost starts to rise if you need to fix them by yourself and you are > introducing regression risks. > - There are even occasions where the bug is fixed or doesn't apply on > higher versions, but you don't have it in an outdated one. See the > recent CVE cases and the effort needed by Stefan and Nils. > - Odoo continues to improve its test suite, and each version has more > and more stability/quality. > > Other facts about using outdated versions: > > - You need to "backport" features that are on higher versions or lack > them. > - Framework evolves, and using an outdated framework makes your > development team to require more time to complete the same tasks, or > to not have available some tools. Programming in 2020 with the old API > or the v8/v9 hybrid for me is horrible. > - Collaboration possibilities are reduced working on an outdated > version, as there are less contributors on them. You can see the same > examples on your 7.0 PRs, or even on the 10.0 PRs, that is more > recent, but the same unattended. > - As a complement to the previous one, new contributors push newer > versions, not old ones. > - Underlying libraries and dependencies are outdated as well, with the > problems this supposes. > > So at Tecnativa we deal with this not having middle positions: all our > customers go to latest versions (the supported ones), and we reject > those that don't want this approach. That way, we focus on dealing > with a reduced set of Odoo versions, we migrate them regularly (not > forcing a yearly migration, but more and more customers demand to go > to each version and they don't want to keep the same version 2/3 > years), and we report bugs to Odoo constantly that makes the versions > stable enough. > > Migrating OCA modules is not a problem while you are on the wheel. The > keys are: > > - Having a team used to OCA guidelines. All our developments follow > strict guidelines. This makes the team to take the habit and don't > require more time to be "OCA". Anyway, 95% of our developments are > directly OCA. OCA first approach is also very important for us. > - Having good test coverage. This is vital for easing the migrations. > Doing good tests is not easy, but the time spent on that will be for > sure gained later. This includes also JS tour/Qunit tests if needed. > - Reviewing PRs between colleagues as part of your development cycle. > This raises a lot your team skills and don't stuck PRs. People > complain about their PRs not being reviewed, but they don't review > others in exchange or don't push colleagues to review them. > > We also take a proactive position for handling some "polemical" > decisions taken on the versions, creating OCA modules that fill the > gaps. This is better IMO than staying on an older version and > complaining that "Odoo has removed this or changed that". In general > you win more than you lose on newer versions. > > And finally, customers receive a refresh training on each version > change. Being proactive as well on the changes they have makes people > to not reject the new version and embrace the new features from the > beginning. > > Do I convince you, hehe? > > Regards. > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > <https://odoo-community.org/groups/contributors-15> > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe > <https://odoo-community.org/groups?unsubscribe> >
by Tom Blauwendraat - 05:31 - 9 Apr 2021 -
Re: OCA and security notices
Hi, Xavier,The delay depends on 2 factors:- The technical work to be done, which is the installed core modules to be covered by OpenUpgrade + the OCA modules to be migrated. This can be complemented with use cases test suite to be checked.- The customer alignment for the best moment to migrate, depending on their activity.FYI, we are migrating our customers to v13 now, having 4 of them on 13.0 already, and the rest coming in the following months.Regards.El mié, 6 ene 2021 a las 19:07, Xavier Brochard (<xavier@alternatif.org>) escribió:Hi Pedro I've found your post very interesting. However can you elaborate a bit on the delay before migration ? Obviously you can't migrate before the newest version is stabilized enough, but you can't also migrate before OpenUpgrade is available (or do you migrate "by hand" ?). So, are you curently running Odoo 13 and planning migrations around june ? Best regards Xavier / zeroheure --- Librement, Xavier Brochard xavier@alternatif.org La liberté est à l'homme ce que les ailes sont à l'oiseau (Jean-Pierre Rosnay) Le 05.01.2021 09:27, Pedro M. Baeza (Tecnativa) a écrit : > Hi, Tom, > > Each version can have some bugs, but it's better to handle them > between more people than let SaaS users or the same partners to > notify/fix them. You think it's "safer" to be on a previous version > for avoiding such bugs, but the facts are: > > - Such a bug is because of your use cases, and it will be found on the > version you are using, no matter if outdated or not. Nobody till then > may notify it. > - Odoo is fixing bugs very quickly and without effort by your part on > the latest version (or the previous one), as they are committed to > "stabilize" that version, but not on very old versions. A note about > this: notifying properly a bug is the key for having it solved. You > can't expect to have the work done not doing a minimum effort on your > part. > > - Bugs can happen even on unsupported versions, so the maintenance > cost starts to rise if you need to fix them by yourself and you are > introducing regression risks. > - There are even occasions where the bug is fixed or doesn't apply on > higher versions, but you don't have it in an outdated one. See the > recent CVE cases and the effort needed by Stefan and Nils. > - Odoo continues to improve its test suite, and each version has more > and more stability/quality. > > Other facts about using outdated versions: > > - You need to "backport" features that are on higher versions or lack > them. > - Framework evolves, and using an outdated framework makes your > development team to require more time to complete the same tasks, or > to not have available some tools. Programming in 2020 with the old API > or the v8/v9 hybrid for me is horrible. > - Collaboration possibilities are reduced working on an outdated > version, as there are less contributors on them. You can see the same > examples on your 7.0 PRs, or even on the 10.0 PRs, that is more > recent, but the same unattended. > - As a complement to the previous one, new contributors push newer > versions, not old ones. > - Underlying libraries and dependencies are outdated as well, with the > problems this supposes. > > So at Tecnativa we deal with this not having middle positions: all our > customers go to latest versions (the supported ones), and we reject > those that don't want this approach. That way, we focus on dealing > with a reduced set of Odoo versions, we migrate them regularly (not > forcing a yearly migration, but more and more customers demand to go > to each version and they don't want to keep the same version 2/3 > years), and we report bugs to Odoo constantly that makes the versions > stable enough. > > Migrating OCA modules is not a problem while you are on the wheel. The > keys are: > > - Having a team used to OCA guidelines. All our developments follow > strict guidelines. This makes the team to take the habit and don't > require more time to be "OCA". Anyway, 95% of our developments are > directly OCA. OCA first approach is also very important for us. > > - Having good test coverage. This is vital for easing the migrations. > Doing good tests is not easy, but the time spent on that will be for > sure gained later. This includes also JS tour/Qunit tests if needed. > - Reviewing PRs between colleagues as part of your development cycle. > This raises a lot your team skills and don't stuck PRs. People > complain about their PRs not being reviewed, but they don't review > others in exchange or don't push colleagues to review them. > > We also take a proactive position for handling some "polemical" > decisions taken on the versions, creating OCA modules that fill the > gaps. This is better IMO than staying on an older version and > complaining that "Odoo has removed this or changed that". In general > you win more than you lose on newer versions. > > And finally, customers receive a refresh training on each version > change. Being proactive as well on the changes they have makes people > to not reject the new version and embrace the new features from the > beginning. > > Do I convince you, hehe? > > Regards. > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Pedro M. Baeza - 12:36 - 7 Jan 2021 -
Re: OCA and security notices
Hi Pedro I've found your post very interesting. However can you elaborate a bit on the delay before migration ? Obviously you can't migrate before the newest version is stabilized enough, but you can't also migrate before OpenUpgrade is available (or do you migrate "by hand" ?). So, are you curently running Odoo 13 and planning migrations around june ? Best regards Xavier / zeroheure --- Librement, Xavier Brochard xavier@alternatif.org La liberté est à l'homme ce que les ailes sont à l'oiseau (Jean-Pierre Rosnay) Le 05.01.2021 09:27, Pedro M. Baeza (Tecnativa) a écrit : > Hi, Tom, > > Each version can have some bugs, but it's better to handle them > between more people than let SaaS users or the same partners to > notify/fix them. You think it's "safer" to be on a previous version > for avoiding such bugs, but the facts are: > > - Such a bug is because of your use cases, and it will be found on the > version you are using, no matter if outdated or not. Nobody till then > may notify it. > - Odoo is fixing bugs very quickly and without effort by your part on > the latest version (or the previous one), as they are committed to > "stabilize" that version, but not on very old versions. A note about > this: notifying properly a bug is the key for having it solved. You > can't expect to have the work done not doing a minimum effort on your > part. > > - Bugs can happen even on unsupported versions, so the maintenance > cost starts to rise if you need to fix them by yourself and you are > introducing regression risks. > - There are even occasions where the bug is fixed or doesn't apply on > higher versions, but you don't have it in an outdated one. See the > recent CVE cases and the effort needed by Stefan and Nils. > - Odoo continues to improve its test suite, and each version has more > and more stability/quality. > > Other facts about using outdated versions: > > - You need to "backport" features that are on higher versions or lack > them. > - Framework evolves, and using an outdated framework makes your > development team to require more time to complete the same tasks, or > to not have available some tools. Programming in 2020 with the old API > or the v8/v9 hybrid for me is horrible. > - Collaboration possibilities are reduced working on an outdated > version, as there are less contributors on them. You can see the same > examples on your 7.0 PRs, or even on the 10.0 PRs, that is more > recent, but the same unattended. > - As a complement to the previous one, new contributors push newer > versions, not old ones. > - Underlying libraries and dependencies are outdated as well, with the > problems this supposes. > > So at Tecnativa we deal with this not having middle positions: all our > customers go to latest versions (the supported ones), and we reject > those that don't want this approach. That way, we focus on dealing > with a reduced set of Odoo versions, we migrate them regularly (not > forcing a yearly migration, but more and more customers demand to go > to each version and they don't want to keep the same version 2/3 > years), and we report bugs to Odoo constantly that makes the versions > stable enough. > > Migrating OCA modules is not a problem while you are on the wheel. The > keys are: > > - Having a team used to OCA guidelines. All our developments follow > strict guidelines. This makes the team to take the habit and don't > require more time to be "OCA". Anyway, 95% of our developments are > directly OCA. OCA first approach is also very important for us. > > - Having good test coverage. This is vital for easing the migrations. > Doing good tests is not easy, but the time spent on that will be for > sure gained later. This includes also JS tour/Qunit tests if needed. > - Reviewing PRs between colleagues as part of your development cycle. > This raises a lot your team skills and don't stuck PRs. People > complain about their PRs not being reviewed, but they don't review > others in exchange or don't push colleagues to review them. > > We also take a proactive position for handling some "polemical" > decisions taken on the versions, creating OCA modules that fill the > gaps. This is better IMO than staying on an older version and > complaining that "Odoo has removed this or changed that". In general > you win more than you lose on newer versions. > > And finally, customers receive a refresh training on each version > change. Being proactive as well on the changes they have makes people > to not reject the new version and embrace the new features from the > beginning. > > Do I convince you, hehe? > > Regards. > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe
by xavier - 07:05 - 6 Jan 2021 -
Re: OCA and security notices
Hi, Tom,Each version can have some bugs, but it's better to handle them between more people than let SaaS users or the same partners to notify/fix them. You think it's "safer" to be on a previous version for avoiding such bugs, but the facts are:- Such a bug is because of your use cases, and it will be found on the version you are using, no matter if outdated or not. Nobody till then may notify it.- Odoo is fixing bugs very quickly and without effort by your part on the latest version (or the previous one), as they are committed to "stabilize" that version, but not on very old versions. A note about this: notifying properly a bug is the key for having it solved. You can't expect to have the work done not doing a minimum effort on your part.- Bugs can happen even on unsupported versions, so the maintenance cost starts to rise if you need to fix them by yourself and you are introducing regression risks.- There are even occasions where the bug is fixed or doesn't apply on higher versions, but you don't have it in an outdated one. See the recent CVE cases and the effort needed by Stefan and Nils.- Odoo continues to improve its test suite, and each version has more and more stability/quality.Other facts about using outdated versions:- You need to "backport" features that are on higher versions or lack them.- Framework evolves, and using an outdated framework makes your development team to require more time to complete the same tasks, or to not have available some tools. Programming in 2020 with the old API or the v8/v9 hybrid for me is horrible.- Collaboration possibilities are reduced working on an outdated version, as there are less contributors on them. You can see the same examples on your 7.0 PRs, or even on the 10.0 PRs, that is more recent, but the same unattended.- As a complement to the previous one, new contributors push newer versions, not old ones.- Underlying libraries and dependencies are outdated as well, with the problems this supposes.So at Tecnativa we deal with this not having middle positions: all our customers go to latest versions (the supported ones), and we reject those that don't want this approach. That way, we focus on dealing with a reduced set of Odoo versions, we migrate them regularly (not forcing a yearly migration, but more and more customers demand to go to each version and they don't want to keep the same version 2/3 years), and we report bugs to Odoo constantly that makes the versions stable enough.Migrating OCA modules is not a problem while you are on the wheel. The keys are:- Having a team used to OCA guidelines. All our developments follow strict guidelines. This makes the team to take the habit and don't require more time to be "OCA". Anyway, 95% of our developments are directly OCA. OCA first approach is also very important for us.- Having good test coverage. This is vital for easing the migrations. Doing good tests is not easy, but the time spent on that will be for sure gained later. This includes also JS tour/Qunit tests if needed.- Reviewing PRs between colleagues as part of your development cycle. This raises a lot your team skills and don't stuck PRs. People complain about their PRs not being reviewed, but they don't review others in exchange or don't push colleagues to review them.We also take a proactive position for handling some "polemical" decisions taken on the versions, creating OCA modules that fill the gaps. This is better IMO than staying on an older version and complaining that "Odoo has removed this or changed that". In general you win more than you lose on newer versions.And finally, customers receive a refresh training on each version change. Being proactive as well on the changes they have makes people to not reject the new version and embrace the new features from the beginning.Do I convince you, hehe?Regards.
by Pedro M. Baeza - 09:21 - 5 Jan 2021 -
Re: OCA and security notices
@Pedro: Upgrading the Odoo version inevitably leads to a period of employees adjusting to UI/workflow changes, as well as running into bugs: new Odoo releases have bugs, OpenUpgrade has bugs, ported OCA modules have bugs.. etc. Employees are not looking for this kind of instability in the ERP that they work with every day. How do you deal with this at Tecnativa? Op 12/31/20 om 3:12 PM schreef Pedro M. Baeza (Tecnativa): > For me the path is clear: upgrade to the latest possible Odoo version, > and that's why OpenUpgrade is done and funded by OCA itself, and the > most famous OCA modules are migrated to all versions by regular > contributors. > > Regards. > > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > <https://odoo-community.org/groups/contributors-15> > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe > <https://odoo-community.org/groups?unsubscribe> >
by Tom Blauwendraat - 06:11 - 3 Jan 2020
-
-
Pywebdriver in the OCA
Hello everyone, As some of you might know, at Akretion we use a replacement tool for the IoT box, which is called Pywebdriver. We are currently maintaining it with other OCA members like Acsone or GRAP. We thought this could be a good idea to have this tool under the OCA umbrella to ease the workflows around it. Since this differs from the usual repositories the OCA manages, I created an issue to discuss around this possible inclusion: https://github.com/akretion/pywebdriver/issues/57 Looking forward to read from you about this ! -- Pierrick Brun Akretion
by Pierrick Brun - 03:15 - 22 Dec 2020-
Re: Pywebdriver in the OCA
+1 I briefly discussed that with fkantelberg of our team and for now its seem arguments are for instance - no need for local postgres installation - windows support - flask usage - extensible architecture - .... But there is probaly much more. Best Frederik Am Dienstag, den 22.12.2020, 14:52 +0000 schrieb Pedro M. Baeza (Tecnativa): > Yeah, it could be interesting. I think the minimum for having it in > OCA is: > > - Having a decent CI for not lowering contribution quality. > - Extended README, explaining the reasoning for having it and > advantages over existing IoTBox. > > Regards. > _______________________________________________ > Mailing-List: https://odoo-community.org/groups/contributors-15 > Post to: mailto:contributors@odoo-community.org > Unsubscribe: https://odoo-community.org/groups?unsubscribe -- Dr.-Ing. Frederik Kramer Geschäftsführer initOS GmbH An der Eisenbahn 1 21224 Rosengarten Phone: +49 4105 56156-12 Fax: +49 4105 56156-10 Mobil: +49 179 3901819 Email: frederik.kramer@initos.com Web: www.initos.com Geschäftsführung: Dr.-Ing. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke Sitz der Gesellschaft: Rosengarten – Klecken Amtsgericht Tostedt, HRB 205226 Steuer-Nr: 15/200/53247 USt-IdNr.: DE815580155
by Frederik Kramer. - 03:56 - 22 Dec 2020 -
Re: Pywebdriver in the OCA
Yeah, it could be interesting. I think the minimum for having it in OCA is:- Having a decent CI for not lowering contribution quality.- Extended README, explaining the reasoning for having it and advantages over existing IoTBox.Regards.
by Pedro M. Baeza - 03:50 - 22 Dec 2020 -
Re: Pywebdriver in the OCA
Great, thanks Pierrick!--
Virginie0477/64.17.20--Si vous avez un contrat de support, posez-nous vos question à l'adresse "support@coopiteasy.be"--Lors de l'envoi d'un mail, renseignez le nom de la structure pour laquelle vous travaillez. Merci.-------- Message initial --------De: "Roussel, Denis" <denis.roussel@acsone.eu>Répondre à: Odoo Community Association (OCA) Contributors <contributors@odoo-community.org>À: Contributors <contributors@odoo-community.org>Objet: Re: Pywebdriver in the OCADate: Tue, 22 Dec 2020 14:32:01 -0000Great!Thanks for digging up that subject.IMHO, this could be an interesting value added for OCA.On Tue, Dec 22, 2020 at 3:16 PM Pierrick Brun <pierrick.brun@akretion.com> wrote:Hello everyone,
As some of you might know, at Akretion we use a replacement tool for
the IoT box, which is called Pywebdriver.
We are currently maintaining it with other OCA members like Acsone or
GRAP.
We thought this could be a good idea to have this tool under the OCA
umbrella to ease the workflows around it.
Since this differs from the usual repositories the OCA manages, I
created an issue to discuss around this possible inclusion:
https://github.com/akretion/pywebdriver/issues/57
Looking forward to read from you about this !
--
Pierrick Brun
Akretion
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Virginie Dewulf. - 03:36 - 22 Dec 2020 -
Re: Pywebdriver in the OCA
Great!Thanks for digging up that subject.IMHO, this could be an interesting value added for OCA.On Tue, Dec 22, 2020 at 3:16 PM Pierrick Brun <pierrick.brun@akretion.com> wrote:Hello everyone, As some of you might know, at Akretion we use a replacement tool for the IoT box, which is called Pywebdriver. We are currently maintaining it with other OCA members like Acsone or GRAP. We thought this could be a good idea to have this tool under the OCA umbrella to ease the workflows around it. Since this differs from the usual repositories the OCA manages, I created an issue to discuss around this possible inclusion: https://github.com/akretion/pywebdriver/issues/57 Looking forward to read from you about this ! -- Pierrick Brun Akretion
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--__________________________________________
Denis Roussel
Software Engineer
Acsone SA, Succursale de Liège (Val Benoît)
Tel : +32 2 888 31 49
Fax : +32 2 888 31 59
Gsm : +32 472 22 00 57Acsone sa/nv
Boulevard de la Woluwe 56 Woluwedal | B-1200 Brussels | BelgiumQuai Banning, 6 (Val Benoît) | B-4000 Liège | Belgium
Zone Industrielle 22 | L-8287 Kehlen | Luxembourg
by Denis Roussel. - 03:30 - 22 Dec 2020
-




