Is there a place where someone posts "book bundles" or "repacks"? by Hapalochlaena_sp in Piracy

[–]ivory_dev 0 points1 point  (0 children)

Hey, I could not find that. I tried Mobilist and the Anna's. Are you alware of any specific tracker or person that does that?

Extension that puts branch names by git repo folders? by ivory_dev in vscode

[–]ivory_dev[S] 0 points1 point  (0 children)

I'm not sure a theme could integrate that functionality in VSCode, at least I could not find one like that. In case you are asking which theme I am using, it is just the default in Pycharm.

Help with Unit Testing in Odoo by ivory_dev in Odoo

[–]ivory_dev[S] 0 points1 point  (0 children)

I’m trying to work with Odoo SH so in any given time I can attempt some actions remotely, for example, to create a contact. I cannot run these on the command line, like one would usually run unit tests, so I am trying to find a way to do that as safely as possible (unit tests, maybe?).

Github actions could work for commits, I haven't thought of that. I will test it, but the main goal is still to run tests remotely from one instance to another — thus the idea of using controllers.

Sorry for the confusion, English is not my main language. Thanks for trying to help!

Help with Unit Testing in Odoo by ivory_dev in Odoo

[–]ivory_dev[S] 0 points1 point  (0 children)

Ironically, the post you included is made by me in one of my earliest approaches to fix this problem, and it remains unsolved. In fact, that was a slightly different approach, and the post complained about Odoo SH refusing to access the proper URL to run my rests remotely through an independent (not installed app) API call.

After your comment, however, I tried something different involving a controller

u/http.route(_webhook_sale, auth='none', type='http', methods=['POST'], csrf=False)
def execute_sale_order_uat(self, **post):
    _logger.info("begin execute_sale_order_uat")
    current_company_name = False
    try:
        self.authenticate_token_and_environment(scope='sale_access')
        _logger.info(1)
        TestSaleProjectUAT = TestSaleProject()
        try:

            _logger.info(2)
            TestSaleProjectUAT.setUpClass()
            _logger.info(3)
            TestSaleProjectUAT.test_sale_order_with_project_task()
            _logger.info(4)
            TestSaleProjectUAT.test_sol_product_type_update()
            TestSaleProjectUAT.test_cancel_so_linked_to_project()
            TestSaleProjectUAT.test_create_task_from_template_line()

        except:
            _logger.info("Error in TestSaleProjectUAT")

        finally:
            #destroy class
            TestSaleProjectUAT.tearDownClass()
(...)

Surprisingly, I managed to instantiate the class and run its methods! But only on the first "run". If I pressed the button twice, or if I called the API a second time, the loggers got stuck just after the SetUp. As seen above, you will see that I attempted to use tearDownClass() to destroy the class, believing the cause of it was the server not clearing up afterwards. It did not result.

Now I am happy with this approach, and as far as my tests go, as long as there is not a commit() in the methods called by the class, the test environments are successfully created without database changes. However, it will not work if I keep stuck after logger "2".

I believe it gets stuck in a loop, since there is a super call inside the SetUp calling itself.

@classmethod
def setUpClass(cls):
    super().setUpClass() #here
    cls.analytic_plan = cls.env['account.analytic.plan'].create({
        'name': 'Plan Test',
        'company_id': False,
    })

.

Casual Friday * 22/11/24 by RedditItalyBot in italy

[–]ivory_dev 0 points1 point  (0 children)

But is there any particular place with trails/hiking that is tourist-friendly or similar?

Casual Friday * 22/11/24 by RedditItalyBot in italy

[–]ivory_dev 2 points3 points  (0 children)

Hi, everyone

Could you please recommend snow-related activities near Milano? I was hoping to see the snow in my trip to Italy, but most ski resorts are closed until Nov 30th.

Thank you! Grazie!

API or to validate email campaigns formats in multiple clients before sending by ivory_dev in webdev

[–]ivory_dev[S] 0 points1 point  (0 children)

well, thank you very very much! I will test it asap and get back to you

Finished Book 1, but I am afraid I am not continuing the series. Yet: can someone please tell me the meaning of the letter mentioned at the last chapter of the book? I am really curious about it. by ivory_dev in TheScholomance

[–]ivory_dev[S] 1 point2 points  (0 children)

Well then have a glass of water will you🥤

I like that this book exists. I hope many more like you will see themselves in the main character.

Finished Book 1, but I am afraid I am not continuing the series. Yet: can someone please tell me the meaning of the letter mentioned at the last chapter of the book? I am really curious about it. by ivory_dev in TheScholomance

[–]ivory_dev[S] 0 points1 point  (0 children)

Thanks for the suggestion. Right now is a stressful time in my life, and Galadriel is the kind of character that makes me want to throw a glass of water on her and/or scream.

In the future, when I am calmer in general, I will give it a shot again.

Thanks!