[18.0][FIX] contract: contracts from partners not yet invoiced#1413
[18.0][FIX] contract: contracts from partners not yet invoiced#1413chienandalu wants to merge 1 commit intoOCA:18.0from
Conversation
When we have a brand new customer or supplier, we could't see their contracts until those are invoiced and the customer/supplier rank counter is started. Better rely on the existing sale/purchase contracts counter. MT-14364
fcvalgar
left a comment
There was a problem hiding this comment.
Tested and working as expected.
I have verified the behavior by creating the contact from Contacts, Sales, and Purchase. In all cases, the contact correctly shows the corresponding smart button.
Thanks for the fix @chienandalu .
LGTM
|
When contacts are created via the Customer or Supplier actions, the x_rank field is set correctly: When you create a Customer/Supplier following the ‘correct workflow’, you expect the smartbutton to be visible so that you can create a contract from there. With this change, what will happen to the smartbutton when a Customer/Supplier is created? If you want to proceed this way, what you should do is use the _increase_rank method when creating a contract in the same way as when creating an invoice: ping @sergio-teruel |
|
Well, yes, taking that perspective I think you're absolutly right. Thanks for you review @carlosdauden 😉 |
When we have a brand new customer or supplier, we could't see their contracts until those are invoiced and the customer/supplier rank counter is started. Better rely on the existing sale/purchase contracts counter.
Should close:
cc @moduon MT-14364
please review @fcvalgar @Gelojr