[6.1]auto create 2 address record when i save the partner
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) | Status tracked in Trunk | |||||
| 6.1 |
Fix Committed
|
Low
|
OpenERP Publisher's Warranty Team | ||
| Trunk |
Invalid
|
Low
|
OpenERP Publisher's Warranty Team | ||
| OpenERP Community Backports (Web) |
Undecided
|
Unassigned | |||
| 6.1 |
Undecided
|
Unassigned |
Bug Description
res.partner module, Partner Views, when I create a new partner, only input partner name and save, then on the address tab, I find the address number change to 2, if change to tree view, can find two empty record in the tree view. This problem will appear little.
But when I modify the res.partner, code as follow, then this bug will appear very frequent. pls help confirm if this is a bug or my mistake.thanks
class res_partner(
_name = "res.partner"
_inherit = 'res.partner'
_columns = {
}
res_partner()
<record id="view_
<field name="name"
<field name="model"
<field name="type"
<field name="inherit_id" ref="base.
<field name="arch" type="xml">
<xpath expr="/
</record>
Related branches
- Fabien Meghazi (OpenERP) (community): Abstain on 2012-12-19
- Mohammed Shekha(Open ERP) (community): Resubmit on 2012-09-17
- Xavier (Open ERP) (community): Abstain on 2012-06-06
- Jiten (OpenERP) (community): Approve on 2012-05-08
-
Diff: 39 lines (+4/-4)1 file modifiedaddons/web/static/src/js/view_form.js (+4/-4)
affects: | openobject-server → openerp-web |
Changed in openerp-web: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: maintenance |
Changed in openerp-web: | |
status: | Confirmed → Fix Committed |
summary: |
- auto create 2 address record when i save the partner + [6.1]auto create 2 address record when i save the partner |
Yaiza Bailen (ybailen) wrote : | #3 |
Hi!
The application of the patch for 6.1 that Mohammed posted makes that a record with a o2m field (in form mode in the view) is only displayed if there is data in that o2m field. If not, the view is shown as empty.
http://
If you save the o2m field with data, then the record is displayed correctly.
Without this patch it creates two empty records (see video below):
http://
Version 6.1
web: revno 2389
server: revno 4227
addons: revno 6869
extra-addons: revno 5773
Thanks,
Yaiza
As this bug has already got some recent duplicates, hope to get this bug a life!
Thanks.
affects: | openobject-server → openerp-web |
Hello,
The fix has been landed in lp:~openerp-dev/openerp-web/6.1-opw-572829-msh with revision 2458.
As soon as fix has been approved it will be merged in stable version 6.1
Thanks.
Yaiza Bailen (ybailen) wrote : | #6 |
Hi Mohhamed,
Can you please look at the comment #3 I posted some time ago? That patch solves that issue but creates a different one.
Thanks,
Yaiza
Mariano Ruiz (marianoruiz) wrote : | #7 |
The error persist in the latest #2512. Applying the patch provided by msh-openerp solve my problem. Thanks Mohammed !
Maik Steinfeld (m-steinfeld-k) wrote : | #8 |
Problem still persist:
server (4352)
addons (7219)
web (2513)
Réal Carbonneau (real-carbonneau) wrote : | #9 |
Why is the merge of this being rejected with reason "Abstain"? I have just tested it and it correctly solves the problem with any noticeable regressions yet.
Maik Steinfeld (m-steinfeld-k) wrote : | #10 |
We have still the problem, also with the bugfix, which is approved.
Hello,
The issue has been commited in lp:~openerp-dev/openerp-web/6.1-opw-572829-msh.
It will be merged soon in stable version 6.1.
Thanks.