Allow editing record from browse_record

Bug #1292110 reported by Leonardo Donelli
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

When I have a browse_record and want to update it, at the moment I need to do something of the sort:

record_model.write(cr, uid, [browse_record.id], {'name', 'New name'})

What I (and I guess a lot of other people) would like to do is something like:

browse_record.name = 'New name'
[and maybe browse_record.save()]

Similar to what you can do in Django.

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote : Re: [Bug 1292110] [NEW] Allow editing record from browse_record

Hello Leonardo,

yes the API is quite awkward and requires a learning curves. But the good
news is the point your mention is to be fixed with the new API coming in v8
you can test from that branch:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-apiculture

On Thu, Mar 13, 2014 at 1:55 PM, Leonardo Donelli <email address hidden>wrote:

> Public bug reported:
>
> When I have a browse_record and want to update it, at the moment I need
> to do something of the sort:
>
> record_model.write(cr, uid, [browse_record.id], {'name', 'New name'})
>
> What I (and I guess a lot of other people) would like to do is something
> like:
>
> browse_record.name = 'New name'
> [and maybe browse_record.save()]
>
> Similar to what you can do in Django.
>
> ** Affects: openobject-server
> Importance: Undecided
> Status: New
>
>
> ** Tags: browse framework orm record update
>
> --
> You received this bug notification because you are a member of OpenERP
> Drivers, which is subscribed to OpenERP Server.
> Matching subscriptions: Bugs added or Closed
> https://bugs.launchpad.net/bugs/1292110
>
> Title:
> Allow editing record from browse_record
>
> Status in OpenERP Server:
> New
>
> Bug description:
> When I have a browse_record and want to update it, at the moment I
> need to do something of the sort:
>
> record_model.write(cr, uid, [browse_record.id], {'name', 'New name'})
>
> What I (and I guess a lot of other people) would like to do is
> something like:
>
> browse_record.name = 'New name'
> [and maybe browse_record.save()]
>
> Similar to what you can do in Django.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-server/+bug/1292110/+subscriptions
>

Revision history for this message
Davide Corio (enlightx-deactivatedaccount) wrote :

@Raphaël, v8? quite optimistic! :)

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote : Re: [Bug 1292110] Re: Allow editing record from browse_record

Hello Davide,

I'm not getting your point. I might not be optimistic about everything with
OpenERP, but the new API branch specifically is nearly green on runbot,
been worked on every day and getting trunk merged into it on a regular
basis and OpenERP SA claimed they will put it in v8. So why not believe we
might soon stop looking at Tryton API with so much envy?

On Thu, Mar 13, 2014 at 2:27 PM, Davide Corio @ LS <email address hidden>wrote:

> @Raphaël, v8? quite optimistic! :)
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Server.
> https://bugs.launchpad.net/bugs/1292110
>
> Title:
> Allow editing record from browse_record
>
> Status in OpenERP Server:
> New
>
> Bug description:
> When I have a browse_record and want to update it, at the moment I
> need to do something of the sort:
>
> record_model.write(cr, uid, [browse_record.id], {'name', 'New name'})
>
> What I (and I guess a lot of other people) would like to do is
> something like:
>
> browse_record.name = 'New name'
> [and maybe browse_record.save()]
>
> Similar to what you can do in Django.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-server/+bug/1292110/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.