odoo / o-spreadsheet

Other
195 stars 44 forks source link

Lock the cell ? #2555

Open saifkazi opened 1 year ago

saifkazi commented 1 year ago

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?

rrahir commented 10 months ago

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,

ben3474 commented 2 months ago

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

rrahir commented 2 months ago

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