This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'farmer-registry' of https://github.com/OpenSPP/openspp-…
…registry into farmer-registry-demo-data
- Loading branch information
Showing
13 changed files
with
187 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,12 @@ name: tests | |
on: | ||
pull_request: | ||
branches: | ||
- "15.0*" | ||
- "15.1*" | ||
- "17.0*" | ||
push: | ||
branches: | ||
- "15.0" | ||
- "rc/15.0*" | ||
- "15.0-ocabot-*" | ||
- "17.0" | ||
- "17.0-ocabot-*" | ||
- "farmer-registry" | ||
env: | ||
OCA_GIT_USER_NAME: openspp | ||
OCA_GIT_USER_EMAIL: [email protected] | ||
|
@@ -18,7 +17,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Detect unreleased dependencies | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
for reqfile in requirements.txt test-requirements.txt ; do | ||
if [ -f ${reqfile} ] ; then | ||
|
@@ -39,26 +38,24 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest | ||
makepot: "true" | ||
- container: ghcr.io/oca/oca-ci/py3.10-odoo17.0:latest | ||
name: test with Odoo | ||
- container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest | ||
- container: ghcr.io/oca/oca-ci/py3.10-ocb17.0:latest | ||
name: test with OCB | ||
makepot: "true" | ||
services: | ||
postgres: | ||
image: postgres:9.6 | ||
image: postgres:15.0 | ||
env: | ||
POSTGRES_USER: odoo | ||
POSTGRES_PASSWORD: odoo | ||
POSTGRES_DB: odoo | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
# Disabling shallow clone for sonarqube | ||
# fetch-depth: 0 | ||
- name: Install addons and dependencies | ||
run: oca_install_addons | ||
- name: Check licenses | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import logging | ||
|
||
from odoo import api, fields, models | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
class SPPFeedItems(models.Model): | ||
_name = "spp.feed.items" | ||
_description = "Feed Items Types" | ||
|
||
name = fields.Char("Feed Items Type") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<odoo noupdate="1"> | ||
<record id="chemical_fungicides" model="spp.chemical"> | ||
<field name="name">Fungicides</field> | ||
</record> | ||
<record id="chemical_herbicides" model="spp.chemical"> | ||
<field name="name">Herbicides</field> | ||
</record> | ||
<record id="chemical_insecticides" model="spp.chemical"> | ||
<field name="name">Insecticides</field> | ||
</record> | ||
<record id="chemical_rodenticides" model="spp.chemical"> | ||
<field name="name">Rodenticides</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<odoo noupdate="1"> | ||
<record id="feed_items_natural_pasture" model="spp.feed.items"> | ||
<field name="name">Natural Pasture</field> | ||
</record> | ||
<record id="feed_items_improved_pasture" model="spp.feed.items"> | ||
<field name="name">Improved Pasture</field> | ||
</record> | ||
<record id="feed_items_own_grown_hay" model="spp.feed.items"> | ||
<field name="name">Own Grown Hay</field> | ||
</record> | ||
<record id="feed_items_purchased_hay" model="spp.feed.items"> | ||
<field name="name">Purchased Hay</field> | ||
</record> | ||
<record id="feed_items_manufactured_meals" model="spp.feed.items"> | ||
<field name="name">Manufactured Meals</field> | ||
</record> | ||
<record id="feed_items_home_made_feed_mix" model="spp.feed.items"> | ||
<field name="name">Home-made Feed Mix</field> | ||
</record> | ||
<record id="feed_items_chick_mash" model="spp.feed.items"> | ||
<field name="name">Chick Mash</field> | ||
</record> | ||
<record id="feed_items_calf_pellets" model="spp.feed.items"> | ||
<field name="name">Calf Pellets</field> | ||
</record> | ||
<record id="feed_items_mineral_salts" model="spp.feed.items"> | ||
<field name="name">Mineral Salts</field> | ||
</record> | ||
<record id="feed_items_purchased_fodder" model="spp.feed.items"> | ||
<field name="name">Purchased Fodder</field> | ||
</record> | ||
<record id="feed_items_pig_starter_finisher" model="spp.feed.items"> | ||
<field name="name">Pig Starter-finisher</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<odoo noupdate="1"> | ||
<record id="fertilizer_amonia_anhydrous" model="spp.fertilizer"> | ||
<field name="name">Amonia Anhydrous</field> | ||
</record> | ||
<record id="fertilizer_ammonium_hydroxide" model="spp.fertilizer"> | ||
<field name="name">Ammonium Hydroxide</field> | ||
</record> | ||
<record id="fertilizer_calcium_nitrates" model="spp.fertilizer"> | ||
<field name="name">Calcium Nitrate</field> | ||
</record> | ||
<record id="fertilizer_can" model="spp.fertilizer"> | ||
<field name="name">CAN</field> | ||
</record> | ||
<record id="fertilizer_dap" model="spp.fertilizer"> | ||
<field name="name">DAP</field> | ||
</record> | ||
<record id="fertilizer_double_super_phosphate" model="spp.fertilizer"> | ||
<field name="name">Double Super Phosphate</field> | ||
</record> | ||
<record id="fertilizer_magnesium_nitrate" model="spp.fertilizer"> | ||
<field name="name">Magnesium Nitrate</field> | ||
</record> | ||
<record id="fertilizer_map" model="spp.fertilizer"> | ||
<field name="name">MAP</field> | ||
</record> | ||
<record id="fertilizer_mop" model="spp.fertilizer"> | ||
<field name="name">MOP</field> | ||
</record> | ||
<record id="fertilizer_npk" model="spp.fertilizer"> | ||
<field name="name">NPK</field> | ||
</record> | ||
<record id="fertilizer_phosphate_rock" model="spp.fertilizer"> | ||
<field name="name">Phosphate Rock</field> | ||
</record> | ||
<record id="fertilizer_potassium_nitrate" model="spp.fertilizer"> | ||
<field name="name">Potassium Nitrate</field> | ||
</record> | ||
<record id="fertilizer_potassium_sulphate" model="spp.fertilizer"> | ||
<field name="name">Potassium Sulphate</field> | ||
</record> | ||
<record id="fertilizer_sulphate_of_ammonia" model="spp.fertilizer"> | ||
<field name="name">Sulphate of Ammonia</field> | ||
</record> | ||
<record id="fertilizer_superphosphate" model="spp.fertilizer"> | ||
<field name="name">Superphosphate</field> | ||
</record> | ||
<record id="fertilizer_tsp" model="spp.fertilizer"> | ||
<field name="name">TSP</field> | ||
</record> | ||
<record id="fertilizer_urea" model="spp.fertilizer"> | ||
<field name="name">Urea</field> | ||
</record> | ||
<record id="fertilizer_organic_manure" model="spp.fertilizer"> | ||
<field name="name">Organic Manure</field> | ||
</record> | ||
<record id="fertilizer_organic_liquid_fertilizer" model="spp.fertilizer"> | ||
<field name="name">Organic Liquid Fertilizer</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<odoo noupdate="1"> | ||
<record id="gender_male" model="gender.type"> | ||
<field name="code">Male</field> | ||
<field name="value">Male</field> | ||
</record> | ||
<record id="gender_female" model="gender.type"> | ||
<field name="code">Female</field> | ||
<field name="value">Female</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.