pos icon indicating copy to clipboard operation
pos copied to clipboard

[16.0][IMP] pos_default_partner: set default partner also in pos ui

Open huguesdk opened this issue 1 year ago • 7 comments

huguesdk avatar Dec 13 '24 11:12 huguesdk

@OCA/pos-maintainers could someone please review or merge this?

huguesdk avatar Feb 05 '25 16:02 huguesdk

Hello @huguesdk,

Thanks for your contribution! In my opinion, there are processes in PoS interface that need a specific partner, and they would use by default the one in this module. For example, if cashier clicks on invoice button, an invoice for default partner would be generated, with no warning or redirection to partner selection screen. That's because there would be no distinction between a real customer and default partner (as in invoice example). In addition, default customer data would be shown on ticket.

Could you please take this in consideration and rebase to rebuild runboat and confirm those behaviours? Thanks in advance

Regards.

danielduqma avatar Feb 06 '25 09:02 danielduqma

@danielduqma thanks for your message! indeed, with a default partner configured, there would be no warning if an invoice is created and no partner has been selected, but there is a clear visual hint that a partner is already set (name and teal background).

bildo

after all, isn’t this the expected behavior of this module? should the default partner be removed in case an invoice is generated, or the warning still present if the default partner is selected?

a runboat build has been triggered.

huguesdk avatar Feb 07 '25 10:02 huguesdk

Thanks @huguesdk! As we see this point (Spain) it would not be right to create a complete invoice assigned to this generic partner. In fact, there are many processes apart from invoicing that require a real customer to be selected, like pos_order_to_sale_order, and right now there is no blocking alert that prevents cashier to place it with default partner.

Regards.

danielduqma avatar Feb 07 '25 11:02 danielduqma

@danielduqma i understand. what would you suggest as behavior, then? the roadmap contained “set the default customer also on the pos ui.”, which is what is done here.

huguesdk avatar Feb 07 '25 13:02 huguesdk

Yes, this is in the roadmap but it hasn't been done I guess because it's not as simple as assigning default partner at the beginning of the process. Besides, this assignment would include its data in ticket, so a real customer would be able to see it.

I don't really know what was pretended to be done, according to roadmap, but the other option I'd prefer is to change placeholder of set customer button (here and here), showing cashier that default partner will be assigned if no customer is selected but without actual modifications in order until it is saved at server side.

Regards.

danielduqma avatar Feb 10 '25 09:02 danielduqma

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Jun 15 '25 12:06 github-actions[bot]