Odoo Help

Welcome!

This community 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.

1

Invoice Validation (Document type: Account Entry, Operation: read)

By
Miel
on 2/6/15, 12:58 AM 591 views

Hello, I added shop_id in res.users , account.invoice, account.move and account.move.lines also, I add a parent field in sale.shop, I want to filter compay id and Shop ID using the below codes it works in Journal Items and Journal Entry but when I try to create an Invoice and Validate it restriction Warning pop-up and it says (Document type: Account Entry, Operation: read). Can anyone help me Please? Please Anyone? 

 

<record id="account.account_move_comp_rule" model="ir.rule">
        <field name="name">Account Entrysss</field>
        <field name="model_id" ref="model_account_move"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['&amp;','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),'|',('shop_id','child_of',[user.shop_id.id]),('shop_id','=',[user.shop_id.id])]</field>
    </record>

    <record id="account.account_move_line_comp_rule" model="ir.rule">
        <field name="name">Entry linesss</field>
        <field name="model_id" ref="model_account_move_line"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['&amp;','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),'|',('shop_id','child_of',[user.shop_id.id]),('shop_id','=',[user.shop_id.id])]</field>
    </record>

 

Anyone? Please

Miel
on 2/9/15, 3:53 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/6/15, 12:58 AM
Seen: 591 times
Last updated: 3/25/15, 4:16 AM