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

How to save and get invoice duplicate from attachments?  Any ideas?

In my country date of duplicate is very important!

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

Install "attachments list and document indexation" and an attachments menu will show above all forms.

Module on app store at link below.

https://www.odoo.com/apps/modules/9.0/document/

الصورة الرمزية
إهمال
الكاتب

I know that. One small problem, I need store attachment with current date (date of duplicates) in attachment name (or similar solution).

Oh ok. You could try changing the attachment prefix of the report to include the current date?

(In developer mode)

Settings > Technical > Reports > Reports > Duplicates -> "Save as Attachment Prefix" = time.ctime()

Note: This will be in UTC

الكاتب

Thanks. In fact, the time.ctime() works in generation attachments name. For me, the better is time.strftime(%Y-%m-%d). Problem remains - the timezone.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 22
4599
1
أكتوبر 16
5550
3
سبتمبر 15
5276
3
أغسطس 24
15565
2
يونيو 23
4356