Odoo Help

0

Vouchers not appear

By
José
on 12/22/14, 7:32 AM 596 views

Hello, I have Odoo 8 and I developed a module. I create a relation between account.voucher model and product.pricelist.version.

class account_voucher(models.Model):
    _inherit = 'account.voucher'
    pricelist_version_id = fields.Many2one('product.pricelist.version', required=False)

class product_pricelist_version(models.Model):
    _inherit = 'product.pricelist.version'
    pagos_realizados = fields.One2many('account.voucher', 'pricelist_version_id')

When I create a product.pricelist.version, I create the account.voucher related with that. But when I go to Accounting->Customer pays I do not see them. Why?

Thanks!

0
José
On 12/22/14, 7:55 AM

I do not change the view "Accounting->Customer pays". In the form where I am creating the product.pricelist.version I display the default form for account.voucher.receipt.

0
Prakash
On 12/22/14, 7:43 AM

Did you inherited xml file "account.voucher" model and then added the fields in xml using "after" or "before" tag?..

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 12/22/14, 7:32 AM
Seen: 596 times
Last updated: 3/16/15, 8:10 AM