Skip to content

[PORT] [9.0] configuration helper - #411

Merged
hbrunn merged 2 commits into
OCA:9.0from
yvaucher:9.0-configuration_helper
May 26, 2016
Merged

[PORT] [9.0] configuration helper#411
hbrunn merged 2 commits into
OCA:9.0from
yvaucher:9.0-configuration_helper

Conversation

@yvaucher

@yvaucher yvaucher commented Apr 8, 2016

Copy link
Copy Markdown
Member

Port to API 8.0 and make it compatible with a config definition in API
8.0. Remove some hacks with onchange and write to get and set the
related values.

@yvaucher

yvaucher commented Apr 8, 2016

Copy link
Copy Markdown
Member Author

@bealdav Could you review this ?

Comment thread configuration_helper/models/__init__.py Outdated
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Missed one

@yvaucher
yvaucher force-pushed the 9.0-configuration_helper branch 2 times, most recently from 5bc9da9 to 2d3e75a Compare April 8, 2016 14:00
@pedrobaeza pedrobaeza mentioned this pull request Apr 8, 2016
59 tasks
@yvaucher
yvaucher force-pushed the 9.0-configuration_helper branch from 2d3e75a to 05460e3 Compare April 8, 2016 14:12
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.03%) to 67.301% when pulling 05460e3 on yvaucher:9.0-configuration_helper into 30f9109 on OCA:9.0.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+3.03%) to 67.301% when pulling 05460e3 on yvaucher:9.0-configuration_helper into 30f9109 on OCA:9.0.

_name = 'whatiwant.config.settings'
# fields must be defined in ResCompany class
# related fields are automatically generated from previous definitions
_companyObject = ResCompany

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

missing:

# all prefixed field with _prefix in res.company, will be available in 'whatiwant.config.settings' model
_prefix = 'prefixyouchoose_'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@bealdav

bealdav commented Apr 11, 2016

Copy link
Copy Markdown
Member

Nice job increasing reliability of this module: test + code shorter
Thanks

Comment thread configuration_helper/README.rst Outdated

* David BEAL <david.beal@akretion.com>
* Sébastien BEAU <sebastien.beau@akretion.com>
* Yannick Vaucher, Camptocamp, (code refactoring from his module 'delivery_carrier_label_postlogistics')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please @yvaucher move your line in first position, it's more than a port: test, etc.

yvaucher added 2 commits May 3, 2016 17:43
Port to API 8.0 and make it compatible with a config definition in API
8.0. Remove some hacks with onchange and write to get and set the
related values.
@yvaucher
yvaucher force-pushed the 9.0-configuration_helper branch from 05460e3 to b7fdbb1 Compare May 3, 2016 15:43
@yvaucher

yvaucher commented May 3, 2016

Copy link
Copy Markdown
Member Author

@bealdav Thanks for the review. I made the changes.

@coveralls

coveralls commented May 3, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+2.4%) to 71.012% when pulling b7fdbb1 on yvaucher:9.0-configuration_helper into dc19153 on OCA:9.0.

@bealdav

bealdav commented May 3, 2016

Copy link
Copy Markdown
Member

👍

_prefix = 'setting_'
# this is the class name to import in your module
# (it should be ResCompany or res_company, depends of your code)
_companyObject = None

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why a mixedCase suddenly?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, it was already there, so at least only to keep compatibility.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can break compatibility here to become cleaner, no problem between versions.
There was no version for V8, only v7.

@guewen

guewen commented May 9, 2016

Copy link
Copy Markdown
Member

👍

@hbrunn
hbrunn merged commit c4f7a86 into OCA:9.0 May 26, 2016
@yvaucher
yvaucher deleted the 9.0-configuration_helper branch May 26, 2016 14:26
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (10.0)
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.

5 participants