Merge lp:~0k.io/ocb-server/usability-and-fix-on-res-partner-1 into lp:ocb-server

Proposed by Nicolas JEUDY
Status: Work in progress
Proposed branch: lp:~0k.io/ocb-server/usability-and-fix-on-res-partner-1
Merge into: lp:ocb-server
Diff against target: 48 lines (+9/-7)
1 file modified
openerp/addons/base/res/res_partner_view.xml (+9/-7)
To merge this branch: bzr merge lp:~0k.io/ocb-server/usability-and-fix-on-res-partner-1
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) Needs Fixing
Review via email: mp+185339@code.launchpad.net

Description of the change

In OpenERP V7 there is some bugs/usability issue when using res.partner and contact.

- On supplier, if you create a contact directly from the parent form, the supplier checkbox is not invisible.
- If you save contact, supplier and customer checkbox should be the same as parent.
- Title field is not shown
- etc ..

Here is a fix and my first merge proposal to OCB server. hope it is ok and feel free to ask me if I can do better

To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

Please always link a bug report to merge proposals to the ocb branches.

Further, given that your changes make a lot of sense to me, it's worth a try to also propose your change to upstream. If they won't pick it up in due time, we'll merge it into the ocb branches.

review: Needs Fixing
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

What do other ocb-commiters think about this one?

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Agreed that we need a bug report to establish what this code fixes exactly (although I get an idea when I read the code) and to link the ocb proposal and the upstream proposal to (if it exists, which is mandatory).

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Yeah, I agree with both Holger and Stefan. I have faced the same problem, but it is necessary to fill a bug on openobject-addons project with the proposed fix and let OpenERP S. A. decide if they include it on official branch, and if not, then merge it here.

Regards.

Revision history for this message
Nicolas JEUDY (njeudy) wrote :

I will report a bug on addons before. and then link this merge to the new bug.

Revision history for this message
Nicolas JEUDY (njeudy) wrote :

Hello,

I create a bug On OpenERP server with a video and link this branch. Is it ok for you ?

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Hi, Nicolas, thank you very much for the bug report. There is one more thing you can do: propose the same patch in openobject-addons project so that OpenERP S. A. can evaluate if the patch is correct and then merge on the official branch more quickly.

Regards.

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Sorry, I was mean to say openobject-server.

Regards.

Revision history for this message
Nicolas JEUDY (njeudy) wrote :

Ok, I will do this. I think I have to do a special branch for
openobject-server ;)

Nicolas JEUDY

Expert Technique et Fonctionnel Système d'Information
TUXSERVICES

22 rue du seminaire - 25170 Pelousey
e-mail : <email address hidden>
mob. : +33 (0)6 28 95 36 64
http://www.tuxservices.com

2013/11/5 Pedro Manuel Baeza <email address hidden>

> Sorry, I was mean to say openobject-server.
>
> Regards.
> --
>
> https://code.launchpad.net/~0k.io/ocb-server/usability-and-fix-on-res-partner-1/+merge/185339
> Your team 0k.io is subscribed to branch lp:~
> 0k.io/ocb-server/usability-and-fix-on-res-partner-1.
>

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Given the discussions, I put this MP as 'work in progress'. Please set it back to 'Needs review' once ready.

Unmerged revisions

5092. By Nicolas JEUDY

FIX: Improve res.partner form for better @usability with:

- fix customer and supplier boolean field that should be the same as his parent by default
- Add title field on contact form
- Change some css stuff for better form usability.
- mark customer and supplier checkbox as invisible on contact form.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'openerp/addons/base/res/res_partner_view.xml'
--- openerp/addons/base/res/res_partner_view.xml 2013-06-07 16:20:45 +0000
+++ openerp/addons/base/res/res_partner_view.xml 2013-09-12 18:48:51 +0000
@@ -186,7 +186,7 @@
186186
187 <notebook colspan="4">187 <notebook colspan="4">
188 <page string="Contacts" attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}" autofocus="autofocus">188 <page string="Contacts" attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}" autofocus="autofocus">
189 <field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier}">189 <field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_customer': customer, 'default_supplier': supplier}">
190 <kanban>190 <kanban>
191 <field name="color"/>191 <field name="color"/>
192 <field name="name"/>192 <field name="name"/>
@@ -233,8 +233,8 @@
233 <tr>233 <tr>
234 <td class="oe_kanban_title1" align="left" valign="middle">234 <td class="oe_kanban_title1" align="left" valign="middle">
235 <h4><a type="open"><field name="name"/></a></h4>235 <h4><a type="open"><field name="name"/></a></h4>
236 <i><div t-if="record.function.raw_value">236 <div t-if="record.function.raw_value">
237 <field name="function"/></div></i>237 <i><field name="function"/></i></div>
238 <div><a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value">238 <div><a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value">
239 <field name="email"/>239 <field name="email"/>
240 </a></div>240 </a></div>
@@ -254,10 +254,10 @@
254 <form string="Contact" version="7.0">254 <form string="Contact" version="7.0">
255 <sheet>255 <sheet>
256 <field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>256 <field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
257 <div class="oe_title">257 <div name="title">
258 <label for="name" class="oe_edit_only"/>258 <label for="name" class="oe_edit_only"/>
259 <h1><field name="name" style="width: 70%%"/></h1>259 <h1><field name="title" placeholder="title" style="width: 20%%"/><field name="name" style="width: 70%%"/></h1>
260 <field name="category_id" widget="many2many_tags" placeholder="Tags..." style="width: 70%%"/>260 <field name="category_id" widget="many2many_tags" placeholder="Tags..." style="width: 100%%"/>
261 </div>261 </div>
262 <group>262 <group>
263 <field name="function" placeholder="e.g. Sales Director"/>263 <field name="function" placeholder="e.g. Sales Director"/>
@@ -285,7 +285,9 @@
285 <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}'/>285 <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}'/>
286 </div>286 </div>
287 </group>287 </group>
288 <field name="supplier" invisible="True"/>288 <field name="supplier" invisible="1"/>
289 <field name="customer" invisible="1"/>
290
289 </sheet>291 </sheet>
290 </form>292 </form>
291 </field>293 </field>

Subscribers

People subscribed via source and target branches

to status/vote changes: