Hola a todos, He hecho este merge propose donde sobre escribo el método on_change_lines de sale.sale para mejorar el rendimiento del módulo. La mejora es considerable puesto que tarda del orden de 1/100 respecto al método del módulo oficial (sale). El problema es que el diseño no es correcto porqué en ningún momento se vuelve a llamar al método padre y eso puede llegar a romper algún otro módulo que herede el mismo método. ¿Alguien tiene una idea mejor de como solventar el problema?
Saludos, [image: aneolf] *Jesús Martín (Zikzakmedia)* created pull request > #2: Override the on_change_lines method of sale.sale in order to improve > the performance > <https://bitbucket.org/zikzakmedia/trytond-sale_pos/pull-request/2/override-the-on_change_lines-method-of> > > I know this is a poor design, but the improvement of performance is big > enough to think about it. Do have anyone a better idea? > Author Commit Message Date [image: aneolf]Jesús Martín (Zikzak… 48a2f8a > <https://bitbucket.org/aneolf/trytond-sale_pos/commits/48a2f8af2f8118331e9138f9f7452bb3b3858413> > Override the on_change_lines method of sale.sale in order to improve the > performance > 8 Aug 2014 > View this pull request > <https://bitbucket.org/zikzakmedia/trytond-sale_pos/pull-request/2/override-the-on_change_lines-method-of> > or add a comment by replying to this email. > Unsubscribe from pull request emails > <https://bitbucket.org/zikzakmedia/trytond-sale_pos/pull-request/2/unsubscribe/zikzakmedia/ea40bf6e73f7c9b3a0da4d5c00b7e8b84aa1963f/> > for this repository. [image: Bitbucket] <https://bitbucket.org> > -- Jesús Martín Zikzakmedia SL C/ de Sant Jaume, 9, baixos, 2ª 08720 Vilafranca del Penedès ☏ 93 890 21 08