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] typ: Missing label in routes view #1682

Closed

Conversation

TeposteAJ
Copy link
Contributor

@TeposteAJ TeposteAJ commented Aug 29, 2024

The fields for warehouses and manual_transfers_selectable were placed on a single line. There was no clarity on what they represented, as they were just two checkboxes without the appropriate labels. Therefore, the latter was moved to a separate field and made invisible where it was previously displayed.

Related https://git.vauxoo.com/vauxoo/typ/-/issues/484

Form Routes View.

  • Before development. Without the warehouses checkboxes checked. It doesn't show anything.
    image
  • After development. Without the warehouses & manual_transfers checkboxes checked. There is a single checkbox per line, and each field has its corresponding label, which provides greater clarity.
    image

Form Routes View.

  • Before development. With the checkboxes checked, it shows a selection field.
    image
  • After development. With the checkboxes checked, it shows a selection field for warehouses.
    image

The fields for warehouses and manual_Transfers_selectable were placed
on a single line. There was no clarity on what they represented, as
they were just two checkboxes without the appropriate labels. Therefore,
the latter was moved to a separate field and made invisible where it was
previously displayed.

Related https://git.vauxoo.com/vauxoo/typ/-/issues/484
@TeposteAJ
Copy link
Contributor Author

@luisg123v Could you review, please? 🥲

Copy link
Contributor

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

Regarding commit message:

  • Title: typstock_manual_transfer
  • Description doesn't match, because no field is being made invisible
  • Since this is a community project, referencing private issues wouldn't make sense because they won't be accessible anyway.

@@ -5,7 +5,7 @@
<field name="model">stock.route</field>
<field name="inherit_id" ref="stock.stock_location_route_form_view" />
<field name="arch" type="xml">
<xpath expr="//field[@name='warehouse_selectable']" position="after">
<xpath expr="//div[field[@name='warehouse_ids']]" position="after">
Copy link
Contributor

Choose a reason for hiding this comment

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

For readability, I think it would be better to reference the selectable field:

Suggested change
<xpath expr="//div[field[@name='warehouse_ids']]" position="after">
<xpath expr="//div[field[@name='warehouse_selectable']]" position="after">

(I had to check original code to understand this)

@TeposteAJ TeposteAJ closed this Aug 29, 2024
@luisg123v
Copy link
Contributor

Superseded by #1683, where the correct source repo was used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants