Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] stock_landed_costs: landed Cost to be hidden on other product types #153371

Closed

Conversation

suth-odoo
Copy link
Contributor

@suth-odoo suth-odoo commented Feb 9, 2024

Steps to Reproduce :

  • install sales, stock modules
  • go to products and create new
  • select product type as Event Ticket,Event Booth or Gift Card
  • Landed cost boolean is suppose to be visible for a service type product under purchase.

Issue :

  • Landed cost boolean is suppose to be visible for a service type product under purchase, But currently it is visible on other type of products specific to other models like event tickets, event booths etc.

Cause:

  • In product Module there are two Selection fields like detailed_type and type. The detailed_type Selection field contain service, consumable, event booths, event tickets, storable product And the type selection field contains service, consumable, storable product
  • In xml views for that landed cost boolean the invisible attribute contains the condition like type != service, because of this the landed cost boolean is visible for the product type of event tickets, event booths and gift Cards.

Solution:

  • if we use detailed_type instead of type selection field, then the landed cost boolean field will be invisible on other product types.

task- 3725202

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@suth-odoo suth-odoo changed the title [FIX] sales: sales: landed Cost to be hidden on other product types [FIX] sales: landed Cost to be hidden on other product types Feb 9, 2024
@robodoo
Copy link
Contributor

robodoo commented Feb 9, 2024

@suth-odoo suth-odoo force-pushed the 15.0-bug-fixes-stock-landed-costs-suth branch from 2fe94d3 to 4d6c5aa Compare February 9, 2024 08:22
@C3POdoo C3POdoo added the RD research & development, internal work label Feb 9, 2024
Copy link
Contributor

@pkyriakou pkyriakou left a comment

Choose a reason for hiding this comment

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

Thank you @suth-odoo 💯 I don't have anything to add, LGTM 🟢 🔝

Copy link
Contributor

@xavierbol xavierbol left a comment

Choose a reason for hiding this comment

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

Hello @suth-odoo

Thanks for your work!

However the commit title does not fit our guidelines, the module in which you did the fix is stock_landed_costs and not sales.

Also, in the steps to reproduce, you say install sales but only with that module, the stock_landed_costs will not be installed as well. We should also install stock module and so with sale and stock modules, stock_landed_costs will normally automatically installed.

Can you update that and rebase your branch at the same time? 🙂

Thanks in advance!

…ypes

Steps to Reproduce :
- install sales, stock modules
- go to products and create new
- select product type as Event Ticket,Event Booth or Gift Card
- Landed cost boolean is suppose to be visible for a service type product under
  purchase.

Issue :
- Landed cost boolean is suppose to be visible for a service type product under
  purchase, But currently it is visible on other type of products specific to
  other models like event tickets, event booths etc.

Cause:
- In product Module there are two Selection fields like detailed_type and
  type. The detailed_type Selection field contain service, consumable,
  event booths, event tickets, storable product  And the type selection field
  contains service, consumable, storable product
- In xml views for that landed cost boolean the invisible  attribute contains
  the condition like  type != service, because of this the landed cost boolean
  is visible for the product type of event tickets, event booths and gift Cards.

Solution:
- if we use detailed_type instead of type selection field, then the landed cost
  boolean field  will be invisible on other product types.

 task- 3725202
@suth-odoo suth-odoo force-pushed the 15.0-bug-fixes-stock-landed-costs-suth branch from 4d6c5aa to eb2ccde Compare February 26, 2024 08:49
@suth-odoo suth-odoo changed the title [FIX] sales: landed Cost to be hidden on other product types [FIX] stock_landed_costes: landed Cost to be hidden on other product types Feb 26, 2024
@suth-odoo suth-odoo changed the title [FIX] stock_landed_costes: landed Cost to be hidden on other product types [FIX] stock_landed_costs: landed Cost to be hidden on other product types Feb 26, 2024
@suth-odoo
Copy link
Contributor Author

Hello @xavierbol
Thanks for your review... I updated the commit ..check once if free

@xavierbol xavierbol marked this pull request as ready for review February 27, 2024 07:35
@C3POdoo C3POdoo requested a review from a team February 27, 2024 07:37
@xavierbol
Copy link
Contributor

Hello @odoo/rd-logistics

Can we have your opinion about that fix before merging it?

Thanks in advance! 🙂

@xavierbol
Copy link
Contributor

robodoo r+

robodoo pushed a commit that referenced this pull request Mar 1, 2024
…ypes

Steps to Reproduce :
- install sales, stock modules
- go to products and create new
- select product type as Event Ticket,Event Booth or Gift Card
- Landed cost boolean is suppose to be visible for a service type product under
  purchase.

Issue :
- Landed cost boolean is suppose to be visible for a service type product under
  purchase, But currently it is visible on other type of products specific to
  other models like event tickets, event booths etc.

Cause:
- In product Module there are two Selection fields like detailed_type and
  type. The detailed_type Selection field contain service, consumable,
  event booths, event tickets, storable product  And the type selection field
  contains service, consumable, storable product
- In xml views for that landed cost boolean the invisible  attribute contains
  the condition like  type != service, because of this the landed cost boolean
  is visible for the product type of event tickets, event booths and gift Cards.

Solution:
- if we use detailed_type instead of type selection field, then the landed cost
  boolean field  will be invisible on other product types.

 task- 3725202

closes #153371

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
@robodoo robodoo closed this Mar 1, 2024
@fw-bot fw-bot deleted the 15.0-bug-fixes-stock-landed-costs-suth branch March 15, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants