Hello,
I'm working with the invoices' creation,
When I call the wizard to create an invoice, the wizard call the function in the module stock.
Now I would like that the wizard call the function in my module.
Code:
class stock_picking(osv.osv):
_description = "Packing List"
_table = 'stock_picking'
_inherit = "stock.picking"
def action_invoice_create(self, cursor, user, ids, journal_id=False,
group=False, type='out_invoice', context=None):
'''Return ids of created invoices for the pickings'''
invoice_obj = self.pool.get('account.invoice')
invoice_line_obj = self.pool.get('account.invoice.line')
invoices_group = {}
res = {}
.
.
.
stock_picking()
With this code, the wizard don't call my function but the original one.
Thanks