Modulo para la cuenta del vendedor

Registered by Angelica Barrios OpenERP

Modulo que hereda del modelo account.invoice y sobreescribe el método onchange_partner para escribir el tipo de vendedor (salesman) del partner

Blueprint information

Status:
Complete
Approver:
hbto [Vauxoo] http://www.vauxoo.com
Priority:
Medium
Drafter:
hbto [Vauxoo] http://www.vauxoo.com
Direction:
Needs approval
Assignee:
Angelica Barrios OpenERP
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
hbto [Vauxoo] http://www.vauxoo.com
Completed by
hbto [Vauxoo] http://www.vauxoo.com

Sprints

Whiteboard

se modifico el modulo account_invoice_partner_salesman,el onchange sobrescribe, el onchange original de account_invoice, le agrega un nuevo parámetro "company_id" y hace nuevas funcionalidades (mas las originales)
if type in ('out_invoice', 'out_refund'):
       company = self.pool.get('res.company').browse(cr, uid,company_id)
       user_id=company.partner_id.user_id.id
if type in ('in_invoice', 'in_refund'):
        part = self.pool.get('res.partner').browse(cr, uid, partner_id)
        user_id=part.user_id.id

retornando user_id que es el salesman para el modelo de invoice

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.