Comment 10 for bug 856501

Revision history for this message
Open Tech (open.tech) wrote : Re: [Bug 856501] Re: AttributeError: 'bool' object has no attribute 'id'

Hi,

I changed the point_of_sale.py as per the revisions 5236, 5237, 5238. My
observations are as below:
situation 1
1. Created fresh database with demo data - done
2. Install Point of sale - Received error "AttributeError: 'cursor' object
has no attribute 'pool'"
3. Tried reinstall Point of sale - Received error "ValueError: No references
to point_of_sale.group_pos_user"
4. Tried for third time reinstall Point of sale - Received error
"ValueError: No references to point_of_sale.group_pos_user"

situation2
1. Created fresh database with no demo data - done
2. Install Point of sale - installed properly
3. Tried to add daily operations sales order & make the payment. It is
asking for Journal

So it seems like working for no demo data database but not with demo data.
Since it is working at your end, I am wondering where & what I am doing
wrong.
My tracebacks for situation 1 are as enclosed.

Thanks
Amit

On Fri, Sep 30, 2011 at 1:15 AM, Mustufa Rangwala (Open ERP) <
<email address hidden>> wrote:

> ** Changed in: openobject-addons
> Milestone: None => 6.1
>
> ** Summary changed:
>
> - AttributeError: 'bool' object has no attribute 'id'
> + pos: AttributeError: 'bool' object has no attribute 'id'
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/856501
>
> Title:
> pos: AttributeError: 'bool' object has no attribute 'id'
>
> Status in OpenERP Addons (modules):
> Fix Committed
>
> Bug description:
> Trying to install latest trunk version of the POS. Earlier i had
> installed POS 6.0 version which was working fine. But since the trunk
> version seems to have latest and more features so thought to upgrade
> to it. But when i install this one, get following error:
>
> raise ValueError('No references to %s.%s' % (module, xml_id))
> ValueError: No references to point_of_sale.group_pos_user
>
> Looked the code:
> view.xml has some 2 entries for group_pos_manager, group_pos_user.
> But .py file doesn't have any reference to it.
>
> Is it the reason of the error? How can we resolve it.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-addons/+bug/856501/+subscriptions
>