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

[14.0] [FIX] l10n_it_delivery_note: carrier syncing #3815

Closed

Conversation

renda-dev
Copy link
Contributor

  • Set the delivery note carrier as a 'delivery carrier' instead of a partner
  • Sync the carrier between the picking and the delivery note
  • All the pickings carriers inside a DN must be the same

@OCA-git-bot
Copy link
Contributor

Hi @MarcoCalcagni,
some modules you are maintaining are being modified, check this out!

Copy link
Contributor

@Borruso Borruso left a comment

Choose a reason for hiding this comment

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

grazie mille per la PR.

molto interessante come gestione, ma per essere approvata mi manca la gestione dei dati dei precendeti DdT.
dovresti fare uno script per che a esempio:

  • se non c'è carrier su picking: creare un delivery.carrier e linkarlo al DdT
  • se c'è carrier su picking: linkare il carrier al DdT

inoltre cancellare il flag is_carrier dal partner che a questo punto non serve più e controllare le viste tipo in questa view l10n_it_delivery_note/views/stock_delivery_note.xml dove è impostato il domain

l10n_it_delivery_note/cli/migrate_l10n_it_ddt.py Outdated Show resolved Hide resolved
@renda-dev renda-dev force-pushed the 14.0-fix-l10n_it_delivery_note branch from 73b95db to a20ab8d Compare January 8, 2024 11:24
@renda-dev
Copy link
Contributor Author

Grazie per la review! @Borruso

Ho aggiornato la PR in base ai tuoi consigli, fammi sapere cosa ne pensi :)

Copy link
Contributor

@andreampiovesana andreampiovesana left a comment

Choose a reason for hiding this comment

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

LGTM
ma che differenza c'è tra delivery_method_id e carrier_id?
serve dipendenza a https://github.com/OCA/delivery-carrier/tree/14.0/delivery_carrier_partner?
image

Copy link
Contributor

@Borruso Borruso left a comment

Choose a reason for hiding this comment

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

grazie mille per le modifiche.

}
)

delivery_carrier_id = env["delivery.carrier"].create(
Copy link
Contributor

Choose a reason for hiding this comment

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

unica osservazione tu fai sempre la create del delivery.carrier in questo caso avrai vari delivery carrier con la stesso nome perché non c'è un raggruppo per partner quindi anche se il partner sul secondo DdT è lo stesso crea di nuovo il delivery.carrier

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Grazie per avermelo fatto notare, mi era totalmente sfuggito.

Ora funziona come dovrebbe, fammi sapere se l'implementazione ti piace :)

@francesco-ooops
Copy link
Contributor

LGTM ma che differenza c'è tra delivery_method_id e carrier_id? serve dipendenza a https://github.com/OCA/delivery-carrier/tree/14.0/delivery_carrier_partner?

forse non è una cattiva idea

@renda-dev renda-dev force-pushed the 14.0-fix-l10n_it_delivery_note branch from a20ab8d to 14349ed Compare January 9, 2024 11:25
@renda-dev
Copy link
Contributor Author

LGTM ma che differenza c'è tra delivery_method_id e carrier_id? serve dipendenza a https://github.com/OCA/delivery-carrier/tree/14.0/delivery_carrier_partner?

Questa PR punta a eliminare l'utilizzo dei partner come carrier in quanto non sono tali, quindi non credo che sia molto in sintonia con le nostre intenzioni

@francesco-ooops francesco-ooops self-assigned this Jan 11, 2024
- Set the delivery note carrier as a 'delivery carrier' instead of a
  partner
- Sync the carrier between the picking and the delivery note
- All the pickings carriers inside a DN must be the same
@renda-dev renda-dev force-pushed the 14.0-fix-l10n_it_delivery_note branch from 14349ed to eb0c9d9 Compare January 11, 2024 10:01
Copy link
Member

@tafaRU tafaRU left a comment

Choose a reason for hiding this comment

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

Review tecnica 👍

Copy link
Contributor

@andreampiovesana andreampiovesana left a comment

Choose a reason for hiding this comment

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

sono più favorevole a #3838

@renda-dev renda-dev marked this pull request as draft January 12, 2024 08:59
@renda-dev
Copy link
Contributor Author

Moved to #3838

@renda-dev renda-dev closed this Jan 15, 2024
@renda-dev renda-dev deleted the 14.0-fix-l10n_it_delivery_note branch January 15, 2024 13:21
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.

6 participants