camptocamp / odoo-dj

Odoo modules to help exporting / importing data in a consistent way via anthem songs
GNU Affero General Public License v3.0
3 stars 8 forks source link

[WIP] Handle file fields + core compilation for companies #72

Closed simahawk closed 7 years ago

simahawk commented 7 years ago

addresses #68 and #48

Based on #37 (ready to be merged)

TODO: guess mimetype for extension.

simahawk commented 7 years ago

sounds like translations are not handled for files. Basically we just write the full xml value (qweb view case) in the proper lang. The issue is that translations are just strings and they are detected via JS if I'm not wrong. So, either we find a way to load translations from the translated version or we have to handle a special case and export ir.translation records related to the records we are exporting. Need to investigate.

simahawk commented 7 years ago

current status when exporting companies on MTS (w/ 2 companies and 2 logo fields):

image

simahawk commented 7 years ago

added a sanity check message to show collision w/ models and indicate what are we pulling from core compilations. Example:

image

simahawk commented 7 years ago

sanity check: show when a model has no name field and no xmlid fields declared

simahawk commented 7 years ago

Getting bad xmlids is super easy. Now there's a check for this too:

image

PS: I hate this rule of strict versions.... I WANT alpha and beta... :(

simahawk commented 7 years ago

I'm fast tracking this as I need these improvements ASAP