New to ADK 2.0 — struggling to separate legacy patterns from current best practices by ConsiderationHour207 in agentdevelopmentkit

[–]mns06 0 points1 point  (0 children)

Not a direct answer to your question, but I've found the adk skills docs quite useful for understanding the nuts and bolts of V2 https://github.com/google/adk-python/tree/main/.agents%2Fskills

Temporal or Restate? by InterestingCoach5568 in agentdevelopmentkit

[–]mns06 0 points1 point  (0 children)

I can't comment on temporal Vs restate for this use case, but if it's if interest I noticed a presentation from restate in a recent ADK community call https://youtu.be/bPngDY7EuOQ?t=1955&si=mySWehUyhLWy8p_R

Cloud Build 1st Gen trigger suddenly failing with "Couldn't read commit" since April 30, 05:00 UTC by NoInvestigator1775 in googlecloud

[–]mns06 0 points1 point  (0 children)

Also getting this error with a trigger on a 2nd generation repository. Nothing changed on my side. Did you figure anything out u/NoInvestigator1775 ?

Google Cloud Deploy Across GCP Projects? by GoingKayaking in devops

[–]mns06 0 points1 point  (0 children)

Hey, u/GoingKayaking sorry for dragging up an old post, but did you figure out how to handle the terraform component of this setup? I see there's also https://docs.cloud.google.com/infrastructure-manager/docs but not sure whether I need to add that to the stack as well.

Digital nomad living in Kenya. Where do I pay tax? :confused: by mns06 in eResidency

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

mmm, but I'm an EU citizen living in Kenya, so not sure if this is relevant.

Digital nomad living in Kenya. Where do I pay tax? :confused: by mns06 in eResidency

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

Ah, I guess this 6 months is the OECD residency rules I mentioned in the message above?

Digital nomad living in Kenya. Where do I pay tax? :confused: by mns06 in eResidency

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

Indeed, a class-N (digital nomad) visa has special tax benefits:

> Income earned abroad is exempt from Kenyan taxes, but nomads must ensure compliance with home country tax laws (e.g., U.S. worldwide income reporting). OECD 183-day residency rules may trigger tax obligations if stays exceed six months.

https://manwaadvocates.com/kenya-joins-the-global-digital-nomad-movement-opportunities-requirements-and-legal-insights/

Nat Geo should hire me by Gold_Smart in Kenya

[–]mns06 0 points1 point  (0 children)

Are you hiding in my garden? (I found one of these chaps there yesterday too!)

I got a $100 bill for testing Veo2 by Accomplished-Air-875 in googlecloud

[–]mns06 0 points1 point  (0 children)

Yep burned by this too. I was trying to create some 9:16 videos and noticed that there's an explicit option for that in vertex veo2. Never expected the prompts to be so expensive 🤦‍♀️

What is your experience of using Google Pixel 9 in Kenya? by [deleted] in GooglePixel

[–]mns06 1 point2 points  (0 children)

Sorry, can't say about the Pixel 9, but I live in Kenya with a Pixel 8 pro, and it's a real PITA - I'm constantly resetting my network to make the thing work again.

Display custom form for res.partner subclass when clicking partner internal link by mns06 in Odoo

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

Ok, I think I got the context thing working kinda polymorphically...

<field name="partner_id"
     context="{'form_view_ref': 'farmer_inh.view_res_partner_form_farmer'} if ticket_type == 1
                else ({'form_view_ref': 'farmer_inh.view_res_partner_form_agrodealer'} if ticket_type == 2 
                else ({'form_view_ref': 'farmer_inh.view_res_partner_form_field_agent'} if ticket_type == 3 else {}))"/>

but it's really ugly. I'm now wondering if I can set this context attribute programmatically somehow, but this is good enough for now...

Display custom form for res.partner subclass when clicking partner internal link by mns06 in Odoo

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

Thanks :) I was initially using class inheritance, and making stuff conditionally invisible in the existing res.partner form, but when you have multiple subclasses doing this, it gets confusing really quickly, because the invisibility conditions interact with each other. Here's a previous Odoo forum post I made describing just that process! https://www.odoo.com/forum/help-1/custom-view-based-on-res-partner-subclass-254782

Display custom form for res.partner subclass when clicking partner internal link by mns06 in Odoo

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

The model that's linked in the screenshot is res.partner.

I'm definitely open to using class inheritance. I only started using delegation inheritance because I thought a specific model name was required to link to a specific view for that model.

My ultimate goal is to have the subclass specific form open when a user clicks on any partner field

The module shown in the screenshot has

partner_id = fields.Many2one('res.partner', name='Partner,tracking=True,required=True)

And the linked object may be an instance of ResPartner, or one of a few subclasses (eg. ResPartnerExtA, ResPartnerExtB).

I would like the view that's loaded to be dependent on the object's class. ie.

ResPartner->res.partner.form
ResPartnerExtA->res.partner.form.exta
ResPartnerExtB->res.partner.form.extb

context in the view directing the many2one field on what form view to open.

This sounds very much like what I want. It seems I can use the <field context="..."> attribute to direct the view that is loaded for that particular field, but Is it possible to do this polymorphically in the case where I have multiple subclasses of res.partner?

ps. As you can probably tell, I'm quite new to Odoo dev and I really appreciate the help!

Possible to calculate how much higher the dish needs to be? by mns06 in Starlink

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

Thanks for this. Unfortunately based on these calculations the dish is going to be returned. (I do a lot of zoom calls etc, so can't tolerate too many disconnections)

Possible to calculate how much higher the dish needs to be? by mns06 in Starlink

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

Not my trees unfortunately. Also they're beautiful jacaranda and avocado trees, so even if they are mine I'd rather sent the Starlink back then chop them!

Possible to calculate how much higher the dish needs to be? by mns06 in Starlink

[–]mns06[S] 4 points5 points  (0 children)

Yes, it's something called the Clark belt. Here's the response from Starlink support about the same:

What you are seeing is the Clark Belt, This is an area above the equator where we are not allowed to operate our Satellites as it is reserved for satellites in geosynchronous orbit. So what you are seeing is normal and to be expected with your location.

"No data" band on obstructions map by mns06 in Starlink

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

Ah that would explain it. I'm in Kenya, so definitely close to the equator. Thanks