Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] partner_firstname and "create and edit" in M2O widget to res.partner #78

Closed
alexis-via opened this issue Jan 8, 2015 · 14 comments

Comments

@alexis-via
Copy link
Contributor

Here are the steps to reproduce the bug on odoo v8 with an up-to-date branch of OCA/partner-contact/8.0:

  1. Create a new sale order
    In the "Customer" field (M2O to res.partner), type "TOTOTEST1" (it should not be an existing partner) and then, in the down-drop list that appear, click on "Create and Edit..."
  2. You get a pop-up that displays the form view of res.partner with:
    Name = TOTOTEST1
    Firstname = False
    Lastname = False
  3. in the partner pop-up, enter:
    Lastname = de Lattre
    Fistname = Alexis
    Street = 42 rue de la paix
    and click on "Save" in the partner pop-up and save in the quotation form.
  4. Go to the "Customers" menu. You will find a partner with:
    Name = TOTOTEST1
    Lastname = TOTOTEST1
    Firstname = False
    Street = 42 rue de la paix

Conclusion : when the module partner_firstname is installed, we have a bug with "Create and Edit..." in the M2O widget that point to res.partner.

@alexis-via
Copy link
Contributor Author

Bug analysis:
When I log the calls to create and write:
On step 2 of the scenario, odoo doesn't call create nor write
On step 3 of the scenario, odoo will call BOTH create and write:

  1. first it calls create() with vals = {'firstname': 'Alexis', 'lastname': 'de Lattre', 'street': '42 rue de la paix'}
  2. then it calls write() with vals = {'lastname': 'TOTOTEST1', 'firstname': False}

@pankk
Copy link
Member

pankk commented Aug 12, 2015

Cannot reproduce as of 359f6ce. This seems fixed with 2494815

@pedrobaeza
Copy link
Member

Yeah, it seems so. I close this issue. If still present, feel free to reopen.

@alexis-via
Copy link
Contributor Author

I just re-tested the scenario with an up-to-date odoo 8.0 and an up-to-date partner_firstname from the OCA branch for 8.0, and the bug is still present. The scenario to reproduce the bug hasn't changed. Please re-open.

@pankk
Copy link
Member

pankk commented Aug 13, 2015

My bad, the bug is still present.

@alexis-via
Copy link
Contributor Author

@pedrobaeza It seems we need your "super-powers" to re-open this bug. I can't do that myself.

@pedrobaeza pedrobaeza reopened this Aug 13, 2015
@pedrobaeza
Copy link
Member

Done. I'll check it later to see if I can apport something.

@rafaelbn
Copy link
Member

I have reproduced it. The bug exists.
Please @yajo @antespi take a look in this issue.

@alexis-via
Copy link
Contributor Author

This bug is still present with up-to-date code.

@pedrobaeza If you have some idea on how to dig into this bug, please let me know. I must say that I don't know where to start to try to fix this bug. So any idea would be welcomed.

@pedrobaeza
Copy link
Member

Well, no special idea. I have overseen the code and cannot guess what can be the source of the problem. I can't work on this for now.

@yajo
Copy link
Member

yajo commented Oct 30, 2015

Please check #195.

@yajo
Copy link
Member

yajo commented Nov 2, 2015

  1. You get a pop-up that displays the form view of res.partner with:
    Name = TOTOTEST1
    Firstname = False
    Lastname = False

Just making clear that this is fixed now in #195, but indeed steps 3 and 4 still fail.

@rafaelbn
Copy link
Member

This issue is solved here: #198, you can close this issue 👍

@alexis-via
Copy link
Contributor Author

I confirm that the bug is now fixed ! Bravo !

yvaucher pushed a commit to yvaucher/partner-contact that referenced this issue Jan 18, 2016
yvaucher pushed a commit to yvaucher/partner-contact that referenced this issue Jan 18, 2016
This fixes OCA#78 and adds new tests for it.
yvaucher pushed a commit to yvaucher/partner-contact that referenced this issue Jan 18, 2016
yvaucher pushed a commit to yvaucher/partner-contact that referenced this issue Jan 18, 2016
This fixes OCA#78 and adds new tests for it.
etobella pushed a commit to etobella/partner-contact that referenced this issue Oct 9, 2017
etobella pushed a commit to etobella/partner-contact that referenced this issue Oct 9, 2017
This fixes OCA#78 and adds new tests for it.
etobella pushed a commit to etobella/partner-contact that referenced this issue Oct 10, 2017
etobella pushed a commit to etobella/partner-contact that referenced this issue Oct 10, 2017
This fixes OCA#78 and adds new tests for it.
JordiBForgeFlow pushed a commit to ForgeFlow/partner-contact that referenced this issue Nov 17, 2017
JordiBForgeFlow pushed a commit to ForgeFlow/partner-contact that referenced this issue Nov 17, 2017
This fixes OCA#78 and adds new tests for it.
gdgellatly pushed a commit to odoonz/partner-contact that referenced this issue Oct 29, 2018
gdgellatly pushed a commit to odoonz/partner-contact that referenced this issue Nov 6, 2018
gdgellatly pushed a commit to odoonz/partner-contact that referenced this issue Nov 6, 2018
This fixes OCA#78 and adds new tests for it.
yajo pushed a commit that referenced this issue Nov 22, 2018
yajo pushed a commit that referenced this issue Nov 22, 2018
This fixes #78 and adds new tests for it.
victormmtorres pushed a commit to Tecnativa/partner-contact that referenced this issue Mar 25, 2019
victormmtorres pushed a commit to Tecnativa/partner-contact that referenced this issue Mar 25, 2019
This fixes OCA#78 and adds new tests for it.
rven pushed a commit to rven/partner-contact that referenced this issue Sep 30, 2019
rven pushed a commit to rven/partner-contact that referenced this issue Sep 30, 2019
This fixes OCA#78 and adds new tests for it.
rven pushed a commit to rven/partner-contact that referenced this issue Oct 26, 2019
rven pushed a commit to rven/partner-contact that referenced this issue Oct 26, 2019
This fixes OCA#78 and adds new tests for it.
ermannognan pushed a commit to ermannognan/partner-contact that referenced this issue Nov 25, 2019
ermannognan pushed a commit to ermannognan/partner-contact that referenced this issue Nov 25, 2019
This fixes OCA#78 and adds new tests for it.
luistorresm pushed a commit to vauxoo-dev/partner-contact that referenced this issue Oct 12, 2020
luistorresm pushed a commit to vauxoo-dev/partner-contact that referenced this issue Oct 12, 2020
This fixes OCA#78 and adds new tests for it.
bjornbillen pushed a commit to bjornbillen/partner-contact that referenced this issue Nov 12, 2021
bjornbillen pushed a commit to bjornbillen/partner-contact that referenced this issue Nov 12, 2021
This fixes OCA#78 and adds new tests for it.
bjornbillen pushed a commit to bjornbillen/partner-contact that referenced this issue Feb 8, 2022
bjornbillen pushed a commit to bjornbillen/partner-contact that referenced this issue Feb 8, 2022
This fixes OCA#78 and adds new tests for it.
FrancoMaxime pushed a commit to acsone/partner-contact that referenced this issue Aug 24, 2022
FrancoMaxime pushed a commit to acsone/partner-contact that referenced this issue Aug 24, 2022
This fixes OCA#78 and adds new tests for it.
baimont pushed a commit to acsone/partner-contact that referenced this issue Oct 6, 2022
baimont pushed a commit to acsone/partner-contact that referenced this issue Oct 6, 2022
This fixes OCA#78 and adds new tests for it.
victor-champonnois pushed a commit to coopiteasy/partner-contact that referenced this issue Feb 3, 2023
victor-champonnois pushed a commit to coopiteasy/partner-contact that referenced this issue Feb 3, 2023
This fixes OCA#78 and adds new tests for it.
moitabenfdz pushed a commit to DynAppsNV/partner-contact that referenced this issue Nov 16, 2023
moitabenfdz pushed a commit to DynAppsNV/partner-contact that referenced this issue Nov 16, 2023
This fixes OCA#78 and adds new tests for it.
edlopen pushed a commit to moduon/partner-contact that referenced this issue Mar 1, 2024
edlopen pushed a commit to moduon/partner-contact that referenced this issue Mar 1, 2024
This fixes OCA#78 and adds new tests for it.
edlopen pushed a commit to moduon/partner-contact that referenced this issue Mar 1, 2024
edlopen pushed a commit to moduon/partner-contact that referenced this issue Mar 1, 2024
This fixes OCA#78 and adds new tests for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants