Hello all,
I'm a beginner in python, so I', requesting your help. Here's my problem :
I createa new table remarques to be linked to sale.orders. One sale order can
has many remarqques and one remarque can be linked to several sale oders. So, I
create a many to many link.
I now have my sale.order table with the following linking field :
'so_remarques_ids': fields.one2many
I have new remarques table with boolean fields like 'print_on_order',
print_on_delivery' to know on whick paper the remarque has to be printed.
Finally, I' have the table between sale.orders and remarques to link the whole
: remarques.so with the following fields :
'so_id': fields.many2one('sale.order' ...
'name' : fields.many2one('remarques',
'print_on_order' : fields.boolean...
'print_on_delivery : fields.boolean ...
My problem is that, when creating a new sale order and adding some remarques to
it, I'd like that the default values of 'print_on_order' and
'print_on_delivery' are copied from my table 'remarques' to my new record of
table 'so.remarques'
So, I create a _defaults = {
'print_on_order' : ... but i dont' know how to link to my default value :(
If anyone as a beginnig of way, I'd appreciate :)
Per advance, thanks very much for your help
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=50889#50889
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users