o-spreadsheet icon indicating copy to clipboard operation
o-spreadsheet copied to clipboard

Lock the cell ?

Open saifkazi opened this issue 1 year ago • 3 comments

Hey I found this Library very useful. I was hoping if there is some way if I could lock the cell . So the user cannot edit that cell .. as I am new to owl development... Is it possible to add these via functions or by creating some plugins?

saifkazi avatar Jun 05 '23 14:06 saifkazi

Hi, Thank you for your interest in o-spreadsheet!

We have considered this feature and it is part of our roadmap. Unfortunately, we cannot give you an ETA - I would ju

That being said, you could develop this feature on your own in the meantime by creating a plugin that would store a given range and reject (via the allowDIspatch function) any command that would impact the said range of cells.

I will link against this issue once we start working on this feature.

Best regards,

rrahir avatar Jan 27 '24 21:01 rrahir

Hello, That feature would be great. Doesn't sound that complicated and would bring Odoo closer and closer to its competitors.

ben3474 avatar Sep 13 '24 09:09 ben3474

Hi!

This will be implemented in the near future (might not make it in Odoo 18.0) with some limitations. While it seems simple in theory, the absence of server-side validation of the revisions is a huge problem to ensure a thorough implementation of this behaviour. The pull request is available : https://github.com/odoo/o-spreadsheet/pull/4918

rrahir avatar Sep 13 '24 11:09 rrahir