Skip to content
Odoo Add-on to update lines prices from the selected price list
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
sale_order_price_recalculation
.gitignore
.travis.yml
README.md
build.gradle
generated-pom.xml
gradlew
gradlew.bat
settings.gradle

README.md

Odoo Sales Order Price Recalculation Add-on

README

See README

Run add-on tests

Project tests should be run using the following Gradle command:

./gradlew clean test

Once the tests have run, you may want to run ./gradlew cleanDocker to make sure all the resources are destroyed (containers, volumes, folders)

Install locally

Install the archive locally:

./gradlew clean install

Deploy on repository

2 ways to set the credentials:

  • export username/password as environment variables:
# Prompt for Nexus username and password
read -p "Nexus username: " user; export NEXUS_USER=$user; read -sp "Nexus password: " password; export NEXUS_PASSWORD=$password; echo ""
./gradlew publish -Puser=${NEXUS_USER} -Ppassword=${NEXUS_PASSWORD}
  • read from the ~/.m2/settings.xml file:
export NEXUS_REPO_ID="mks-nexus"
./gradlew publish -PrepoId=${NEXUS_REPO_ID}

(Note that, if set, the -Puser and -Ppassword will take precedence over the settings read in the ~/.m2/settings.xml)

By default the repo URL will be Mekom Nexus repository, but you can provide your own artifact repository URL by adding:

-Purl="https://my-nexus/url"

Additional info

If you are willing to leave the Odoo server running after running the tests, use:

./gradlew clean test run

The Odoo server will be accessible at http://localhost:8069

You can’t perform that action at this time.