Community mailing list archives

community@mail.odoo.com

Re: Create XML-record from an object

by
initOS GmbH, Torsten Francke
- 04/18/2015 08:39:08
We start working on a solution for that. That you can export a batch of
models include submodels and relation to a single xml file.

I came out, that it is not easy. As you need to interpret the data as
one graph and analyses the relation. Then you need to remove all cycles
in a way that you can not remove required relation. I m sure we can
solve this, but need some time ;)

On 17.04.2015 18:22, Anders Wallenquist wrote:
> What is the best practice to create a XML-record from an object in Python?
> 
> 
> I have a sale.order.line, or an other object from an Odoo-model, and 
> want to create a record like this:
> 
>          
>              
>              Laptop E5023
>              
>              3
>              3
>              
>              2950.00
>          
> 
> Are there any methods from models.Model I can use? eg line._export_xml()
> 
> Second question: what is best practice to programaticly load such xml-file?
> 
> 
> Regards
> Anders Wallenquist
> Vertel AB
> 
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
> 

-- 
Dipl.-Comp.-Math. Markus Schneider
Softwareentwickler

initOS GmbH & Co. KG
An der Eisenbahn 1
21224 Rosengarten

Mobil:   +49 (0)172 2303699
Phone:   +49 (0)4105 5615613
Fax:     +49 (0)4105 5615610

Email:   markus.schneider@initos.com
Web:     http://www.initos.com

Geschäftsführung:
Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
Haftende Gesellschafterin: initOS Verwaltungs GmbH

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht Tostedt, HRA 201840
USt-IdNr: DE 275698169
Steuer-Nr: 15/205/21402