-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
[14.0][IMP] rma_sale: improve onchange methods #335
base: 14.0
Are you sure you want to change the base?
Conversation
Hi @ernestotejeda, |
adcad0c
to
b6b2bda
Compare
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. |
b6b2bda
to
d9d5072
Compare
@rousseldenis could you please open this PR again? |
Hi @chienandalu, @ernestotejeda, |
- Onchange partner: Unset the order_id only if the new partner is not a child of the orders commercial partner - Onchange order: Set partner fields and procurement group - Onchange order and product: Change move and picking - Onchange picking: Change move
d9d5072
to
3af6c84
Compare
ping @chienandalu do you have time for a review? |
You should check how it's done in 16.0, and backport it here, as that's a better way to go IMO. |
Thx. But i can not see any change which i can backport and matching my changes. |
I mean the conversion to computed writable fields. |
See 54e08e8 |
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. |
Changes:
_onchange_partner_id:
Before the order_id was always set to False
Now it's only set to False
if there is no partner selected or
the selected order_id.partner_id is not a child of the current selected partner_id.commercial_partner_id
_onchange_order_id:
if the order_id is set the corresponding partner_fields are getting set
New onchange methods:
_onchange_order_id_product_id:
if the order_id and the product_id is set
it tries to set the move_id with the latest shipped move with the same product_id
as well as the picking_id
_onchange_picking_id:
if the picking and product ist
tries to set the move by selecting the corresponding move