|
To begin with, open your browser at https://github.com/Punto0/addons-fm registered to github.
|
|
## Git Repos
|
|
|
|
|
|
|
|
FairMarket uses the OCP Odoo sources 8.0 branch: https://github.com/OCA/OCB/tree/8.0
|
|
|
|
|
|
|
|
We update the sources each few months.
|
|
|
|
|
|
|
|
The main addons repo is: https://github.com/Punto0/addons-fm
|
|
|
|
|
|
|
|
and the main addon in the repo is fairmarket_tunes, wich is the main source of modifications of FairMarket. In this repo there are addons from another repos too, mainly from the OCA repos, without modifications. We keep in this repo to simplify the deployment and maintenance of the servers.
|
|
|
|
|
|
|
|
There are another repo for the payments addons: https://github.com/Punto0/addons-payment
|
|
|
|
|
|
|
|
and another for the Collective Purchases Network: https://github.com/Punto0/rcc
|
|
|
|
|
|
|
|
The repo split is for historical reasons that now do not apply. In some point we will unify the repos and posibly we will move to this gitlab.
|
|
|
|
|
|
|
|
## Git branches
|
|
|
|
|
|
|
|
master is the branch where we test and develop changes. Devmarket is synced with that.
|
|
|
|
|
|
|
|
prod is the branch synced in production. We merge from master to prod to apply changes in the the production server.
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
All work is licensed under the GNU Affero license: https://www.gnu.org/licenses/#AGPL
|
|
|
|
|
|
|
|
The prod branch of each repo keeps the open source requirement of the license.
|
|
|
|
|
|
|
|
## Submisions workflow
|
|
|
|
|
|
|
|
We keep the odoo source clean without modifications, all the changes are done inheriting with addons.
|
|
|
|
|
|
|
|
We should avoid edit in the GUI, all the records needed or modificated should must be with xml records.
|
|
|
|
|
|
|
|
If you want to introduce a feature, first see if there is already an addon wich already are inherating the models, views or records you want change, or it fits better for your neededs. Already there are a lot of models inherated, product for example has an addon only them, if you want to change something in about products, product_custom is your addon. Same for delivery_custom, website_sale_fm and so. If not fits in any addon, you can try in the fairmarket_tunes addon.
|
|
|
|
|
|
Assuming you have access to a terminal on some computer where you can develop, Fork the repo in your account so you can edit it on your computer. For this you might want an IDE Or some kind of editing program, preferably free software. Change anything you want. Then type in a terminal:
|
|
Assuming you have access to a terminal on some computer where you can develop, Fork the repo in your account so you can edit it on your computer. For this you might want an IDE Or some kind of editing program, preferably free software. Change anything you want. Then type in a terminal:
|
|
|
|
|
... | @@ -12,4 +46,3 @@ git push |
... | @@ -12,4 +46,3 @@ git push |
|
and then go back to the site and click on pull request on that first link. You might want to change some CSS for example: https://github.com/Punto0/addons-fm/blob/master/fairmarket_tunes/static/src/css/fairmarket_tunes.css
|
|
and then go back to the site and click on pull request on that first link. You might want to change some CSS for example: https://github.com/Punto0/addons-fm/blob/master/fairmarket_tunes/static/src/css/fairmarket_tunes.css
|
|
|
|
|
|
Now you can do it and it will also help us improve the tutorial! |
|
Now you can do it and it will also help us improve the tutorial! |
|
|
|
\ No newline at end of file |
|
|
|
|