Archives
- By thread 1419
-
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 22
Contributors
-
Re: Migrating content from Wordpress to Odoo
You can write an odoorpc script to loop the content and create pages on the remote odoo for it, or if it is a lot of pages, you can try uploading the content to the odoo server first, and writing a "click-odoo" script instead, which will be a bit faster.
In both cases you'd need to do "create" actions on the "website.page" object.
Another way would be to get the content into CSV format and then trying to import it through the Odoo UI.
Feb 21, 2021 15:31:56 Torvald Baade Bringsvor <torvald@bringsvor.com>:
Hi
I'm faced with the task of moving a website from Wordpress to Odoo. I have a backup of the old site, is there any way to move the pages from the Wordpress site to Odoo? And mass upload of the images from the old site?
I've experimented with parsing and processing the backup file, so I have some of the content on my computer, but it would be nice to be able to mass upload it to Odoo, so the webmaster can work on the formatting of the pages.
Torvald Baade Bringsvor
Bringsvor Consulting AS - Developer, consultant, allrounder
Tel (+47) 4548 2848_______________________________________________
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:36 - 21 Feb 2021 -
Migrating content from Wordpress to Odoo
HiI'm faced with the task of moving a website from Wordpress to Odoo. I have a backup of the old site, is there any way to move the pages from the Wordpress site to Odoo? And mass upload of the images from the old site?I've experimented with parsing and processing the backup file, so I have some of the content on my computer, but it would be nice to be able to mass upload it to Odoo, so the webmaster can work on the formatting of the pages.Torvald Baade BringsvorBringsvor Consulting AS - Developer, consultant, allrounderTel (+47) 4548 2848
by Torvald Bringsvor - 03:30 - 21 Feb 2021 -
Re: Odoo shared filesystem/sync
Hi Jacobus,Thanks for sharing this.I agree w/ Sergio: the storage repo sounds to be the right place (at least for the "deal w/ ext storage part).Feel free to open a PR there describing your proposal.Bests,On Fri, Feb 19, 2021 at 8:27 AM Sergio Corato <sergiocorato@gmail.com> wrote:Hi Jacobus,I think this is interesting, you could do a PR to https://github.com/OCA/storage/SergioIl gio 18 feb 2021, 06:31 Jacobus Erasmus <jacobus@ivyweb.co.za> ha scritto:Dear OCO community,
I did a weekend project a while back creating a file system for Odoo. Basically if allows you to attach a directory/file to and odoo object.
The advantage is that you can very much like with the old FTP file sharing infrastructure attach files to say invoices, order by simply saving them to the appropriate directory.
The difference is that this is a file system on linux so no uploading and it therefore works with everything (email apps, scanning aps etc).
It is alpha quality and slow but can easily converted into a sync app and the filesystem speed can very easily be increased.
I will gladly contribute this to OCA base if there are interest. If not just an interesting idea consider.
Regards
Jacobus
--
Email SignatureJacobus Erasmus | Director a: IvyWeb (Pty) Ltd | 23 Rayner Avenue, Kilnerpark, Pretoria, 0186 | South Africa
e: jacobus@ivyweb.co.za | w: www.ivyweb.co.za
m: +27 84 251 6888 | p: +27 84 251 6888_______________________________________________
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
--Simone OrsiFull stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source.
by Simone Orsi - 08:41 - 19 Feb 2021 -
Re: Odoo shared filesystem/sync
Hi Jacobus,I think this is interesting, you could do a PR to https://github.com/OCA/storage/SergioIl gio 18 feb 2021, 06:31 Jacobus Erasmus <jacobus@ivyweb.co.za> ha scritto:Dear OCO community,
I did a weekend project a while back creating a file system for Odoo. Basically if allows you to attach a directory/file to and odoo object.
The advantage is that you can very much like with the old FTP file sharing infrastructure attach files to say invoices, order by simply saving them to the appropriate directory.
The difference is that this is a file system on linux so no uploading and it therefore works with everything (email apps, scanning aps etc).
It is alpha quality and slow but can easily converted into a sync app and the filesystem speed can very easily be increased.
I will gladly contribute this to OCA base if there are interest. If not just an interesting idea consider.
Regards
Jacobus
--
Email SignatureJacobus Erasmus | Director a: IvyWeb (Pty) Ltd | 23 Rayner Avenue, Kilnerpark, Pretoria, 0186 | South Africa
e: jacobus@ivyweb.co.za | w: www.ivyweb.co.za
m: +27 84 251 6888 | p: +27 84 251 6888_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
by Sergio Corato - 08:26 - 19 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 -
Odoo shared filesystem/sync
Dear OCO community,
I did a weekend project a while back creating a file system for Odoo. Basically if allows you to attach a directory/file to and odoo object.
The advantage is that you can very much like with the old FTP file sharing infrastructure attach files to say invoices, order by simply saving them to the appropriate directory.
The difference is that this is a file system on linux so no uploading and it therefore works with everything (email apps, scanning aps etc).
It is alpha quality and slow but can easily converted into a sync app and the filesystem speed can very easily be increased.
I will gladly contribute this to OCA base if there are interest. If not just an interesting idea consider.
Regards
Jacobus
--
Email SignatureJacobus Erasmus | Director a: IvyWeb (Pty) Ltd | 23 Rayner Avenue, Kilnerpark, Pretoria, 0186 | South Africa
e: jacobus@ivyweb.co.za | w: www.ivyweb.co.za
m: +27 84 251 6888 | p: +27 84 251 6888
by Jacobus Erasmus - 06:30 - 18 Feb 2021 -
Re: Issues with Travis
> (some ideas in an example here > https://github.com/acsone/mis-builder/pull/3). I'm working on something more in line with current MQT in https://github.com/hbrunn/social/actions/runs/576195231 which looks pretty promising to me. Speed is an issue here, but I think this can be improved with more caching. Where should we discuss which way to go? Maybe better on an issue on MQT? -- Your partner for the hard Odoo problems https://hunki-enterprises.com
by Holger Brunn - 10:56 - 17 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: RFC management system - manage partner contacts
Hello Stefano,
Thank you for pushing the Management System project further.
I can't get enough context from wither you message nor the liked PR.
So I'm not sure what problem is being solved here.
I suggest opening an "[RFC]" issue on the repo, to publish a requirements and proposed design, and gather feedback.
I would be happy to join.
As an advice, I find useful to write in this upfront RFC the README sections of the future module: tittle summary subtitle, description, configuration usage.
Doing so forces you to structure the message, and saves you time later, when finalizing the modules docs.
Thank you
Daniel
On 12/02/2021 10:27, Stefano Consolaro wrote:
Hi all,
following a discussion started on my PR https://github.com/OCA/management-system/pull/286, I desire to receive some opinion on the best way to manage additional contacts on partner connected to management system.
My initial proposal was to do a new module mgmtsystem_nonconformity_partner because I need that contact for quality.
Enric suggest to add the contact to the base mgmtsystem_system module.
Another option is to create a module for each system like mgmtsystem_quality, mgmtsystem_safety and so on.
Then we think that may be better to have a dedicated module for all possible system-specific contact, ie mgmtsystem_partner to use for adding system-specific contacts.
What do you think?
Stefano Consolaro
_______________________________________________
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:46 - 12 Feb 2021 -
RFC management system - manage partner contacts
Hi all,
following a discussion started on my PR https://github.com/OCA/management-system/pull/286, I desire to receive some opinion on the best way to manage additional contacts on partner connected to management system.
My initial proposal was to do a new module mgmtsystem_nonconformity_partner because I need that contact for quality.
Enric suggest to add the contact to the base mgmtsystem_system module.
Another option is to create a module for each system like mgmtsystem_quality, mgmtsystem_safety and so on.
Then we think that may be better to have a dedicated module for all possible system-specific contact, ie mgmtsystem_partner to use for adding system-specific contacts.
What do you think?Stefano Consolarowww.mymage.it
by Stefano Consolaro - 11:26 - 12 Feb 2021 -
Re: oca/oca.recipe.odoo repository?
+1Sergio CoratoIl giorno gio 11 feb 2021 alle ore 15:47 Yannick Vaucher <yannick.vaucher@camptocamp.com> ha scritto:+1Served us well in the past, makes complete sense to have it under the OCA umbrella as it's a tool that was already perceived as a "community solution" and contributed to by OCA contributors.Yannick VaucherBusiness Solutions ArchitectCamptocamp SAPSE A, CH-1015 LausannePhone: +41 21 619 10 30Office: +41 21 619 10 10On Thu, 4 Feb 2021 at 16:12, Roussel, Denis <denis.roussel@acsone.eu> wrote:+1Le jeu. 4 févr. 2021 à 15:52, Simone Orsi <simahawk@gmail.com> a écrit :+1On Thu, Feb 4, 2021 at 11:02 AM Holger Brunn <mail@hunki-enterprises.com> 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
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._______________________________________________
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 Sergio Corato - 06:20 - 11 Feb 2021 -
Re: Supplier discount on all products supplied
You have the OCA module:Plus `purchase_discount` + `product_supplierinfo_revision` modules as alternatives.Regards.
by Pedro M. Baeza - 05:31 - 11 Feb 2021 -
Re: Supplier discount on all products supplied
I re-added purchase pricelists for 12.0You can take a look on it:--
Yann PAPOUIN, Ingénieur R&D | DECLe jeu. 11 févr. 2021 à 16:26, Radovan Skolnik <radovan@skolnik.info> a écrit :Hello, we purchase from multiple suppliers. From each one we have a pricelist where list prices for customers are listed. Then there is discount we have for current year - it changes each year. That defines our price for purchase from the supplier. So I am looking for something that would allow just to change the supplier's discount for current year and all the purchase prices would be recalculated. I guess this should exist but cannot find anywhere. Am I missing something? Thank you Best regards Radovan
_______________________________________________
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:25 - 11 Feb 2021 -
Supplier discount on all products supplied
Hello, we purchase from multiple suppliers. From each one we have a pricelist where list prices for customers are listed. Then there is discount we have for current year - it changes each year. That defines our price for purchase from the supplier. So I am looking for something that would allow just to change the supplier's discount for current year and all the purchase prices would be recalculated. I guess this should exist but cannot find anywhere. Am I missing something? Thank you Best regards Radovan
by Radovan Skolnik - 04:16 - 11 Feb 2021 -
Re: oca/oca.recipe.odoo repository?
+1Served us well in the past, makes complete sense to have it under the OCA umbrella as it's a tool that was already perceived as a "community solution" and contributed to by OCA contributors.Yannick VaucherBusiness Solutions ArchitectCamptocamp SAPSE A, CH-1015 LausannePhone: +41 21 619 10 30Office: +41 21 619 10 10On Thu, 4 Feb 2021 at 16:12, Roussel, Denis <denis.roussel@acsone.eu> wrote:+1Le jeu. 4 févr. 2021 à 15:52, Simone Orsi <simahawk@gmail.com> a écrit :+1On Thu, Feb 4, 2021 at 11:02 AM Holger Brunn <mail@hunki-enterprises.com> 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
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._______________________________________________
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 Yannick Payot - 03:46 - 11 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 -
Re: Any module that verify numbers, i.e., employee's citizen ID
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
by Torvald Bringsvor - 11: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