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

sync readonly between pricelist and currency #88

Merged
merged 2 commits into from
Feb 4, 2015

Conversation

lepistone
Copy link
Member

Addresses #80, see also odoo/odoo#4598.

If we have some states in which the pricelist can be changed but the
currency is readonly, the currency seems to be changed, but while saving
it goes back.

The core purchase module probably needs a similar fix.

Addresses OCA#80, see also odoo/odoo#4598.

If we have some states in which the pricelist can be changed but the
currency is readonly, the currency seems to be changed, but while saving
it goes back.

The core purchase module probably needs a similar fix.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 70.23% when pulling 10a7c75 on lepistone:fix-pricelist-to-currency into 6350b06 on OCA:8.0.

@jgrandguillaume
Copy link
Member

LGTM, I've tested it. Thanks 👍

@yvaucher
Copy link
Member

yvaucher commented Feb 2, 2015

@lepistone What happens if readonly is not on field in py file but on view in xml file?
It could be great if we could keep it readonly as only the pricelist should be editable.

If it's not possible, I think it would be preferable to link the bug report in the comment (in code).

Otherwise as it fixes the issue #80 👍

@lepistone
Copy link
Member Author

I agree with you @yvaucher, it's probably a bad idea to be able to change the currency to something different from the pricelist currency. Changing that is non-trivial, and changes the design somewhat, so I'm not doing this here. Instead, I added a longer commentary with reference to odoo/odoo#4598 as you suggest.

@yvaucher
Copy link
Member

yvaucher commented Feb 4, 2015

@lepistone Thanks

yvaucher added a commit that referenced this pull request Feb 4, 2015
sync readonly between pricelist and currency
@yvaucher yvaucher merged commit d105f4f into OCA:8.0 Feb 4, 2015
@lepistone lepistone deleted the fix-pricelist-to-currency branch February 27, 2015 13:55
@lepistone
Copy link
Member Author

as far as making the currency always readonly, I think it makes sense only if the user belongs to both groups group_multi_currency and group_purchase_pricelist: if the user belongs only to the first one, editing the currency directly makes sense.

For that reason I am making this change to currency always readonly in specific code only.

lepistone added a commit to lepistone/vertical-ngo that referenced this pull request May 4, 2015
I am making this only in the NGO verticalisation because it makes sense
only if the user belongs to the group_purchase_pricelist. See

OCA/purchase-workflow#88 (comment)
dnplkndll pushed a commit to Kencove/purchase-workflow that referenced this pull request Feb 24, 2021
dnplkndll pushed a commit to Kencove/purchase-workflow that referenced this pull request Feb 24, 2021
[FIX] Various issues

Closes OCA#107, OCA#106, OCA#104, OCA#77, OCA#102, OCA#94, OCA#93, OCA#92, OCA#89, OCA#88, OCA#86, OCA#80, OCA#78, OCA#61, OCA#60, and OCA#8

See merge request kencove/odoo/odoo-platform!70
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

Successfully merging this pull request may close these issues.

4 participants