Skip to Content

Contributors

  • Re: Weird issue: database does not run tests
    Thank you all for your ideas.
    I believe Moises has hit the nail in the head.

    Looking at the database, I found that my custom module didn't have the demonstration data flag set:

    12-work=# select demo, count(*) from ir_module_module where state='installed' group by demo;
     demo | count
    ------+-------
     f    |     2
     t    |    36
    (2 rows)


    I tried the following:

    12-work=# update ir_module_module set demo=True where state='installed' and demo=False;
    UPDATE 2


    After doing this, tests are now executed as expected. \o/
    I still think this there is an Odoo framework bug somewhere, but it least the case is identified and a workaround to save the database was found.

    Thanks again
    Daniel


    On 24/09/2020 14:37, Moises Lopez wrote:
    Hi Daniel

    I noticed recently that if a module has errors loading data demo Odoo will disable it only for that module without errors but warnings.

    Could you check if the boolean "ir_module_module.demo" is True or not for that module?



    --
    Moisés López Calderón
    Mobile: (+521) 477-752-22-30
    Twitter: @moylop260
    hangout: moylop260@vauxoo.com
    http://www.vauxoo.com - Odoo Gold Partner
    Twitter: @vauxoo

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    by Daniel Reis - 01:45 - 25 Sep 2020
  • Re: Unsubscribe

    Yes i see but it says me that i'm ever unsubscribed. And  that's wrong as i always receive mails.

    Le 25 sept. 2020 10:06 AM, Daniel Reis [dreis@opensourceintegrators.com] a écrit :
    Hello, I tried it and it seemed to be working.

    Can you give some more details?

    After you click on the unsubscribe button on the page, if you refresh it you still see the unsubscribe option?




    On 25/09/2020 08:26, Benjamin Bachmann wrote:
    same here I cannot unsubscribe

    Am Fr., 25. Sept. 2020 um 08:47 Uhr schrieb Jean Sébastien HEDERER ASPerience <hedererjs@asperience.fr>:
    Hi,
    It seems unsubscribe doesn't work well. I've tried numerous times to unsubscribe using link in mails received but it says me i'm ever unsubscribe. And i'm not...
    
    
    
    
    -- 
    Bonne journée
    Cordialement,
    Jean Sébastien HEDERER
    Gérant
    ASPerience
    
     
    Conseil, intégration, hébergement de systèmes informatiques spécialisé en solutions logiciel libre de gestion d'entreprise.
    
    	
    		
    			Tel technique : - 09.80.08.25.48 - - Tel commercial : - 09.80.08.25.47 - - Fax : - 09.80.08.25.46
    		
    	
    
    
    

    _______________________________________________
    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

     

    Bonne journée
    Cordialement,
    Jean Sébastien HEDERER
    Gérant

    ASPerience


    Conseil, intégration, hébergement de systèmes informatiques spécialisé en solutions logiciel libre de gestion d'entreprise.

    Tel technique :  09.80.08.25.48   Tel commercial :  09.80.08.25.47   Fax :  09.80.08.25.46

    by Jean-Sébastien Hederer - 10:16 - 25 Sep 2020
  • Re: Unsubscribe
    Hello, I tried it and it seemed to be working.

    Can you give some more details?

    After you click on the unsubscribe button on the page, if you refresh it you still see the unsubscribe option?




    On 25/09/2020 08:26, Benjamin Bachmann wrote:
    same here I cannot unsubscribe

    Am Fr., 25. Sept. 2020 um 08:47 Uhr schrieb Jean Sébastien HEDERER ASPerience <hedererjs@asperience.fr>:
    Hi,
    It seems unsubscribe doesn't work well. I've tried numerous times to unsubscribe using link in mails received but it says me i'm ever unsubscribe. And i'm not...
    
    
    
    -- 
    Bonne journée
    Cordialement,
    Jean Sébastien HEDERER
    Gérant
    ASPerience
    
     
    Conseil, intégration, hébergement de systèmes informatiques spécialisé en solutions logiciel libre de gestion d'entreprise.
    
    	
    		
    			Tel technique : - 09.80.08.25.48 - - Tel commercial : - 09.80.08.25.47 - - Fax : - 09.80.08.25.46
    		
    	
    
    
    

    _______________________________________________
    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 Daniel Reis - 10:05 - 25 Sep 2020
  • Re: Unsubscribe
    same here I cannot unsubscribe

    Am Fr., 25. Sept. 2020 um 08:47 Uhr schrieb Jean Sébastien HEDERER ASPerience <hedererjs@asperience.fr>:
    Hi,
    It seems unsubscribe doesn't work well. I've tried numerous times to unsubscribe using link in mails received but it says me i'm ever unsubscribe. And i'm not...
    
    
    
    -- 
    Bonne journée
    Cordialement,
    Jean Sébastien HEDERER
    Gérant
    ASPerience
    
     
    Conseil, intégration, hébergement de systèmes informatiques spécialisé en solutions logiciel libre de gestion d'entreprise.
    
    	
    		
    			Tel technique : - 09.80.08.25.48 - - Tel commercial : - 09.80.08.25.47 - - Fax : - 09.80.08.25.46
    		
    	
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Benjamin Bachmann - 09:25 - 25 Sep 2020
  • Unsubscribe
    Hi,
    It seems unsubscribe doesn't work well. I've tried numerous times to unsubscribe using link in mails received but it says me i'm ever unsubscribe. And i'm not...
    
    
    -- 
    Bonne journée
    Cordialement,
    Jean Sébastien HEDERER
    Gérant
    ASPerience
    
     
    Conseil, intégration, hébergement de systèmes informatiques spécialisé en solutions logiciel libre de gestion d'entreprise.
    
    	
    		
    			Tel technique : - 09.80.08.25.48 - - Tel commercial : - 09.80.08.25.47 - - Fax : - 09.80.08.25.46
    		
    	
    
    
    

    by Jean-Sébastien Hederer - 08:46 - 25 Sep 2020
  • Re: Petty Cash Odoo App
    Hi,

    Sorry for the late reply.
    1. Can we generate petty cash voucher from the app?
      - We used expense report standard.

    2. Can the app support the request of petty cash expense under Vendor Bills of Accounting Module?
      - Yes, it supported. you can read usage on this module.

    On Fri, Sep 25, 2020 at 8:47 AM Santa Anicete <santa.anicete@mtscloud.com> wrote:

    Hi Team,

     

    Kind follow up on my queries below. Hope to hear from you soon.

     

    Thank you.

    Best regards,

    Santa G. Anicete, Senior Accountant

    Millennium Technology Services Group Phils., Inc., Unit 3 2nd Floor SMCI Bldg. Emilio Jacinto Corner Ninoy Aquino Avenue, 2023, Clark Freeport Zone, Pampanga

    Tel +63 45 499-8206, Direct +63 45 499 8209

    Web Facebook LinkedIn Twitter Instagram 

     

     

    From: Santa Anicete
    Sent: Wednesday, 23 September 2020 1:21 PM
    To: contributors@odoo-community.org; accounting@odoo-community.org
    Subject: Petty Cash Odoo App

     

    Hi Team,

     

    Good day!

     

    We are testing the Petty Cash Application below in Odoo v12, please help to verify the following queries.

    1. Can we generate petty cash voucher from the app?

    2. Can the app support the request of petty cash expense under Vendor Bills of Accounting Module?

     

    Looking forward for your feedback.

     

    Thank you so much!

    https://apps.odoo.com/apps/modules/12.0/hr_expense_petty_cash/

     

    Best regards,

    Santa G. Anicete, Senior Accountant

    Millennium Technology Services Group Phils., Inc., Unit 3 2nd Floor SMCI Bldg. Emilio Jacinto Corner Ninoy Aquino Avenue, 2023, Clark Freeport Zone, Pampanga

    Tel +63 45 499-8206, Direct +63 45 499 8209

    Web Facebook LinkedIn Twitter Instagram 

     

     

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by saranl - 06:11 - 25 Sep 2020
  • RE: Petty Cash Odoo App

    Hi Team,

     

    Kind follow up on my queries below. Hope to hear from you soon.

     

    Thank you.

    Best regards,

    Santa G. Anicete, Senior Accountant

    Millennium Technology Services Group Phils., Inc., Unit 3 2nd Floor SMCI Bldg. Emilio Jacinto Corner Ninoy Aquino Avenue, 2023, Clark Freeport Zone, Pampanga

    Tel +63 45 499-8206, Direct +63 45 499 8209

    Web Facebook LinkedIn Twitter Instagram 

     

     

    From: Santa Anicete
    Sent: Wednesday, 23 September 2020 1:21 PM
    To: contributors@odoo-community.org; accounting@odoo-community.org
    Subject: Petty Cash Odoo App

     

    Hi Team,

     

    Good day!

     

    We are testing the Petty Cash Application below in Odoo v12, please help to verify the following queries.

    1. Can we generate petty cash voucher from the app?

    2. Can the app support the request of petty cash expense under Vendor Bills of Accounting Module?

     

    Looking forward for your feedback.

     

    Thank you so much!

    https://apps.odoo.com/apps/modules/12.0/hr_expense_petty_cash/

     

    Best regards,

    Santa G. Anicete, Senior Accountant

    Millennium Technology Services Group Phils., Inc., Unit 3 2nd Floor SMCI Bldg. Emilio Jacinto Corner Ninoy Aquino Avenue, 2023, Clark Freeport Zone, Pampanga

    Tel +63 45 499-8206, Direct +63 45 499 8209

    Web Facebook LinkedIn Twitter Instagram 

     

     


    by Santa Anicete - 03:46 - 25 Sep 2020
  • OCA - Odoo Experience Virtual Booth - any more volunteers?
    Hello OCA Contributors,

    Odoo Experience is next week - 30th Sept and 1st Oct and we still need your help!

    We had a few people sign up to be in attendance at the booth (thank you) but we need more. The times are as follows:

    • Wednesday September 30th: 3:30pm to 10pm (CEST)

    • Thursday October 1st: 3pm to 10pm (CEST)


    You'll find a roster here, if you are able to help out with just an hour or even half hour we would love to have you onboard.

    We are hoping to drive traffic from here to the OCA Days in mid October. Questions are often around membership and how to start contributing etc. And if you have trouble answering any questions you can always get details and we can follow up from our side.

    It would be great to have at least 3-4 people on at all times to keep a bit of buzz going

    Please fill in the spreadsheet if you can help and I'll be in touch with more details etc.

    Warmest regards,
    Rebecca
    --
    Rebecca Gellatly
    General Secretary
    Odoo Community Association

    by Rebecca Gellatly - 02:46 - 25 Sep 2020
  • Re: Weird issue: database does not run tests
    Hi Daniel

    I noticed recently that if a module has errors loading data demo Odoo will disable it only for that module without errors but warnings.

    Could you check if the boolean "ir_module_module.demo" is True or not for that module?



    --
    Moisés López Calderón
    Mobile: (+521) 477-752-22-30
    Twitter: @moylop260
    hangout: moylop260@vauxoo.com
    http://www.vauxoo.com - Odoo Gold Partner
    Twitter: @vauxoo

    by Moisés López Calderón - 03:36 - 24 Sep 2020
  • Re: Weird issue: database does not run tests
    One of our developers just had this issue with a single module. The tests would run in a copy of the production database, but not in a fresh and empty database.

    I asked him to install the module manually from the UI in the empty database and turns out that a dependency was missing in the manifest file and the module failed to install. This dependency was present in the copy of the production database and that's why the tests worked just fine there.

    --

    Miku Laitinen, CTO, Partner
    WEB-VEISTÄMÖ OY / AVOIN.SYSTEMS

    +371 2560 2460

    Tutustu meikäläiseen ja muihin veistämöläisiin paremmin!

    Facebook | LinkedIn | Instagram | Twitter



    On Thu, Sep 24, 2020 at 1:57 PM Graeme Gellatly <gdgellatly@gmail.com> wrote:

    If a module is already installed -u works just fine. Im not sure -i even works if already installed hence the suggestion.



    On Thu, 24 Sep 2020, 10:42 pm Richard deMeester, <richard.demeester@willdooit.com> wrote:

    Oh, and tests only run when installing the module - have you used "-i module --test-entable" from the command line?

    Richard deMeester

    Senior Development Analyst

    WilldooIT Pty Ltd

    E: richard.demeester@willdooit.com

    M: +61 403 76 76 76

    P: +61 3 9135 1900

    A: 10/435 Williamstown Road, Port Melbourne, Vic 3207

     

     

    Making growth through technology easy

     

     

    DISCLAIMER | This electronic message together with any attachments is confidential. If you are not the recipient, do not copy, disclose, or use the contents in any way. Please also advise us by e-mail that you have received this message in error and then please destroy this email and any of its attachments. WilldooIT Pty. Ltd. is not responsible for any changes made to this message and/or any attachments after sending by WilldooIT Pty. Ltd. WilldooIT Pty. Ltd. use virus scanning software but exclude all liability for virus or anything similar in this email or attachment.



    From: Daniel Reis <dreis@opensourceintegrators.com>
    Sent: Thursday, 24 September 2020 8:01 PM
    To: Contributors <contributors@odoo-community.org>
    Subject: Weird issue: database does not run tests
     
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    _______________________________________________
    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 Miku Laitinen. - 02:01 - 24 Sep 2020
  • Re: Weird issue: database does not run tests

    If a module is already installed -u works just fine. Im not sure -i even works if already installed hence the suggestion.



    On Thu, 24 Sep 2020, 10:42 pm Richard deMeester, <richard.demeester@willdooit.com> wrote:

    Oh, and tests only run when installing the module - have you used "-i module --test-entable" from the command line?

    Richard deMeester

    Senior Development Analyst

    WilldooIT Pty Ltd

    E: richard.demeester@willdooit.com

    M: +61 403 76 76 76

    P: +61 3 9135 1900

    A: 10/435 Williamstown Road, Port Melbourne, Vic 3207

     

     

    Making growth through technology easy

     

     

    DISCLAIMER | This electronic message together with any attachments is confidential. If you are not the recipient, do not copy, disclose, or use the contents in any way. Please also advise us by e-mail that you have received this message in error and then please destroy this email and any of its attachments. WilldooIT Pty. Ltd. is not responsible for any changes made to this message and/or any attachments after sending by WilldooIT Pty. Ltd. WilldooIT Pty. Ltd. use virus scanning software but exclude all liability for virus or anything similar in this email or attachment.



    From: Daniel Reis <dreis@opensourceintegrators.com>
    Sent: Thursday, 24 September 2020 8:01 PM
    To: Contributors <contributors@odoo-community.org>
    Subject: Weird issue: database does not run tests
     
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    _______________________________________________
    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 - 12:55 - 24 Sep 2020
  • Re: Weird issue: database does not run tests

    Oh, and tests only run when installing the module - have you used "-i module --test-entable" from the command line?

    Richard deMeester

    Senior Development Analyst

    WilldooIT Pty Ltd

    E: richard.demeester@willdooit.com

    M: +61 403 76 76 76

    P: +61 3 9135 1900

    A: 10/435 Williamstown Road, Port Melbourne, Vic 3207

     

     

    Making growth through technology easy

     

     

    DISCLAIMER | This electronic message together with any attachments is confidential. If you are not the recipient, do not copy, disclose, or use the contents in any way. Please also advise us by e-mail that you have received this message in error and then please destroy this email and any of its attachments. WilldooIT Pty. Ltd. is not responsible for any changes made to this message and/or any attachments after sending by WilldooIT Pty. Ltd. WilldooIT Pty. Ltd. use virus scanning software but exclude all liability for virus or anything similar in this email or attachment.



    From: Daniel Reis <dreis@opensourceintegrators.com>
    Sent: Thursday, 24 September 2020 8:01 PM
    To: Contributors <contributors@odoo-community.org>
    Subject: Weird issue: database does not run tests
     
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Richard deMeester <richard.demeester@willdooit.com> - 12:41 - 24 Sep 2020
  • Re: Weird issue: database does not run tests

    Be aware that tests only run if demodata is installed.

    There is a possible switch in config file without_demo=all (or command line) - if that is there, then tests won't run.



    Richard deMeester

    Senior Development Analyst

    WilldooIT Pty Ltd

    E: richard.demeester@willdooit.com

    M: +61 403 76 76 76

    P: +61 3 9135 1900

    A: 10/435 Williamstown Road, Port Melbourne, Vic 3207

     

     

    Making growth through technology easy

     

     

    DISCLAIMER | This electronic message together with any attachments is confidential. If you are not the recipient, do not copy, disclose, or use the contents in any way. Please also advise us by e-mail that you have received this message in error and then please destroy this email and any of its attachments. WilldooIT Pty. Ltd. is not responsible for any changes made to this message and/or any attachments after sending by WilldooIT Pty. Ltd. WilldooIT Pty. Ltd. use virus scanning software but exclude all liability for virus or anything similar in this email or attachment.



    From: Daniel Reis <dreis@opensourceintegrators.com>
    Sent: Thursday, 24 September 2020 8:01 PM
    To: Contributors <contributors@odoo-community.org>
    Subject: Weird issue: database does not run tests
     
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Richard deMeester <richard.demeester@willdooit.com> - 12:41 - 24 Sep 2020
  • Re: Weird issue: database does not run tests
    You are probably executing subsequent runs with i instead of u.

    On Thu, 24 Sep 2020, 10:21 pm David Beal, <david.beal@akretion.com> wrote:
    Hi Daniel,

    Have you also tried with odoo-pytest, to compare execution or not ?

    Regards

    David BEAL - akretion.com
    Consultant
    Odoo Intégration / Développement


    Le jeu. 24 sept. 2020 à 12:01, Daniel Reis <dreis@opensourceintegrators.com> a écrit :
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    _______________________________________________
    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 - 12:30 - 24 Sep 2020
  • Re: Weird issue: database does not run tests
    Hi Daniel,

    Have you also tried with odoo-pytest, to compare execution or not ?

    Regards

    David BEAL - akretion.com
    Consultant
    Odoo Intégration / Développement


    Le jeu. 24 sept. 2020 à 12:01, Daniel Reis <dreis@opensourceintegrators.com> a écrit :
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    _______________________________________________
    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 - 12:20 - 24 Sep 2020
  • Weird issue: database does not run tests
    Hello,
    
    I found this issue, and it is puzzling me, so I wonder if someone out 
    there has some idea.
    
    While creating a new module, using a dev database with demo data, at 
    some point I added tests.
    However, these tests don't get to run. I'm sure their Python files are 
    being loaded, but the test runner is not executing them.
    It is not like they are failing because of wrong data, They're simply 
    not being executed,
    
    After several trial and errors, I got them running after creating a new 
    database and running them on this database.
    
    So everything is the same: the code, the conf file, the system 
    environment, ...
    But test run in database B and not in database A!
    
    Why would that be?
    This was using Odoo 12.
    
    
    Thanks for any insights
    
    Daniel Reis
    Open Source Integrators
    

    by Daniel Reis - 12:01 - 24 Sep 2020
  • Re: Define permissions in website (frontend)

    Hello Yves,

    You can also enable authentication for specific URI in proxy configuration, depending on your target architecture it might be easier to deploy than overriding Odoo controllers but it will not be configurable by end users.

    Best regards,
    Rémi CAZENAVE - SCOP Le Filament
    https://le-filament.com


    De : Simone Orsi <simahawk@gmail.com>
    Envoyé : 24 septembre 2020 08:42:05 GMT+02:00
    À : Contributors <contributors@odoo-community.org>
    Objet : Re: Define permissions in website (frontend)

    Hello,

    if the goal is to simply block login, you could override the login/authenticate method and raise a proper error.

    If you want to block access to a specific route only, override it and raise proper exception when condition is not matched.

    Bests,

    On Wed, Sep 23, 2020 at 5:07 PM Yves Goldberg <yves@ygol.com> wrote:
    Hello,

    How would I grant access to a website but only for a res_partner fulfilling a condition?

    user case is publishing a list that is only accessible to partners who have "condition = True".

    Another option would be to have a public page protected by a single password. Maybe in a popup?

    Is there a module that could help? any pointer?


    I was thinking to get in the controller, the user's id from the session and then conditionally return the required data but maybe there is an easier way?




    Thank you




     --
    Yves Goldberg
    odooOfficial Partner - OCA delegate
    Open Source ERP, CRM & CMS
    T +972 (3) 720 8818
    +972 (55) 966 1405
    +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



    --
    Simone Orsi

    Full 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


    by Rémi Cazenave - 09:01 - 24 Sep 2020
  • Re: Define permissions in website (frontend)
    Hello,

    if the goal is to simply block login, you could override the login/authenticate method and raise a proper error.

    If you want to block access to a specific route only, override it and raise proper exception when condition is not matched.

    Bests,

    On Wed, Sep 23, 2020 at 5:07 PM Yves Goldberg <yves@ygol.com> wrote:
    Hello,

    How would I grant access to a website but only for a res_partner fulfilling a condition?

    user case is publishing a list that is only accessible to partners who have "condition = True".

    Another option would be to have a public page protected by a single password. Maybe in a popup?

    Is there a module that could help? any pointer?


    I was thinking to get in the controller, the user's id from the session and then conditionally return the required data but maybe there is an easier way?




    Thank you




     --
    Yves Goldberg
    odooOfficial Partner - OCA delegate
    Open Source ERP, CRM & CMS
    T +972 (3) 720 8818
    +972 (55) 966 1405
    +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



    --
    Simone Orsi

    Full stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source.

    by Simone Orsi - 08:41 - 24 Sep 2020
  • Re: l10n-italy on apps.odoo.com
    Ciao,

    this is the state of the repo on apps.odoo.com:

    1. l10n_it_fiscal_document_type: The license LGPL-3 conflicts with one of its dependencies. Please make sure that you comply with the licenses compatibility. See our FAQ at https://apps.odoo.com/apps/faq#maintainer_faq_04 .
    2. fiscal_epos_print: The license GPL-3 conflicts with one of its dependencies. Please make sure that you comply with the licenses compatibility. See our FAQ at https://apps.odoo.com/apps/faq#maintainer_faq_04 .
    3. l10n_it_website_sale_fiscalcode: The license LGPL-3 conflicts with one of its dependencies. Please make sure that you comply with the licenses compatibility. See our FAQ at https://apps.odoo.com/apps/faq#maintainer_faq_04 .
    4. l10n_it_vat_statement_communication: The license LGPL-3 conflicts with one of its dependencies. Please make sure that you comply with the licenses compatibility. See our FAQ at https://apps.odoo.com/apps/faq#maintainer_faq_04 .
    5. l10n_it_website_sale_fatturapa is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    6. l10n_it_pos_fatturapa is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    7. l10n_it_fatturapa_in_purchase is updated before its dependency l10n_it_fatturapa_in. Throw back to the end of the queue.
    8. l10n_it_fatturapa_in_rc is updated before its dependency l10n_it_fatturapa_in. Throw back to the end of the queue.
    9. l10n_it_fatturapa_out_wt is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    10. l10n_it_fatturapa_pec is updated before its dependency l10n_it_fatturapa_out. Throw back to the end of the queue.
    11. l10n_it_fatturapa_sale is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    12. l10n_it_website_portal_fatturapa_sale is updated before its dependency l10n_it_website_portal_fatturapa. Throw back to the end of the queue.
    13. l10n_it_withholding_tax_payment is updated before its dependency l10n_it_withholding_tax. Throw back to the end of the queue.
    14. l10n_it_withholding_tax_causali is updated before its dependency l10n_it_withholding_tax. Throw back to the end of the queue.
    15. l10n_it_fatturapa_out_stamp is updated before its dependency l10n_it_fatturapa_out. Throw back to the end of the queue.
    16. l10n_it_website_sale_corrispettivi: unmet dependency l10n_it_website_sale_fatturapa for series 12.0. Dependency might be invalid.
    17. l10n_it_invoices_data_communication: unmet dependency l10n_it_fiscal_document_type for series 12.0. Dependency might be invalid.
    18. l10n_it_fatturapa_out is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    19. l10n_it_website_portal_fatturapa is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    20. l10n_it_fatturapa_out_ddt: unmet dependency l10n_it_fatturapa_out for series 12.0. Dependency might be invalid.
    21. l10n_it_corrispettivi_fatturapa_out: unmet dependency l10n_it_fatturapa_out for series 12.0. Dependency might be invalid.
    22. l10n_it_withholding_tax is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    23. fiscal_epos_print_fiscalcode: unmet dependency fiscal_epos_print for series 12.0. Dependency might be invalid.
    24. l10n_it_sdi_channel is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    25. l10n_it_fatturapa_in is updated before its dependency l10n_it_fatturapa. Throw back to the end of the queue.
    26. l10n_it_fatturapa: unmet dependency l10n_it_fiscal_document_type for series 12.0. Dependency might be invalid.
    27. l10n_it_invoices_data_communication_fatturapa: unmet dependency l10n_it_invoices_data_communication for series 12.0. Dependency might be invalid.
    28. l10n_it_fatturapa_export_zip: unmet dependency l10n_it_fatturapa_out for series 12.0. Dependency might be invalid.
    29. l10n_it_fatturapa_out_triple_discount: unmet dependency l10n_it_fatturapa_out for series 12.0. Dependency might be invalid.
    Cheers

    On Sun, Sep 20, 2020 at 8:52 AM Lorenzo Battistini <elbaddy@gmail.com> wrote:
    Hi all,

    we should have fixed licenses issues of l10n-italy repo, but we still can't find some modules on apps.odoo.com (for v12), like l10n_it_fatturapa_pec.

    Can anybody check?

    Thanks!


    On Thu, 13 Feb 2020 at 09:57, Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> wrote:
    I'm afraid that's not possible, as Odoo Apps management doesn't allow that kind of things.

    Any way, you have to amend the license problem, and then it will come out on the daily scan.

    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



    --
    Simone Orsi

    Full stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source.

    by Simone Orsi - 08:36 - 24 Sep 2020
  • Re: l10n-italy on apps.odoo.com
    Hi. this is the current status for italy repos:



    Thanks
    Daniel

    On 23/09/2020 17:36, Andrea Cometa - Apulia Software srl wrote:
    Please, could someone check?

    Il 20/09/20 08:52, Lorenzo Battistini ha scritto:
    Hi all,

    we should have fixed licenses issues of l10n-italy repo, but we still can't find some modules on apps.odoo.com (for v12), like l10n_it_fatturapa_pec.

    Can anybody check?

    Thanks!


    On Thu, 13 Feb 2020 at 09:57, Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> wrote:
    I'm afraid that's not possible, as Odoo Apps management doesn't allow that kind of things.

    Any way, you have to amend the license problem, and then it will come out on the daily scan.

    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


    --
    Andrea Cometa - Presidente Associazione Odoo Italia
    Apulia Software srl - Responsabile Commerciale ed Amministrativo
    Taranto / Milano / Potenza
    Tel: 0999915404 http://www.apuliasoftware.it
    a.cometa@apuliasoftware.it pec: apulia.software@pec.it
    linkedin: http://it.linkedin.com/in/andreacometa

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    by Daniel Reis - 08:01 - 23 Sep 2020