[tryton-dev] Default focus in a form view

2013-04-05 Thread Raimon Esteve
Hello, In XML, default focus is available? (in OpenERP is default_focus=1: cursor in specific field when open a form view) Thanks -- Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà a seguir

Re: [tryton-dev] Default focus in a form view

2013-04-05 Thread Cédric Krier
On 05/04/13 12:45 +0200, Raimon Esteve wrote: Hello, In XML, default focus is available? (in OpenERP is default_focus=1: cursor in specific field when open a form view) See cursor on http://doc.tryton.org/2.6/trytond/doc/topics/views/index.html#form -- Si us plau, NO adjunti arxius a

[tryton-dev] Questions about sale and purchase checks for account in get_invoice_line()

2013-04-05 Thread Udo Spallek
Hi, on sale[1] and purchase[2] there are checks in get_invoice_line() for account_revenue and account_expense. It is hard to extend the get_invoice_line() method when you want to introduce an alternative conception, like account_product_rule[3] does. Is a patch welcome which factors out these

[tryton-dev] Sale, Purchase and Invoice: do we mix-up domains and responsibilities?

2013-04-05 Thread Udo Spallek
Hello, on invoice we have a constraint[1] which restricts the creation of draft invoices with lines of type product without a given revenue/expense account. When the sales men and the accountant are the same person, and there are only some sales/purchases to handle, I understand some usefulness

Re: [tryton-dev] Sale, Purchase and Invoice: do we mix-up domains and responsibilities?

2013-04-05 Thread Cédric Krier
On 05/04/13 14:18 +0200, Udo Spallek wrote: The revenue/expense accounts should become required on invoices which are checked to 'open'. These accounts are IMHO not required on draft invoices. * Is there a technical or functional reason for the constraint? Data Integrity. User experience,

[tryton-dev] tryton: Hide search box on focus-out (issue 762002)

2013-04-05 Thread cedric . krier
Reviewers: , Description: tryton: Hide search box on focus-out Please review this at http://codereview.tryton.org/762002/ Affected files: M tryton/gui/window/view_form/view/screen_container.py Index: tryton/gui/window/view_form/view/screen_container.py

Re: [tryton-dev] Sale, Purchase and Invoice: do we mix-up domains and responsibilities?

2013-04-05 Thread Udo Spallek
Hi, thanks for your answer. Fri, 5 Apr 2013 14:44:12 +0200 Cédric Krier cedric.kr...@b2ck.com: On 05/04/13 14:18 +0200, Udo Spallek wrote: The revenue/expense accounts should become required on invoices which are checked to 'open'. These accounts are IMHO not required on draft invoices. *

Re: [tryton-dev] Sale, Purchase and Invoice: do we mix-up domains and responsibilities?

2013-04-05 Thread Cédric Krier
On 05/04/13 15:02 +0200, Udo Spallek wrote: Fri, 5 Apr 2013 14:44:12 +0200 Cédric Krier cedric.kr...@b2ck.com: On 05/04/13 14:18 +0200, Udo Spallek wrote: The revenue/expense accounts should become required on invoices which are checked to 'open'. These accounts are IMHO not required on

Re: [tryton-dev] Questions about sale and purchase checks for account in get_invoice_line()

2013-04-05 Thread Udo Spallek
Fri, 5 Apr 2013 14:40:42 +0200 Cédric Krier cedric.kr...@b2ck.com: On 05/04/13 13:58 +0200, Udo Spallek wrote: It is hard to extend the get_invoice_line() method when you want to introduce an alternative conception, like account_product_rule[3] does. Don't really understand the module but I

Re: [tryton-dev] Questions about sale and purchase checks for account in get_invoice_line()

2013-04-05 Thread Cédric Krier
On 05/04/13 15:53 +0200, Udo Spallek wrote: Fri, 5 Apr 2013 14:40:42 +0200 Cédric Krier cedric.kr...@b2ck.com: On 05/04/13 13:58 +0200, Udo Spallek wrote: It is hard to extend the get_invoice_line() method when you want to introduce an alternative conception, like

Re: [tryton-dev] Financial analysis

2013-04-05 Thread Marco Huymajer
* Cédric Krier cedric.kr...@b2ck.com [31.03 14:16]: On 29/03/13 17:42 +0100, Marco Huymajer wrote: As it is easier to discuss the subject with some actual implementation in mind, I have created a blueprint with the models and some examples:

[tryton-dev] PATCH: sale_supply: Ensure to process sale only once (issue 763002)

2013-04-05 Thread cedric . krier
Reviewers: , Please review this at http://codereview.tryton.org/763002/ Affected files: M purchase.py Index: purchase.py === --- a/purchase.py +++ b/purchase.py @@ -30,8 +30,8 @@ SaleLine = pool.get('sale.line')