Hello,

The problem needs to fixed from addons itself. the reason is in web its working 
because web client saves the parent record prior to saving the O2M so when you 
add a record in O2M and click save&close it will  directly save the record in 
the DB. Where as GTK does not follow this trend instead it saves the O2M in the 
client and only saves the O2M to DB when the Parent is saved. So here in Form 
view the "name" field has attrs applied which makes it readonly True and 
required False when the key is in ['line','break], but when you press 
Save&close the O2M record is saved internally and the view is switch back to 
'list" now as the list view does not have the attrs applied on "name" field so 
when you save the parent record the "name" field is still required and left 
empty. To fix the issue the "name" field needs to have the same attrs on list 
view too.
i.e attrs="{'readonly':[('layout_type','in',('line','break'))], 
'required':[('layout_type', 'not in', ['line','break'])] }"/> on list view in 
name field.

@ community Team: can please reassign the bug to addons3 team to get it
fixed.


Thanks,

-- 
You received this bug notification because you are a member of OpenERP
sa GTK client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/785582

Title:
  [Trunk] Record Can not Save

Status in OpenERP GTK Client:
  In Progress

Bug description:
  Steps:
  Issue 1) Install the Sale_layout module Open the SO and Select the layout 
type ='Page Break" or "Separator Line" in SO line press the "Save and Close" or 
"Save and New" button but the record can not save.

  Issue 2) Create the SO with product confirm the SO the Sale order and
  Sale order line are read only open the resources button of SO line
  means Edit the So line it is editable it should also read only.

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/785582/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to