Crop Seeds Breeding — SaaS Tier Limits
Optional bridge addon (task CB-SA-1) connecting grev_od_seeds_crops_man to the SaaS entitlement foundation grev_od_saas_base_ent. Mirrors grev_od_seeds_livestock_saas's own LB-SA-1 shape exactly.
Why a separate addon
grev_od_seeds_crops_man must stay installable and fully functional with no SaaS module present at all (user directive, 2026-08-01, and X-17's own bridge-addon rule). So the breeding module itself carries no SaaS dependency and no SaaS code; everything lives here.
Provides
- Four tenant entitlement axes registered as grev.saas.usage.counter rows -- cb_species_count, cb_variety_count, cb_program_count, cb_trial_count -- each backed by a counting method added to grev.saas.tenant via _inherit.
- create() overrides on grev.crop.species / .variety / grev.crop.breeding.program / .field.trial that call tenant._grev_check_limit(code) before the records exist.
- The seven species this module ships always-loaded (data/crop_data.xml: Maize/Rice/Wheat/Soybean/Sorghum/Cotton/ Sunflower) declare no company_id at all in their own XML, so the field's own Python default (self.env.company) silently binds them to a real company at install time -- exactly the same shape LB-SA-1 already found and fixed for its own six seeded species (NOT the farm modules' own company_id = False workflow-template convention). This addon identifies them the same way LB-SA-1 did: via ir.model.data (module = grev_od_seeds_crops_man), excluding them from every tenant's species count regardless of which company they happen to sit on. Varieties ship no always-loaded rows at all (only demo data), so no equivalent exclusion is needed there.
Enforcement is a no-op unless the grev_saas.saas_mode system parameter is on -- installing this addon on a non-SaaS database changes nothing.
Requires Odoo Enterprise transitively (via grev_od_saas_base_ent -> sale_subscription).
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) • Invoicing (account) • Project (project) • Purchase (purchase) • Employees (hr) • Subscriptions (sale_subscription) • Sales (sale_management) |
| Community Apps Dependencies | Show |
| Lines of code | 15283 |
| Technical Name |
grev_od_seeds_crops_saas |
| License | OPL-1 |
| Website | https://grevlin.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module