1
1
# -*- encoding: utf-8 -*-
8
9
OpenERP Model : sale_order_line
10
11
_inherit = 'sale.order.line'
12
'att_bro':fields.boolean('Attach Brochure', required=False, help="If you check this option, the first attachment related to the product_id marked as brochure will be printed as extra info with sale order"),
13
'att_bro': fields.boolean('Attach Brochure', required=False, help="If you check this option, the first attachment related to the product_id marked as brochure will be printed as extra info with sale order"),
18
19
OpenERP Model : sale_order_line
21
23
def print_with_attachment(self, cr, user, ids, context={}):
22
for o in self.browse(cr,user,ids,context):
24
for o in self.browse(cr, user, ids, context):
25
27
print "Im Here i will go to print %s " % ol.name