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

[9.0][Port] mig partner changeset #357

Merged
merged 4 commits into from
Dec 16, 2016

Conversation

leemannd
Copy link
Contributor

@leemannd leemannd commented Dec 7, 2016

WIP
As #213 is not going forward, there is a proposition to do it here.
[EDIT]

  • Code from 8.0 taken, with the newest commits
  • Update tests
  • Updates changes made in other's PR
  • Fix menu

@leemannd leemannd force-pushed the 9.0-mig-partner_changeset branch 3 times, most recently from 36b9ef7 to a59fbe2 Compare December 7, 2016 16:18
@leemannd leemannd changed the title [WIP][9.0][Port] mig partner changeset [9.0][Port] mig partner changeset Dec 7, 2016
@leemannd
Copy link
Contributor Author

leemannd commented Dec 7, 2016

@pedrobaeza @guewen @damdam-s It is not anymore in WIP state

@leemannd leemannd mentioned this pull request Dec 7, 2016
31 tasks
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this one. Is it possible with <odoo> to have a part of the records with noupdate and a part without?

Copy link
Member

@jgrandguillaume jgrandguillaume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Functional test done, works great ! Thanks for the port 👍

Regards,

Joël

@pedrobaeza
Copy link
Member

I know I'm always asking the same, but can you squash all that useless commits from the same person?

guewen and others added 3 commits December 12, 2016 17:39
Add translations

Add test coverage for caching of changeset rules

Add unique constraint (model_id, field_id) on rules

Add rules in demo data

Put the security groups links in noupdate

Put keep the groups in a noupdate=0 section so the records in ir.model.data
will still be modifiable by other modules.

Store the source of a changeset

Differentiate rules according to their origin

Rules are applied also for manual edition

Action is required

Do not keep recordsets in ormcache

Because they would be unreadable as soon as the cursor is closed.
Instead, we keep only the id and the record is browsed for every new
environment.

Remove useless 'model_id' on changeset rules

model_id has been removed

Remove reference to the model_name on rules

Because the model has been removed earlier (dead code)

Fix issue when applying empty many2one

Do not create changesets on moved contacts

As we just created the contact with a 'copy' we don't want to have a
changeset for the initialization values

Update translations

Use a selection widget on source model

Adapt for inclusion in OCA

Rename 'Pending Changesets' to 'Changes'

It's shorter

Add screenshots

Do not create a changeset when both sides are empty

But have a different type (e.g. False and '')
OCA Transbot updated translations from Transifex
@leemannd
Copy link
Contributor Author

@pedrobaeza I usually don't feel comfortable with modifying the git history of other people, but I'll do it in the beginning when porting a module.
Done.

@leemannd leemannd force-pushed the 9.0-mig-partner_changeset branch 2 times, most recently from db0421e to 5e68e90 Compare December 13, 2016 08:45
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little changes that you can squash with your main PR


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/8.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to 9.0

<https://github.com/OCA/
partner-contact/issues/new?body=module:%20
partner_changeset%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And remove this part according last template

@leemannd
Copy link
Contributor Author

@pedrobaeza Corrected

@pedrobaeza
Copy link
Member

Travis is failing

Add changes from previous port

fix menu

fix _compute from previous import & tests
@leemannd
Copy link
Contributor Author

@pedrobaeza error in tests linked to the fact that cache is not updated during the same transaction. It should be better now.

@pedrobaeza pedrobaeza merged commit 33f9047 into OCA:9.0 Dec 16, 2016
@leemannd leemannd deleted the 9.0-mig-partner_changeset branch January 18, 2017 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants