تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5488 أدوات العرض

Dear all,

I am working on Odoo v12, and I need to write some code to work with xsd and xml files.
I need to export data to an xml file and need to use the xsd as the schema builder.

I cannot find any module and or tutorial that helps me understand how does this works in Odoo.

Can anyone share an addon or post some url with some nice tutorial that I can use as a starting point?

Basically I need to export the SAF (Standard Audit File for Tax Purposes) to an xml file.

Thank you all in advance

Best regards

PM

الصورة الرمزية
إهمال
أفضل إجابة

There are many examples which generate XML file in XSD schema.
using python etree module you can create xml file. 

ref: https://github.com/OCA/bank-payment/blob/12.0/account_banking_sepa_credit_transfer/models/account_payment_order.py#L15

odoo enterprise module `delivery_dhl` or  `account_sepa_direct_debit` are generate XML to communicate with relevant client's provided xsd

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 22
15254
2
مارس 20
6976
1
أبريل 25
3418
1
مارس 25
1199
0
نوفمبر 24
1431