[tryton-dev] Un-assigned Tryton issue tracker requests

2018-06-23 Thread Tryton issue tracker
Created ID   Activity   Title
===
 bug
3 weeks ago 7483 2 weeks ago Migration to 4.8 fails because of dupl ...
 bug
3 weeks ago 7489 3 weeks ago Execute stock move on closed period   
 bug
1 month ago 7427 1 month ago Can't add a statement line of payment  ...
 bug
1 month ago 7425 1 month ago FEC  should ignore move lines where de ...
 bug
1 month ago 7410 1 month ago FEC should not contain fiscal year non ...
 bug
3 months ago 7232 2 months ago segv in client
 bug
14 months ago 6470 3 months ago Old migration to rename packing to shi ...

To view or respond to any of the requests listed above, visit the URL

   https://bugs.tryton.org/

and click on "Show Unassigned". Do NOT respond to this message.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20180623225203.059C1118025A%40moretus.b2ck.com.


Re: [tryton-dev] After upgrade "Method" not callable

2018-06-23 Thread Cédric Krier
On 2018-06-23 09:31, 'Hendrik Brandes' via tryton-dev wrote:
> I tried to migrate an existing tryton installation and get the following 
> error:
> 
> AssertionError: .margin not callable

What is the traceback?

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20180623215343.GV30646%40kei.


[tryton-dev] After upgrade "Method" not callable

2018-06-23 Thread 'Hendrik Brandes' via tryton-dev
Hello,

I tried to migrate an existing tryton installation and get the following error:

AssertionError: .margin not callable

The definition of the field looks like this:

margin = fields.Function(fields.Numeric('Margin',
digits=(16, Eval('_parent_sale', {}).get('currency_digits', 2)),
states={
'invisible': ~Eval('type').in_(['line', 'subtotal']),
'readonly': ~Eval('_parent_sale'),
},
depends=['type', 'amount']),
'on_change_with_margin')

and for the implementation:

@fields.depends('type',  'amount', 'quantity', 'cost_price', 
'_parent_sale.currency',
'_parent_sale.lines')
def on_change_with_margin(self):
'''
Return the margin of each sale lines
'''
...

I thought, that it is enough, to declare all fields, which are used within the 
method.

Actual, I have read the documentation and saw, that the dependency of fields 
has been introduced, but I cannot understand, what is missing concretely in 
this case.

Thank you and best regards,
Hendrik Brandes

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/6bb94289-7a1a-496a-acf1-2e605ad01fc5%40googlegroups.com.