Livestock Farm — Mobile API
Optional bridge addon (task LF-SA-3) connecting grev_od_livestock_farm to the shared mobile API foundation grev_od_api_base (X-19).
Why a separate addon
grev_od_livestock_farm must stay installable and fully functional with no API/SaaS module present at all (X-17's own bridge-addon rule, user directive 2026-08-01). So the farm module itself carries no API dependency and no API code; everything lives here, reaching into the farm models via _inherit and exposing a dedicated controller.
Provides
- A new farmhand API-key scope (selection_add on grev.api.key.scope) for the daily-capture mobile client — distinct from the base module's own tenant-owner mobile scope.
- GET /api/farm/v1/livestock/cycles (+ /<id>), /houses, /calendar — read endpoints for the farmhand's own daily view, scoped by the acting user's own company/farm-group ACLs and record rules exactly as the backend UI already is (no separate access mechanism — see the module's own security note on why that is safe here, unlike the portal bridge's own necessary workaround).
- POST /api/farm/v1/livestock/{feed,egg,milk,mortality,weighing} and POST .../actions/<id>/complete — daily-capture write endpoints. Every write calls the matching model's own action method (action_confirm(), action_mark_done(), …) so stock moves and journal entries post exactly as they would from the backend — never a raw create() + state write.
Requires Odoo Enterprise transitively (via grev_od_api_base -> grev_od_saas_base_ent -> sale_subscription).
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Subscriptions (sale_subscription)
• Sales (sale_management) • Discuss (mail) • Invoicing (account) • CRM (crm) • Inventory (stock) • Manufacturing (mrp) • Project (project) • Purchase (purchase) • Calendar (calendar) • Contacts (contacts) • Employees (hr) |
| Community Apps Dependencies | Show |
| Lines of code | 19078 |
| Technical Name |
grev_od_livestock_farm_api |
| 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