Skip to content

[18.0][IMP] product_main_seller: Add main_seller_id to product.product product and add to depends date_start, date_end#3057

Open
Andrii9090-tecnativa wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-imp-product_main_seller
Open

[18.0][IMP] product_main_seller: Add main_seller_id to product.product product and add to depends date_start, date_end#3057
Andrii9090-tecnativa wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-imp-product_main_seller

Conversation

@Andrii9090-tecnativa
Copy link
Copy Markdown
Contributor

Add field main_seller_id to product.product

@pedrobaeza can you review, please?
@Tecnativa

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @legalsylvain, @quentinDupont,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:18.0 mod:product_main_seller Module product_main_seller labels May 7, 2026
@pedrobaeza pedrobaeza added this to the 18.0 milestone May 7, 2026
def _compute_main_seller_id(self):
for product in self:
if product.variant_seller_ids:
product.main_seller_id = fields.first(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing here the filter for only this variant to have priority.

Copy link
Copy Markdown
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi.
Unfortunately, it is not possible to compute and store fields, based on fields.Date.today() as this value is changing all the time.

@pedrobaeza
Copy link
Copy Markdown
Member

The idea is to include a cron for updating that daily. @Andrii9090-tecnativa please do it at the same time.

@Andrii9090-tecnativa Andrii9090-tecnativa force-pushed the 18.0-imp-product_main_seller branch from cb42118 to e35c035 Compare May 8, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:product_main_seller Module product_main_seller series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants