Merge lp:~vauxoo/openerp-venezuela-localization/jose-islr_wh_doc into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Status: | Rejected |
---|---|
Rejected by: | Gabriela Quilarque |
Proposed branch: | lp:~vauxoo/openerp-venezuela-localization/jose-islr_wh_doc |
Merge into: | lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk |
Diff against target: |
38 lines (+18/-2) 1 file modified
l10n_ve_withholding_islr/islr_wh_doc.py (+18/-2) |
To merge this branch: | bzr merge lp:~vauxoo/openerp-venezuela-localization/jose-islr_wh_doc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gabriela Quilarque | Pending | ||
Review via email: mp+90001@code.launchpad.net |
Description of the change
Modified onchange to give invoices of partner selected
To post a comment you must log in.
Unmerged revisions
- 558. By Jose Antonio Morales Ponce(vauxoo) - - http://www.vauxoo.com
-
[IMP] Method modified on_change_partner to return invoices with withholding line of a partner
+ inv_ids = [i.id for i in inv_obj.browse(cr, uid, inv_ids, id.withholdable ]
context={}) for d in i.invoice_line if d.concept_
para esta linea de codigo ya hay un metodo que verifica si una factura es
retenible por islr.
saludos.
con los siguientes parametros
2012/1/24 Jose Antonio Morales Ponce(vauxoo) <email address hidden>
> Jose Antonio Morales Ponce(vauxoo) has proposed merging que97) /code.launchpad .net/~vauxoo/ openerp- venezuela- localization/ jose-islr_ wh_doc/ +merge/ 90001 /code.launchpad .net/~vauxoo/ openerp- venezuela- localization/ jose-islr_ wh_doc/ +merge/ 90001 withholding_ islr/islr_ wh_doc. py' withholding_ islr/islr_ wh_doc. py 2012-01-19 23:04:33 +0000 withholding_ islr/islr_ wh_doc. py 2012-01-24 21:01:12 +0000 _process( res['prefix' ]) + _process( res['suffix' ]) partner_ id(self, cr, uid, ids, type, partner_id): get('account. invoice' ) get('islr. wh.doc. invoices' ) get('res. partner' ).browse( cr, uid, partner_id) account_ receivable. id account_ payable. id search( cr,uid, [('state' , '=', ,('partner_ id','=' ,partner_ id)],context= {}) browse( cr,uid, inv_ids, context= {}) if not i.islr_wh_doc_id] obj.search( cr, id.withholdable ] doc_id' :inv_ids,
> lp:~vauxoo/openerp-venezuela-localization/jose-islr_wh_doc into
> lp:openerp-venezuela-localization.
>
> Requested reviews:
> Gabriela Quilarque (Vauxoo) (gabrielaquilar
>
> For more details, see:
>
> https:/
>
> Modified onchange to give invoices of partner selected
> --
>
> https:/
> You are subscribed to branch lp:openerp-venezuela-localization.
>
> === modified file 'l10n_ve_
> --- l10n_ve_
> +++ l10n_ve_
> @@ -179,17 +179,33 @@
> return pool_seq.
> pool_seq.
> return False
>
> +
> def onchange_
> acc_id = False
> + inv_obj = self.pool.
> + invoice_obj = self.pool.
> if partner_id:
> p = self.pool.
> if type in ('out_invoice', 'out_refund'):
> acc_id = p.property_
> else:
> acc_id = p.property_
> + if partner_id and type in ('out_invoice', 'out_refund'):
> +
> + inv_ids = inv_obj.
> 'open')
> +
> + if inv_ids:
> + #~ Get only the invoices which are not in a document yet
> + inv_ids = [i.id for i in
> inv_obj.
> + inv_ids = [i for i in inv_ids if not invoice_
> uid, [('invoice_id', '=', i)])]
> + inv_ids = [i.id for i in inv_obj.browse(cr, uid, inv_ids,
> context={}) for d in i.invoice_line if d.concept_
> +
> +
> result = {'value': {
> - 'account_id': acc_id}
> - }
> + 'account_id': acc_id,
> + 'islr_wh_
> +
> + }}
>
> return result
>
>
>
>