Community mailing list archives

community@mail.odoo.com

Re: Create XML-record from an object

by
Ferdinand Gassauer
- 04/17/2015 14:47:23
On 2015-04-17 20:22, Anders Wallenquist wrote:
> What is the best practice to create a XML-record from an object in Python?
may be this is helpful
https://www.odoo.com/apps/modules/8.0/xml_template/
for v8 you must change installable=True as v8 is not tested/supported yet.

>
>
> 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
>