-
Notifications
You must be signed in to change notification settings - Fork 106
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
Upgrade of a delivery address linked to an open order #609
Comments
I see 2 different solutions (both with pros and cons):
IMO the first is better than the second. |
@bguillot did some experimentations on this topic if I remember well. akretion/partner-contact@6a6a979 |
For me, the second is better idea. We just need to set the existing one as active=False. At school, we learnt that for order addresses, we need to keep all details(street, zip and so on) and do not point to a record. Even in real case it's not possible, the second behaviour with the active False is the one that is most similar to that. |
@hparfr it's a merged module https://github.com/OCA/partner-contact/tree/10.0/partner_address_version and I think it fix the case mentionned by @Cedric-Pigeon |
Isn't a too big bang solution compare to the one proposed ? |
Subject have been discussed here OCA/partner-contact#404 I couldn't find this issue anymore sorry, may be because its number is |
@rousseldenis you are right I am not sure we need to go so far to solve such case |
I think this behavior should be optional via backend settings. For opt 2 I'd add a new module |
FTR @thibaultrey Locomotive PR is still pending here shopinvader/shopinvader-template#21 -> it can be unlocked when this feature lands in all versions. |
You do not need to create a shopinvader_partner_version. We have build this module for solving this issue and it's the cleanest way to do it (no more issue on changing invoice address...), we have customer in production with it and shopinvader and there not issue. I do not think we should handle this into shopinvader the issue is a pure odoo issue (record are linked to addresses and addresses can be changed from shopinvader or from odoo backoffice). If you really want to do this in shopinvader I prefer to have it in a separed module because I think it's an hack, and it's not a good user experience on frontend. Note I do not think that we should depend on sale_partner_version, but we can recommend to use it as it fix this Odoo issue |
@sebastienbeau Actually I just had a deeper look on your suggested add-ons. Unfortunately, it is not compliant with a shopinvader feature:https://github.com/shopinvader/odoo-shopinvader/blob/10.0/shopinvader/models/res_partner.py#L30 As the versioning feature creates a duplicate of the contact, it triggers the constrains on email unicity. Should we add an active where_clause in the sql query on the constrains? |
Hum, we do not have this option activated, this is why we didn't had the issue. |
I just discovered that sale_partner_version duplicates all addresses at each sale order confirmation. |
I confirmed that tells cedric and it's an unrequested features or a bug IMHO. It wasn't the initial conception probably lost in this demoniac number OCA/partner-contact#404. You can test yourself duplicating this sale http://3418459-10-0-7c9805.runbot2-2.odoo-community.org/web#id=16&view_type=form&model=sale.order&menu_id=210&action=279 cc @bguillot could you confirm ? |
work in progress here to trigger the versioning on address update if used: |
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Hi all,
we faced this case on production yesterday:
So both orders were delivered at the same address.
How should we prevent that? Should we block update of an address linked to an order?
The text was updated successfully, but these errors were encountered: