We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95ed452 commit ad9f12dCopy full SHA for ad9f12d
purchase_edi_file/models/purchase_order.py
@@ -24,15 +24,13 @@ def generate_and_send_edi_files(self):
24
continue
25
partner = purchase.partner_id
26
profiles_lines = purchase.order_line._get_lines_by_profiles(partner)
27
- attachments = self.env["ir.attachment"]
28
attachment_profiles = {}
29
for profile, records in profiles_lines.items():
30
if not records:
31
32
- attachments |= profile.get_attachment(
+ attachment_profiles[profile] = profile.get_attachment(
33
records, res_id=purchase.id, res_model=self._name
34
)
35
- attachment_profiles[profile] = attachments
36
if not attachment_profiles:
37
38
attachment_by_transfer = {}
0 commit comments