-
-
Notifications
You must be signed in to change notification settings - Fork 307
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: fix partner ddt #2785
Conversation
@Borruso puoi rilanciare il runboat? |
/ocabot rebase |
Congratulations, PR rebased to 14.0. |
c3091a4
to
8ead37d
Compare
if picking_type_code == ["outgoing"]: | ||
src_partner_id = self.company_id.partner_id | ||
else: | ||
src_partner_id = partner_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if picking_type_code == ["outgoing"]: | |
src_partner_id = self.company_id.partner_id | |
else: | |
src_partner_id = partner_id | |
src_partner_id = self.company_id.partner_id if picking_type_code == ["outgoing"] else partner_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: personalmente lo preferisco in questa forma se si tratta di un semplice controllo che in entrambi i casi va a modificare solo la stessa variabile
if picking_type_code == ["incoming"]: | ||
dest_partner_id = self.company_id.partner_id | ||
else: | ||
dest_partner_id = partner_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if picking_type_code == ["incoming"]: | |
dest_partner_id = self.company_id.partner_id | |
else: | |
dest_partner_id = partner_id | |
dest_partner_id = self.company_id.partner_id if picking_type_code == ["incoming"] else partner_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: come sopra
8ead37d
to
d44a5a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review: LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review, LGTM
/ocabot merge patch |
On my way to merge this fine PR! |
This PR has the |
Congratulations, your PR was merged at e33d988. Thanks a lot for contributing to OCA. ❤️ |
Descrizione del problema o della funzionalità:
ricavare i partner da inserire nel DDT se magazzino è di tipo virtuale
--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing