Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: XML Export with relations

by
AlphaPet Ventures Financing GmbH, Markus Schneider
- 14/06/2016 21:27:30
Hi

On 14.06.2016 19:53, David Arnold wrote:
> How did you solve the toposort of treeish models and detect possibly
> circular dependencies arising from relational fields and it's
> counterparts (in other words, when you find a relational field which in
> two models which references each other down in the export tree, which
> one is prioritized?)

We cut the xml entries for one object in multi xml nodes with the same id.

So we analyze the model on runtime an prio the required fields. Then we
order them. So it is not possible to have a circular dependencies on
required fields relation do the trick. At the end we add all other
relations in the file.

So please look of our solution if we have cover everything in concept
and did the implementation right.

Kind Regards

Markus


-- 
Dipl.-Comp.-Math. Markus Schneider
Leiter der Softwareentwicklung

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

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht: Tostedt, HRB 205226
Steuer-Nr.: 15/205/21518
USt-IdNr.: DE815580155

Reference