mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Merge pull request #149 from ForgeFlow/13.0-upt-ci-config
[13.0][IMP]update config files from oca-addons-repo-template
This commit is contained in:
13
.copier-answers.yml
Normal file
13
.copier-answers.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Do NOT update manually; changes here will be overwritten by Copier
|
||||
_commit: v1.1.1
|
||||
_src_path: https://github.com/OCA/oca-addons-repo-template.git
|
||||
dependency_installation_mode: OCA
|
||||
generate_requirements_txt: false
|
||||
include_wkhtmltopdf: true
|
||||
odoo_version: 13.0
|
||||
rebel_module_groups: []
|
||||
repo_description: null
|
||||
repo_name: stock-rma
|
||||
repo_slug: https://github.com/ForgeFlow/stock-rma
|
||||
travis_apt_packages: []
|
||||
travis_apt_sources: []
|
||||
462
.eslintrc.yml
462
.eslintrc.yml
@@ -1,282 +1,180 @@
|
||||
{
|
||||
"globals":
|
||||
{
|
||||
"$": false,
|
||||
"_": false,
|
||||
"fuzzy": false,
|
||||
"jQuery": false,
|
||||
"moment": false,
|
||||
"odoo": false,
|
||||
"openerp": false,
|
||||
"self": false,
|
||||
},
|
||||
"env": { "browser": true },
|
||||
"rules":
|
||||
{
|
||||
"no-alert": "warn",
|
||||
"no-array-constructor": "warn",
|
||||
"no-bitwise": "off",
|
||||
"no-caller": "warn",
|
||||
"no-case-declarations": "warn",
|
||||
"no-catch-shadow": "warn",
|
||||
"no-class-assign": "warn",
|
||||
"no-cond-assign": "warn",
|
||||
"no-confusing-arrow": "warn",
|
||||
"no-console": "off",
|
||||
"no-const-assign": "warn",
|
||||
"no-constant-condition": "warn",
|
||||
"no-continue": "off",
|
||||
"no-control-regex": "warn",
|
||||
"no-debugger": "warn",
|
||||
"no-delete-var": "warn",
|
||||
"no-div-regex": "warn",
|
||||
"no-dupe-args": "warn",
|
||||
"no-dupe-class-members": "warn",
|
||||
"no-dupe-keys": "warn",
|
||||
"no-duplicate-case": "warn",
|
||||
"no-duplicate-imports": "warn",
|
||||
"no-else-return": "warn",
|
||||
"no-empty": "warn",
|
||||
"no-empty-character-class": "warn",
|
||||
"no-empty-function": "warn",
|
||||
"no-empty-pattern": "warn",
|
||||
"no-eq-null": "warn",
|
||||
"no-eval": "warn",
|
||||
"no-ex-assign": "warn",
|
||||
"no-extend-native": "warn",
|
||||
"no-extra-bind": "warn",
|
||||
"no-extra-boolean-cast": "warn",
|
||||
"no-extra-label": "warn",
|
||||
"no-extra-parens": "warn",
|
||||
"no-extra-semi": "warn",
|
||||
"no-fallthrough": "warn",
|
||||
"no-floating-decimal": "warn",
|
||||
"no-func-assign": "warn",
|
||||
"no-implicit-coercion": ["warn", { "allow": ["~"] }],
|
||||
"no-implicit-globals": "warn",
|
||||
"no-implied-eval": "warn",
|
||||
"no-inline-comments": "warn",
|
||||
"no-inner-declarations": "warn",
|
||||
"no-invalid-regexp": "warn",
|
||||
"no-invalid-this": "off",
|
||||
"no-irregular-whitespace": "warn",
|
||||
"no-iterator": "warn",
|
||||
"no-label-var": "warn",
|
||||
"no-labels": "warn",
|
||||
"no-lone-blocks": "warn",
|
||||
"no-lonely-if": "warn",
|
||||
"no-loop-func": "off",
|
||||
"no-magic-numbers": "off",
|
||||
"no-mixed-operators": "warn",
|
||||
"no-mixed-requires": "warn",
|
||||
"no-mixed-spaces-and-tabs": "warn",
|
||||
"no-multi-spaces": "warn",
|
||||
"no-multi-str": "warn",
|
||||
"no-multiple-empty-lines": "warn",
|
||||
"no-native-reassign": "warn",
|
||||
"no-negated-condition": "warn",
|
||||
"no-negated-in-lhs": "warn",
|
||||
"no-nested-ternary": "off",
|
||||
"no-new": "warn",
|
||||
"no-new-func": "warn",
|
||||
"no-new-object": "warn",
|
||||
"no-new-require": "warn",
|
||||
"no-new-symbol": "warn",
|
||||
"no-new-wrappers": "warn",
|
||||
"no-obj-calls": "warn",
|
||||
"no-octal": "warn",
|
||||
"no-octal-escape": "warn",
|
||||
"no-param-reassign": "warn",
|
||||
"no-path-concat": "warn",
|
||||
"no-plusplus": "off",
|
||||
"no-process-env": "warn",
|
||||
"no-process-exit": "warn",
|
||||
"no-proto": "warn",
|
||||
"no-prototype-builtins": "warn",
|
||||
"no-redeclare": "warn",
|
||||
"no-regex-spaces": "warn",
|
||||
"no-restricted-globals": "warn",
|
||||
"no-restricted-imports": "warn",
|
||||
"no-restricted-modules": "warn",
|
||||
"no-restricted-syntax": "warn",
|
||||
"no-return-assign": "warn",
|
||||
"no-script-url": "warn",
|
||||
"no-self-assign": "warn",
|
||||
"no-self-compare": "warn",
|
||||
"no-sequences": "warn",
|
||||
"no-shadow": "warn",
|
||||
"no-shadow-restricted-names": "warn",
|
||||
"no-whitespace-before-property": "warn",
|
||||
"no-spaced-func": "warn",
|
||||
"no-sparse-arrays": "warn",
|
||||
"no-sync": "warn",
|
||||
"no-tabs": "warn",
|
||||
"no-ternary": "off",
|
||||
"no-trailing-spaces": "warn",
|
||||
"no-this-before-super": "warn",
|
||||
"no-throw-literal": "warn",
|
||||
"no-undef": "warn",
|
||||
"no-undef-init": "warn",
|
||||
"no-undefined": "off",
|
||||
"no-unexpected-multiline": "warn",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-unmodified-loop-condition": "warn",
|
||||
"no-unneeded-ternary": "warn",
|
||||
"no-unreachable": "warn",
|
||||
"no-unsafe-finally": "warn",
|
||||
"no-unused-expressions": "warn",
|
||||
"no-unused-labels": "warn",
|
||||
"no-unused-vars": "warn",
|
||||
"no-use-before-define": "warn",
|
||||
"no-useless-call": "warn",
|
||||
"no-useless-computed-key": "warn",
|
||||
"no-useless-concat": "warn",
|
||||
"no-useless-constructor": "warn",
|
||||
"no-useless-escape": "warn",
|
||||
"no-useless-rename": "warn",
|
||||
"no-void": "warn",
|
||||
"no-var": "off",
|
||||
"no-warning-comments": "off",
|
||||
"no-with": "warn",
|
||||
"array-bracket-spacing": "off",
|
||||
"array-callback-return": "warn",
|
||||
"arrow-body-style": "warn",
|
||||
"arrow-parens": "warn",
|
||||
"arrow-spacing": "off",
|
||||
"accessor-pairs": "warn",
|
||||
"block-scoped-var": "off",
|
||||
"block-spacing": ["warn", "always"],
|
||||
"brace-style": "warn",
|
||||
"callback-return": "warn",
|
||||
"camelcase": "off",
|
||||
"capitalized-comments":
|
||||
[
|
||||
"warn",
|
||||
"always",
|
||||
{ "ignoreConsecutiveComments": true, "ignoreInlineComments": true },
|
||||
],
|
||||
"comma-dangle": ["warn", "always-multiline"],
|
||||
"comma-spacing": ["warn", { "before": false, "after": true }],
|
||||
"comma-style": "warn",
|
||||
"complexity": ["warn", 15],
|
||||
"computed-property-spacing": "off",
|
||||
"consistent-return": "off",
|
||||
"consistent-this": "off",
|
||||
"constructor-super": "warn",
|
||||
"curly": "warn",
|
||||
"default-case": "off",
|
||||
"dot-location": ["warn", "property"],
|
||||
"dot-notation": "warn",
|
||||
"eol-last": "warn",
|
||||
"eqeqeq": "warn",
|
||||
"func-names": "off",
|
||||
"func-style": "off",
|
||||
"generator-star-spacing": "off",
|
||||
"global-require": "warn",
|
||||
"guard-for-in": "off",
|
||||
"handle-callback-err": "warn",
|
||||
"id-blacklist": "warn",
|
||||
"id-length": "off",
|
||||
"id-match": "warn",
|
||||
"indent": "warn",
|
||||
"init-declarations": "warn",
|
||||
"jsx-quotes": "warn",
|
||||
"key-spacing": "off",
|
||||
"keyword-spacing": "warn",
|
||||
"linebreak-style": ["warn", "unix"],
|
||||
"lines-around-comment": "warn",
|
||||
"max-depth": "warn",
|
||||
"max-len":
|
||||
[
|
||||
"warn",
|
||||
{ "code": 88, "ignorePattern": "odoo\\.define\\(", "tabWidth": 4 },
|
||||
],
|
||||
"max-lines": "off",
|
||||
"max-nested-callbacks": "warn",
|
||||
"max-params": "off",
|
||||
"max-statements": "off",
|
||||
"max-statements-per-line": "warn",
|
||||
"multiline-ternary": "off",
|
||||
"new-cap": "off",
|
||||
"new-parens": "warn",
|
||||
"newline-after-var": "off",
|
||||
"newline-before-return": "off",
|
||||
"newline-per-chained-call": "off",
|
||||
"object-curly-newline": ["warn", { "consistent": true }],
|
||||
"object-curly-spacing": ["warn", "never"],
|
||||
"object-property-newline":
|
||||
["warn", { "allowAllPropertiesOnSameLine": true }],
|
||||
"object-shorthand": "off",
|
||||
"one-var": "off",
|
||||
"one-var-declaration-per-line": "off",
|
||||
"operator-assignment": "warn",
|
||||
"operator-linebreak": "warn",
|
||||
"padded-blocks": "off",
|
||||
"prefer-arrow-callback": "off",
|
||||
"prefer-const": "warn",
|
||||
"prefer-reflect": "off",
|
||||
"prefer-rest-params": "off",
|
||||
"prefer-spread": "off",
|
||||
"prefer-template": "off",
|
||||
"quote-props": "off",
|
||||
"quotes": "off",
|
||||
"radix": "warn",
|
||||
"require-yield": "warn",
|
||||
"rest-spread-spacing": "off",
|
||||
"semi": ["warn", "always"],
|
||||
"semi-spacing": "warn",
|
||||
"sort-imports": "warn",
|
||||
"sort-vars": "off",
|
||||
"space-before-blocks": "warn",
|
||||
"space-before-function-paren": "warn",
|
||||
"space-in-parens": "off",
|
||||
"space-infix-ops": "off",
|
||||
"space-unary-ops": "off",
|
||||
"spaced-comment": ["warn", "always"],
|
||||
"strict": ["warn", "function"],
|
||||
"template-curly-spacing": "off",
|
||||
"unicode-bom": "warn",
|
||||
"use-isnan": "warn",
|
||||
"valid-jsdoc":
|
||||
[
|
||||
"warn",
|
||||
{
|
||||
"prefer":
|
||||
{
|
||||
"arg": "param",
|
||||
"argument": "param",
|
||||
"augments": "extends",
|
||||
"constructor": "class",
|
||||
"exception": "throws",
|
||||
"func": "function",
|
||||
"method": "function",
|
||||
"prop": "property",
|
||||
"return": "returns",
|
||||
"virtual": "abstract",
|
||||
"yield": "yields",
|
||||
},
|
||||
"preferType":
|
||||
{
|
||||
"array": "Array",
|
||||
"bool": "Boolean",
|
||||
"boolean": "Boolean",
|
||||
"number": "Number",
|
||||
"object": "Object",
|
||||
"str": "String",
|
||||
"string": "String",
|
||||
},
|
||||
"requireParamDescription": false,
|
||||
"requireReturn": false,
|
||||
"requireReturnDescription": false,
|
||||
"requireReturnType": false,
|
||||
},
|
||||
],
|
||||
"valid-typeof": "warn",
|
||||
"vars-on-top": "off",
|
||||
"wrap-iife": "warn",
|
||||
"wrap-regex": "warn",
|
||||
"yield-star-spacing": "off",
|
||||
"yoda": "warn",
|
||||
},
|
||||
"parserOptions": { "ecmaVersion": 2017 },
|
||||
}
|
||||
env:
|
||||
browser: true
|
||||
|
||||
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
|
||||
parserOptions:
|
||||
ecmaVersion: 2017
|
||||
|
||||
# Globals available in Odoo that shouldn't produce errorings
|
||||
globals:
|
||||
_: readonly
|
||||
$: readonly
|
||||
fuzzy: readonly
|
||||
jQuery: readonly
|
||||
moment: readonly
|
||||
odoo: readonly
|
||||
openerp: readonly
|
||||
Promise: readonly
|
||||
|
||||
# Styling is handled by Prettier, so we only need to enable AST rules;
|
||||
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
|
||||
rules:
|
||||
accessor-pairs: warn
|
||||
array-callback-return: warn
|
||||
callback-return: warn
|
||||
capitalized-comments:
|
||||
- warn
|
||||
- always
|
||||
- ignoreConsecutiveComments: true
|
||||
ignoreInlineComments: true
|
||||
complexity:
|
||||
- warn
|
||||
- 15
|
||||
constructor-super: warn
|
||||
dot-notation: warn
|
||||
eqeqeq: warn
|
||||
global-require: warn
|
||||
handle-callback-err: warn
|
||||
id-blacklist: warn
|
||||
id-match: warn
|
||||
init-declarations: error
|
||||
max-depth: warn
|
||||
max-nested-callbacks: warn
|
||||
max-statements-per-line: warn
|
||||
no-alert: warn
|
||||
no-array-constructor: warn
|
||||
no-caller: warn
|
||||
no-case-declarations: warn
|
||||
no-class-assign: warn
|
||||
no-cond-assign: error
|
||||
no-const-assign: error
|
||||
no-constant-condition: warn
|
||||
no-control-regex: warn
|
||||
no-debugger: error
|
||||
no-delete-var: warn
|
||||
no-div-regex: warn
|
||||
no-dupe-args: error
|
||||
no-dupe-class-members: error
|
||||
no-dupe-keys: error
|
||||
no-duplicate-case: error
|
||||
no-duplicate-imports: error
|
||||
no-else-return: warn
|
||||
no-empty-character-class: warn
|
||||
no-empty-function: error
|
||||
no-empty-pattern: error
|
||||
no-empty: warn
|
||||
no-eq-null: error
|
||||
no-eval: error
|
||||
no-ex-assign: error
|
||||
no-extend-native: warn
|
||||
no-extra-bind: warn
|
||||
no-extra-boolean-cast: warn
|
||||
no-extra-label: warn
|
||||
no-fallthrough: warn
|
||||
no-func-assign: error
|
||||
no-global-assign: error
|
||||
no-implicit-coercion:
|
||||
- warn
|
||||
- allow: ["~"]
|
||||
no-implicit-globals: warn
|
||||
no-implied-eval: warn
|
||||
no-inline-comments: warn
|
||||
no-inner-declarations: warn
|
||||
no-invalid-regexp: warn
|
||||
no-irregular-whitespace: warn
|
||||
no-iterator: warn
|
||||
no-label-var: warn
|
||||
no-labels: warn
|
||||
no-lone-blocks: warn
|
||||
no-lonely-if: error
|
||||
no-mixed-requires: error
|
||||
no-multi-str: warn
|
||||
no-native-reassign: error
|
||||
no-negated-condition: warn
|
||||
no-negated-in-lhs: error
|
||||
no-new-func: warn
|
||||
no-new-object: warn
|
||||
no-new-require: warn
|
||||
no-new-symbol: warn
|
||||
no-new-wrappers: warn
|
||||
no-new: warn
|
||||
no-obj-calls: warn
|
||||
no-octal-escape: warn
|
||||
no-octal: warn
|
||||
no-param-reassign: warn
|
||||
no-path-concat: warn
|
||||
no-process-env: warn
|
||||
no-process-exit: warn
|
||||
no-proto: warn
|
||||
no-prototype-builtins: warn
|
||||
no-redeclare: warn
|
||||
no-regex-spaces: warn
|
||||
no-restricted-globals: warn
|
||||
no-restricted-imports: warn
|
||||
no-restricted-modules: warn
|
||||
no-restricted-syntax: warn
|
||||
no-return-assign: error
|
||||
no-script-url: warn
|
||||
no-self-assign: warn
|
||||
no-self-compare: warn
|
||||
no-sequences: warn
|
||||
no-shadow-restricted-names: warn
|
||||
no-shadow: warn
|
||||
no-sparse-arrays: warn
|
||||
no-sync: warn
|
||||
no-this-before-super: warn
|
||||
no-throw-literal: warn
|
||||
no-undef-init: warn
|
||||
no-undef: error
|
||||
no-unmodified-loop-condition: warn
|
||||
no-unneeded-ternary: error
|
||||
no-unreachable: error
|
||||
no-unsafe-finally: error
|
||||
no-unused-expressions: error
|
||||
no-unused-labels: error
|
||||
no-unused-vars: error
|
||||
no-use-before-define: error
|
||||
no-useless-call: warn
|
||||
no-useless-computed-key: warn
|
||||
no-useless-concat: warn
|
||||
no-useless-constructor: warn
|
||||
no-useless-escape: warn
|
||||
no-useless-rename: warn
|
||||
no-void: warn
|
||||
no-with: warn
|
||||
operator-assignment: [error, always]
|
||||
prefer-const: warn
|
||||
radix: warn
|
||||
require-yield: warn
|
||||
sort-imports: warn
|
||||
spaced-comment: [error, always]
|
||||
strict: [error, function]
|
||||
use-isnan: error
|
||||
valid-jsdoc:
|
||||
- warn
|
||||
- prefer:
|
||||
arg: param
|
||||
argument: param
|
||||
augments: extends
|
||||
constructor: class
|
||||
exception: throws
|
||||
func: function
|
||||
method: function
|
||||
prop: property
|
||||
return: returns
|
||||
virtual: abstract
|
||||
yield: yields
|
||||
preferType:
|
||||
array: Array
|
||||
bool: Boolean
|
||||
boolean: Boolean
|
||||
number: Number
|
||||
object: Object
|
||||
str: String
|
||||
string: String
|
||||
requireParamDescription: false
|
||||
requireReturn: false
|
||||
requireReturnDescription: false
|
||||
requireReturnType: false
|
||||
valid-typeof: warn
|
||||
yoda: warn
|
||||
|
||||
13
.github/workflows/pre-commit.yml
vendored
Normal file
13
.github/workflows/pre-commit.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
name: pre-commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: pre-commit/action@v2.0.0
|
||||
19
.gitignore
vendored
19
.gitignore
vendored
@@ -1,6 +1,8 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
/.venv
|
||||
/.pytest_cache
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
@@ -21,6 +23,7 @@ var/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
*.eggs
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
@@ -40,6 +43,19 @@ coverage.xml
|
||||
# Pycharm
|
||||
.idea
|
||||
|
||||
# Eclipse
|
||||
.settings
|
||||
|
||||
# Visual Studio cache/options directory
|
||||
.vs/
|
||||
.vscode
|
||||
|
||||
# OSX Files
|
||||
.DS_Store
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Mr Developer
|
||||
.mr.developer.cfg
|
||||
.project
|
||||
@@ -54,3 +70,6 @@ docs/_build/
|
||||
# Backup files
|
||||
*~
|
||||
*.swp
|
||||
|
||||
# OCA rules
|
||||
!static/lib/
|
||||
|
||||
@@ -12,20 +12,21 @@ exclude: |
|
||||
(LICENSE.*|COPYING.*)
|
||||
default_language_version:
|
||||
python: python3
|
||||
node: "14.13.0"
|
||||
repos:
|
||||
- repo: https://github.com/myint/autoflake
|
||||
rev: v1.4
|
||||
hooks:
|
||||
- id: autoflake
|
||||
args: ["-i", "--ignore-init-module-imports"]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 19.10b0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/prettier/prettier
|
||||
rev: "1.19.1"
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v1.19.1
|
||||
hooks:
|
||||
- id: prettier
|
||||
# TODO Avoid awebdeveloper/pre-commit-prettier if possible
|
||||
# HACK https://github.com/prettier/prettier/issues/7407
|
||||
- repo: https://github.com/awebdeveloper/pre-commit-prettier
|
||||
rev: v0.0.1
|
||||
hooks:
|
||||
- id: prettier
|
||||
name: prettier xml plugin
|
||||
additional_dependencies:
|
||||
@@ -75,17 +76,17 @@ repos:
|
||||
files: /__init__\.py$
|
||||
additional_dependencies: ["flake8-bugbear==19.8.0"]
|
||||
- repo: https://github.com/pre-commit/mirrors-pylint
|
||||
rev: v2.3.1
|
||||
rev: v2.5.3
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: pylint with optional checks
|
||||
args: ["--rcfile=.pylintrc", "--exit-zero"]
|
||||
verbose: true
|
||||
additional_dependencies: ["pylint-odoo==3.1.0"]
|
||||
additional_dependencies: ["pylint-odoo==3.5.0"]
|
||||
- id: pylint
|
||||
name: pylint with mandatory checks
|
||||
args: ["--rcfile=.pylintrc-mandatory"]
|
||||
additional_dependencies: ["pylint-odoo==3.1.0"]
|
||||
additional_dependencies: ["pylint-odoo==3.5.0"]
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v1.26.2
|
||||
hooks:
|
||||
|
||||
8
.prettierrc.yml
Normal file
8
.prettierrc.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
# Defaults for all prettier-supported languages.
|
||||
# Prettier will complete this with settings from .editorconfig file.
|
||||
bracketSpacing: false
|
||||
printWidth: 88
|
||||
proseWrap: always
|
||||
semi: true
|
||||
trailingComma: "es5"
|
||||
xmlWhitespaceSensitivity: "strict"
|
||||
@@ -3,7 +3,8 @@ load-plugins=pylint_odoo
|
||||
score=n
|
||||
|
||||
[ODOOLINT]
|
||||
readme_template_url="https://github.com/ForgeFlow/maintainer-tools/blob/master/template/module/README.rst"
|
||||
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
|
||||
manifest_required_authors=Odoo Community Association (OCA)
|
||||
manifest_required_keys=license
|
||||
manifest_deprecated_keys=description,active
|
||||
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
|
||||
@@ -27,6 +28,7 @@ enable=anomalous-backslash-in-string,
|
||||
class-camelcase,
|
||||
dangerous-default-value,
|
||||
dangerous-view-replace-wo-priority,
|
||||
development-status-allowed,
|
||||
duplicate-id-csv,
|
||||
duplicate-key,
|
||||
duplicate-xml-fields,
|
||||
@@ -43,8 +45,6 @@ enable=anomalous-backslash-in-string,
|
||||
method-inverse,
|
||||
method-required-super,
|
||||
method-search,
|
||||
missing-import-error,
|
||||
missing-manifest-dependency,
|
||||
openerp-exception-warning,
|
||||
pointless-statement,
|
||||
pointless-string-statement,
|
||||
@@ -70,6 +70,7 @@ enable=anomalous-backslash-in-string,
|
||||
deprecated-module,
|
||||
file-not-used,
|
||||
invalid-commit,
|
||||
missing-manifest-dependency,
|
||||
missing-newline-extrafiles,
|
||||
missing-readme,
|
||||
no-utf8-coding-comment,
|
||||
@@ -79,6 +80,7 @@ enable=anomalous-backslash-in-string,
|
||||
too-complex,
|
||||
unnecessary-utf8-coding-comment
|
||||
|
||||
|
||||
[REPORTS]
|
||||
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
|
||||
output-format=colorized
|
||||
|
||||
@@ -3,7 +3,8 @@ load-plugins=pylint_odoo
|
||||
score=n
|
||||
|
||||
[ODOOLINT]
|
||||
readme_template_url="https://github.com/ForgeFlow/maintainer-tools/blob/master/template/module/README.rst"
|
||||
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
|
||||
manifest_required_authors=Odoo Community Association (OCA)
|
||||
manifest_required_keys=license
|
||||
manifest_deprecated_keys=description,active
|
||||
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
|
||||
@@ -20,6 +21,7 @@ enable=anomalous-backslash-in-string,
|
||||
class-camelcase,
|
||||
dangerous-default-value,
|
||||
dangerous-view-replace-wo-priority,
|
||||
development-status-allowed,
|
||||
duplicate-id-csv,
|
||||
duplicate-key,
|
||||
duplicate-xml-fields,
|
||||
@@ -36,8 +38,6 @@ enable=anomalous-backslash-in-string,
|
||||
method-inverse,
|
||||
method-required-super,
|
||||
method-search,
|
||||
missing-import-error,
|
||||
missing-manifest-dependency,
|
||||
openerp-exception-warning,
|
||||
pointless-statement,
|
||||
pointless-string-statement,
|
||||
|
||||
17
.travis.yml
17
.travis.yml
@@ -14,30 +14,25 @@ addons:
|
||||
- expect-dev # provides unbuffer utility
|
||||
|
||||
stages:
|
||||
- linting
|
||||
- test
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: linting
|
||||
name: "pre-commit"
|
||||
before_install:
|
||||
install: pip install pre-commit
|
||||
script: pre-commit run --all --show-diff-on-failure
|
||||
after_success:
|
||||
- stage: test
|
||||
env:
|
||||
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
|
||||
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1"
|
||||
- stage: test
|
||||
env:
|
||||
- TESTS="1" ODOO_REPO="OCA/OCB"
|
||||
|
||||
- TESTS=1 ODOO_REPO="OCA/OCB"
|
||||
env:
|
||||
global:
|
||||
- VERSION="13.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
|
||||
- WKHTMLTOPDF_VERSION="0.12.5"
|
||||
|
||||
install:
|
||||
- git clone -b master-eficent https://github.com/ForgeFlow/maintainer-quality-tools.git $HOME/maintainer-quality-tools
|
||||
- git clone -b master-eficent
|
||||
https://github.com/ForgeFlow/maintainer-quality-tools.git
|
||||
$HOME/maintainer-quality-tools
|
||||
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
|
||||
- travis_install_nightly
|
||||
|
||||
|
||||
10
CONTRIBUTING.md
Normal file
10
CONTRIBUTING.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# OCA Guidelines
|
||||
|
||||
Please follow the official guide from the
|
||||
[OCA Guidelines page](https://odoo-community.org/page/contributing).
|
||||
|
||||
## Project Specific Guidelines
|
||||
|
||||
<!-- /!\ do not modify above this line -->
|
||||
|
||||
This project does not have specific coding guidelines.
|
||||
48
README.md
48
README.md
@@ -1,24 +1,36 @@
|
||||
[](https://travis-ci.org/forgeflow/stock-rma)
|
||||
[](https://codecov.io/gh/forgeflow/stock-rma)
|
||||
[](https://runbot.odoo-community.org/runbot/repo/github-com-oca-https://github.com/ForgeFlow/stock-rma-)
|
||||
[](https://travis-ci.com/OCA/https://github.com/ForgeFlow/stock-rma)
|
||||
[](https://codecov.io/gh/OCA/https://github.com/ForgeFlow/stock-rma)
|
||||
[](https://translation.odoo-community.org/engage/https://github.com/ForgeFlow/stock-rma-13-0/?utm_source=widget)
|
||||
|
||||
RMA (Return Merchandise Authorization)
|
||||
======================================
|
||||
<!-- /!\ do not modify above this line -->
|
||||
|
||||
A Return Merchandise Authorization (RMA), is a part of the process of
|
||||
returning a product in order to receive a refund, replacement, or repair
|
||||
during the product's warranty period.
|
||||
# stock-rma
|
||||
|
||||
The purchaser of the product must contact the manufacturer (or distributor
|
||||
or retailer) to obtain authorization to return the product.
|
||||
None
|
||||
|
||||
The resulting RMA number must be displayed on or included in the returned
|
||||
product's packaging.
|
||||
<!-- /!\ do not modify below this line -->
|
||||
|
||||
The issuance of an RMA is a key gatekeeping moment in the reverse logistics
|
||||
cycle, providing the vendor with a final opportunity to diagnose and correct
|
||||
the customer's problem with the product (such as improper installation or
|
||||
configuration) before the customer permanently relinquishes ownership
|
||||
of the product to the manufacturer, commonly referred to as a return.
|
||||
<!-- prettier-ignore-start -->
|
||||
|
||||
As returns are costly for the vendor and inconvenient for the customer,
|
||||
any return that can be prevented benefits both parties.
|
||||
[//]: # (addons)
|
||||
|
||||
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
|
||||
|
||||
[//]: # (end addons)
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
## Licenses
|
||||
|
||||
This repository is licensed under [AGPL-3.0](LICENSE).
|
||||
|
||||
However, each module can have a totally different license, as long as they adhere to OCA
|
||||
policy. Consult each module's `__manifest__.py` file, which contains a `license` key
|
||||
that explains its license.
|
||||
|
||||
----
|
||||
|
||||
OCA, or the [Odoo Community Association](http://odoo-community.org/), is a nonprofit
|
||||
organization whose mission is to support the collaborative development of Odoo features
|
||||
and promote its widespread use.
|
||||
|
||||
@@ -46,10 +46,7 @@
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_cust_out" />
|
||||
<field name="sequence_code">RMA → Customer</field>
|
||||
<field name="default_location_src_id" ref="rma.location_rma" />
|
||||
<field
|
||||
name="default_location_dest_id"
|
||||
ref="stock.stock_location_customers"
|
||||
/>
|
||||
<field name="default_location_dest_id" ref="stock.stock_location_customers" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">outgoing</field>
|
||||
</record>
|
||||
@@ -58,10 +55,7 @@
|
||||
<field name="name">Customer → RMA</field>
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_cust_in" />
|
||||
<field name="sequence_code">Customer → RMA</field>
|
||||
<field
|
||||
name="default_location_src_id"
|
||||
ref="stock.stock_location_customers"
|
||||
/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_customers" />
|
||||
<field name="default_location_dest_id" ref="rma.location_rma" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">incoming</field>
|
||||
@@ -72,10 +66,7 @@
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_sup_out" />
|
||||
<field name="sequence_code">RMA -> Supplier</field>
|
||||
<field name="default_location_src_id" ref="rma.location_rma" />
|
||||
<field
|
||||
name="default_location_dest_id"
|
||||
ref="stock.stock_location_suppliers"
|
||||
/>
|
||||
<field name="default_location_dest_id" ref="stock.stock_location_suppliers" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">outgoing</field>
|
||||
</record>
|
||||
@@ -84,10 +75,7 @@
|
||||
<field name="name">Supplier -> RMA</field>
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_sup_in" />
|
||||
<field name="sequence_code">Supplier -> RMA</field>
|
||||
<field
|
||||
name="default_location_src_id"
|
||||
ref="stock.stock_location_suppliers"
|
||||
/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_suppliers" />
|
||||
<field name="default_location_dest_id" ref="rma.location_rma" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">incoming</field>
|
||||
@@ -97,14 +85,8 @@
|
||||
<field name="name">Customer -> Supplier</field>
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_dropship" />
|
||||
<field name="sequence_code">Customer -> Supplier</field>
|
||||
<field
|
||||
name="default_location_src_id"
|
||||
ref="stock.stock_location_customers"
|
||||
/>
|
||||
<field
|
||||
name="default_location_dest_id"
|
||||
ref="stock.stock_location_suppliers"
|
||||
/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_customers" />
|
||||
<field name="default_location_dest_id" ref="stock.stock_location_suppliers" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">incoming</field>
|
||||
</record>
|
||||
@@ -113,14 +95,8 @@
|
||||
<field name="name">Supplier -> Customer</field>
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_dropship" />
|
||||
<field name="sequence_code">Supplier -> Customer</field>
|
||||
<field
|
||||
name="default_location_src_id"
|
||||
ref="stock.stock_location_suppliers"
|
||||
/>
|
||||
<field
|
||||
name="default_location_dest_id"
|
||||
ref="stock.stock_location_customers"
|
||||
/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_suppliers" />
|
||||
<field name="default_location_dest_id" ref="stock.stock_location_customers" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">incoming</field>
|
||||
</record>
|
||||
@@ -214,10 +190,7 @@
|
||||
<field name="location_src_id" ref="stock.stock_location_customers" />
|
||||
<field name="procure_method">make_to_stock</field>
|
||||
<field name="route_id" ref="rma.route_rma_dropship" />
|
||||
<field
|
||||
name="picking_type_id"
|
||||
ref="rma.picking_type_rma_dropship_return"
|
||||
/>
|
||||
<field name="picking_type_id" ref="rma.picking_type_rma_dropship_return" />
|
||||
</record>
|
||||
|
||||
<record id="rule_rma_dropship" model="stock.rule">
|
||||
|
||||
@@ -41,14 +41,8 @@
|
||||
<record id="picking_type_rma_dropship_return" model="stock.picking.type">
|
||||
<field name="name">Customer -> Supplier</field>
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_dropship" />
|
||||
<field
|
||||
name="default_location_src_id"
|
||||
ref="stock.stock_location_customers"
|
||||
/>
|
||||
<field
|
||||
name="default_location_dest_id"
|
||||
ref="stock.stock_location_suppliers"
|
||||
/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_customers" />
|
||||
<field name="default_location_dest_id" ref="stock.stock_location_suppliers" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">incoming</field>
|
||||
</record>
|
||||
@@ -56,14 +50,8 @@
|
||||
<record id="picking_type_rma_dropship" model="stock.picking.type">
|
||||
<field name="name">Supplier -> Customer</field>
|
||||
<field name="sequence_id" ref="seq_picking_type_rma_dropship" />
|
||||
<field
|
||||
name="default_location_src_id"
|
||||
ref="stock.stock_location_suppliers"
|
||||
/>
|
||||
<field
|
||||
name="default_location_dest_id"
|
||||
ref="stock.stock_location_customers"
|
||||
/>
|
||||
<field name="default_location_src_id" ref="stock.stock_location_suppliers" />
|
||||
<field name="default_location_dest_id" ref="stock.stock_location_customers" />
|
||||
<field name="warehouse_id" eval="False" />
|
||||
<field name="code">incoming</field>
|
||||
</record>
|
||||
@@ -105,10 +93,7 @@
|
||||
<field name="location_src_id" ref="stock.stock_location_customers" />
|
||||
<field name="procure_method">make_to_stock</field>
|
||||
<field name="route_id" ref="rma.route_rma_dropship" />
|
||||
<field
|
||||
name="picking_type_id"
|
||||
ref="rma.picking_type_rma_dropship_return"
|
||||
/>
|
||||
<field name="picking_type_id" ref="rma.picking_type_rma_dropship_return" />
|
||||
</record>
|
||||
|
||||
<record id="rule_rma_dropship" model="stock.rule">
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
<odoo>
|
||||
<template id="report_rma_order_line_document">
|
||||
<t t-call="web.external_layout">
|
||||
<t
|
||||
t-set="doc"
|
||||
t-value="doc.with_context({'lang':doc.partner_id.lang})"
|
||||
/>
|
||||
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
|
||||
<div class="page">
|
||||
<div class="oe_structure" />
|
||||
<div class="row">
|
||||
@@ -19,9 +16,7 @@
|
||||
t-field="doc.in_warehouse_id.partner_id"
|
||||
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'
|
||||
/>
|
||||
<p
|
||||
t-if="doc.in_warehouse_id.partner_id.vat"
|
||||
>VAT: <span
|
||||
<p t-if="doc.in_warehouse_id.partner_id.vat">VAT: <span
|
||||
t-field="doc.in_warehouse_id.partner_id.vat"
|
||||
/></p>
|
||||
</div>
|
||||
@@ -80,11 +75,7 @@
|
||||
<strong>Contact Person:</strong>
|
||||
<p t-field="doc.requested_by.name" />
|
||||
</div>
|
||||
<div
|
||||
name="operation_id"
|
||||
t-if="doc.operation_id"
|
||||
class="col-3"
|
||||
>
|
||||
<div name="operation_id" t-if="doc.operation_id" class="col-3">
|
||||
<strong>Operation:</strong>
|
||||
<p t-field="doc.operation_id.name" />
|
||||
</div>
|
||||
@@ -103,10 +94,7 @@
|
||||
<td><span t-field="doc.product_id" /></td>
|
||||
<td class="text-right">
|
||||
<span t-field="doc.product_qty" />
|
||||
<span
|
||||
t-field="doc.uom_id"
|
||||
groups="uom.group_uom"
|
||||
/>
|
||||
<span t-field="doc.uom_id" groups="uom.group_uom" />
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span
|
||||
@@ -144,10 +132,7 @@
|
||||
|
||||
<template id="report_rma_order_document">
|
||||
<t t-call="web.external_layout">
|
||||
<t
|
||||
t-set="doc"
|
||||
t-value="doc.with_context({'lang':doc.partner_id.lang})"
|
||||
/>
|
||||
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
|
||||
<div class="page">
|
||||
<div class="oe_structure" />
|
||||
<div class="row">
|
||||
@@ -161,9 +146,7 @@
|
||||
t-field="doc.in_warehouse_id.partner_id"
|
||||
t-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": True, "phone_icons": True}'
|
||||
/>
|
||||
<p
|
||||
t-if="doc.in_warehouse_id.partner_id.vat"
|
||||
>VAT: <span
|
||||
<p t-if="doc.in_warehouse_id.partner_id.vat">VAT: <span
|
||||
t-field="doc.in_warehouse_id.partner_id.vat"
|
||||
/></p>
|
||||
</div>
|
||||
@@ -241,10 +224,7 @@
|
||||
<td><span t-field="l.product_id" /></td>
|
||||
<td class="text-right">
|
||||
<span t-field="l.product_qty" />
|
||||
<span
|
||||
t-field="l.uom_id"
|
||||
groups="uom.group_uom"
|
||||
/>
|
||||
<span t-field="l.uom_id" groups="uom.group_uom" />
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span t-field="l.price_unit" />
|
||||
|
||||
@@ -10,19 +10,13 @@
|
||||
|
||||
<record id="group_rma_customer_user" model="res.groups">
|
||||
<field name="name">RMA Customer User</field>
|
||||
<field
|
||||
name="implied_ids"
|
||||
eval="[(4, ref('stock.group_stock_user'))]"
|
||||
/>
|
||||
<field name="implied_ids" eval="[(4, ref('stock.group_stock_user'))]" />
|
||||
<field name="category_id" ref="module_category_rma" />
|
||||
</record>
|
||||
|
||||
<record id="group_rma_supplier_user" model="res.groups">
|
||||
<field name="name">RMA Supplier User</field>
|
||||
<field
|
||||
name="implied_ids"
|
||||
eval="[(4, ref('stock.group_stock_user'))]"
|
||||
/>
|
||||
<field name="implied_ids" eval="[(4, ref('stock.group_stock_user'))]" />
|
||||
<field name="category_id" ref="module_category_rma" />
|
||||
</record>
|
||||
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
<record id="product_category_form_view" model="ir.ui.view">
|
||||
<field name="name">product.category.form</field>
|
||||
<field name="model">product.category</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="stock.product_category_form_view_inherit"
|
||||
/>
|
||||
<field name="inherit_id" ref="stock.product_category_form_view_inherit" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="removal_strategy_id" position="after">
|
||||
<group name="rma">
|
||||
|
||||
@@ -39,10 +39,7 @@
|
||||
<field name="lot_id" groups="stock.group_production_lot" />
|
||||
<field name="rma_id" groups="rma.group_rma_groups" />
|
||||
<field name="origin" />
|
||||
<field
|
||||
name="operation_id"
|
||||
domain="[('type','=','supplier')]"
|
||||
/>
|
||||
<field name="operation_id" domain="[('type','=','supplier')]" />
|
||||
<field name="uom_id" groups="uom.group_uom" />
|
||||
<field name="product_qty" />
|
||||
<field name="price_unit" />
|
||||
@@ -233,11 +230,7 @@
|
||||
</group>
|
||||
</page>
|
||||
<page name="stock" string="Stock Moves">
|
||||
<field
|
||||
name="move_ids"
|
||||
nolabel="1"
|
||||
readonly="1"
|
||||
/>
|
||||
<field name="move_ids" nolabel="1" readonly="1" />
|
||||
</page>
|
||||
<page name="quantities" string="Quantities">
|
||||
<group>
|
||||
@@ -480,18 +473,10 @@
|
||||
</group>
|
||||
</page>
|
||||
<page name="stock" string="Stock Moves">
|
||||
<field
|
||||
name="move_ids"
|
||||
nolabel="1"
|
||||
readonly="1"
|
||||
/>
|
||||
<field name="move_ids" nolabel="1" readonly="1" />
|
||||
</page>
|
||||
<page name="quantities" string="Quantities">
|
||||
<group
|
||||
name="quantities"
|
||||
col="4"
|
||||
string="Quantities"
|
||||
>
|
||||
<group name="quantities" col="4" string="Quantities">
|
||||
<group name="receive">
|
||||
<field name="qty_to_receive" />
|
||||
<field name="qty_incoming" />
|
||||
@@ -561,10 +546,7 @@
|
||||
help="My RMAs"
|
||||
/>
|
||||
<separator />
|
||||
<group
|
||||
name="stock_quantities"
|
||||
groups="stock.group_stock_user"
|
||||
>
|
||||
<group name="stock_quantities" groups="stock.group_stock_user">
|
||||
<filter
|
||||
name="to_receive"
|
||||
domain="[('state','!=', 'done'),('qty_to_receive','>',0.0)]"
|
||||
@@ -645,19 +627,13 @@
|
||||
<field name="view_id" ref="view_rma_line_supplier_tree" />
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="action_rma_line_supplier_tree"
|
||||
model="ir.actions.act_window.view"
|
||||
>
|
||||
<record id="action_rma_line_supplier_tree" model="ir.actions.act_window.view">
|
||||
<field eval="3" name="sequence" />
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="act_window_id" ref="action_rma_supplier_lines" />
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="action_rma_line_supplier_form"
|
||||
model="ir.actions.act_window.view"
|
||||
>
|
||||
<record id="action_rma_line_supplier_form" model="ir.actions.act_window.view">
|
||||
<field eval="4" name="sequence" />
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_rma_line_supplier_form" />
|
||||
|
||||
@@ -7,11 +7,7 @@
|
||||
<tree string="RMA">
|
||||
<field name="name" />
|
||||
<field name="reference" />
|
||||
<field
|
||||
name="partner_id"
|
||||
groups="base.group_user"
|
||||
string="Customer"
|
||||
/>
|
||||
<field name="partner_id" groups="base.group_user" string="Customer" />
|
||||
<field name="date_rma" />
|
||||
</tree>
|
||||
</field>
|
||||
@@ -24,11 +20,7 @@
|
||||
<tree string="RMA">
|
||||
<field name="name" />
|
||||
<field name="reference" />
|
||||
<field
|
||||
name="partner_id"
|
||||
groups="base.group_user"
|
||||
string="Supplier"
|
||||
/>
|
||||
<field name="partner_id" groups="base.group_user" string="Supplier" />
|
||||
<field name="date_rma" />
|
||||
</tree>
|
||||
</field>
|
||||
@@ -75,11 +67,7 @@
|
||||
icon="fa-list"
|
||||
groups="rma.group_rma_customer_user"
|
||||
>
|
||||
<field
|
||||
name="line_count"
|
||||
widget="statinfo"
|
||||
string="RMA Lines"
|
||||
/>
|
||||
<field name="line_count" widget="statinfo" string="RMA Lines" />
|
||||
</button>
|
||||
<button
|
||||
type="object"
|
||||
@@ -147,10 +135,7 @@
|
||||
name="assigned_to"
|
||||
attrs="{'readonly':[('state', '!=', 'draft')]}"
|
||||
/>
|
||||
<field
|
||||
name="company_id"
|
||||
groups="base.group_multi_company"
|
||||
/>
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</group>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
@@ -232,11 +217,7 @@
|
||||
icon="fa-list"
|
||||
groups="rma.group_rma_supplier_user"
|
||||
>
|
||||
<field
|
||||
name="line_count"
|
||||
widget="statinfo"
|
||||
string="RMA Lines"
|
||||
/>
|
||||
<field name="line_count" widget="statinfo" string="RMA Lines" />
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title" name="title">
|
||||
@@ -293,10 +274,7 @@
|
||||
name="assigned_to"
|
||||
attrs="{'readonly':[('state', '!=', 'draft')]}"
|
||||
/>
|
||||
<field
|
||||
name="company_id"
|
||||
groups="base.group_multi_company"
|
||||
/>
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</group>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
|
||||
@@ -13,10 +13,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="stock_location_route_form_view_inherit_rma_stock"
|
||||
model="ir.ui.view"
|
||||
>
|
||||
<record id="stock_location_route_form_view_inherit_rma_stock" model="ir.ui.view">
|
||||
<field name="name">stock.location.route.form</field>
|
||||
<field name="inherit_id" ref="stock.stock_location_route_form_view" />
|
||||
<field name="model">stock.location.route</field>
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
<field name="model">stock.warehouse</field>
|
||||
<field name="inherit_id" ref="stock.view_warehouse" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='wh_output_stock_loc_id']"
|
||||
position="after"
|
||||
>
|
||||
<xpath expr="//field[@name='wh_output_stock_loc_id']" position="after">
|
||||
<field name="lot_rma_id" />
|
||||
</xpath>
|
||||
<field name="resupply_wh_ids" position="after">
|
||||
|
||||
@@ -35,11 +35,7 @@
|
||||
groups="stock.group_stock_multi_locations"
|
||||
/>
|
||||
<field name="create_date" groups="base.group_no_one" />
|
||||
<field
|
||||
name="date"
|
||||
string="Date"
|
||||
groups="base.group_no_one"
|
||||
/>
|
||||
<field name="date" string="Date" groups="base.group_no_one" />
|
||||
<field name="date_expected" string="Date Expected" />
|
||||
<field name="state" />
|
||||
</tree>
|
||||
@@ -63,20 +59,14 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="action_rma_add_stock_move_customer"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<record id="action_rma_add_stock_move_customer" model="ir.actions.act_window">
|
||||
<field name="name">Add from Stock Move</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">rma_add_stock_move</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="view_id" ref="view_rma_add_stock_move_customer" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('rma.group_rma_customer_user'))]"
|
||||
/>
|
||||
<field name="groups_id" eval="[(4, ref('rma.group_rma_customer_user'))]" />
|
||||
</record>
|
||||
|
||||
|
||||
@@ -131,26 +121,17 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="action_rma_add_stock_move_supplier"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<record id="action_rma_add_stock_move_supplier" model="ir.actions.act_window">
|
||||
<field name="name">Add from Stock Move</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">rma_add_stock_move</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="view_id" ref="view_rma_add_stock_move_supplier" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('rma.group_rma_supplier_user'))]"
|
||||
/>
|
||||
<field name="groups_id" eval="[(4, ref('rma.group_rma_supplier_user'))]" />
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="view_rma_add_stock_move_button_supplier_form"
|
||||
model="ir.ui.view"
|
||||
>
|
||||
<record id="view_rma_add_stock_move_button_supplier_form" model="ir.ui.view">
|
||||
<field name="name">rma.order.supplier.form - stock.move wizard</field>
|
||||
<field name="model">rma.order</field>
|
||||
<field name="inherit_id" ref="rma.view_rma_supplier_form" />
|
||||
|
||||
@@ -25,15 +25,8 @@
|
||||
<newline />
|
||||
<group>
|
||||
<field name="item_ids" nolabel="1" colspan="2">
|
||||
<tree
|
||||
string="Details"
|
||||
editable="bottom"
|
||||
create="false"
|
||||
>
|
||||
<field
|
||||
name="line_id"
|
||||
options="{'no_open': true}"
|
||||
/>
|
||||
<tree string="Details" editable="bottom" create="false">
|
||||
<field name="line_id" options="{'no_open': true}" />
|
||||
<field name="product_id" />
|
||||
<field name="name" />
|
||||
<field name="operation_id" />
|
||||
@@ -56,10 +49,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="action_rma_order_line_make_supplier_rma"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<record id="action_rma_order_line_make_supplier_rma" model="ir.actions.act_window">
|
||||
<field name="name">Create Supplier RMA</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">rma.order.line.make.supplier.rma</field>
|
||||
|
||||
@@ -17,11 +17,7 @@
|
||||
icon="fa-eject"
|
||||
groups="rma.group_rma_customer_user,rma.group_rma_supplier_user"
|
||||
>
|
||||
<field
|
||||
name="rma_count"
|
||||
widget="statinfo"
|
||||
string="RMA"
|
||||
/>
|
||||
<field name="rma_count" widget="statinfo" string="RMA" />
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
@@ -39,9 +35,7 @@
|
||||
<field name="name" position="after">
|
||||
<field name="rma_line_count" invisible="1" />
|
||||
<field name="rma_line_id" string="RMA line originated" />
|
||||
<notebook
|
||||
attrs="{'invisible': [('rma_line_count', '=', 0)]}"
|
||||
>
|
||||
<notebook attrs="{'invisible': [('rma_line_count', '=', 0)]}">
|
||||
<page string="RMA Lines">
|
||||
<field name="rma_line_ids" />
|
||||
</page>
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
||||
<odoo>
|
||||
|
||||
<record
|
||||
id="action_rma_account_customer_lines"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<record id="action_rma_account_customer_lines" model="ir.actions.act_window">
|
||||
<field name="name">Customer RMA</field>
|
||||
<field name="res_model">rma.order.line</field>
|
||||
<field name="domain">[('type','=', 'customer')]</field>
|
||||
@@ -18,9 +15,7 @@
|
||||
<field name="name">Supplier RMA</field>
|
||||
<field name="res_model">rma.order.line</field>
|
||||
<field name="domain">[('type','=', 'supplier')]</field>
|
||||
<field
|
||||
name="context"
|
||||
>{"search_default_to_refund":1, "supplier":1}</field>
|
||||
<field name="context">{"search_default_to_refund":1, "supplier":1}</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="rma.view_rma_line_supplier_tree" />
|
||||
</record>
|
||||
|
||||
@@ -21,11 +21,7 @@
|
||||
icon="fa-pencil-square-o"
|
||||
groups="account.group_account_user"
|
||||
>
|
||||
<field
|
||||
name="refund_count"
|
||||
widget="statinfo"
|
||||
string="Refunds"
|
||||
/>
|
||||
<field name="refund_count" widget="statinfo" string="Refunds" />
|
||||
</button>
|
||||
</button>
|
||||
<group name="main_info" position="inside">
|
||||
@@ -82,11 +78,7 @@
|
||||
icon="fa-pencil-square-o"
|
||||
groups="account.group_account_user"
|
||||
>
|
||||
<field
|
||||
name="refund_count"
|
||||
widget="statinfo"
|
||||
string="Refunds"
|
||||
/>
|
||||
<field name="refund_count" widget="statinfo" string="Refunds" />
|
||||
</button>
|
||||
</button>
|
||||
<group name="main_info" position="inside">
|
||||
|
||||
@@ -26,11 +26,7 @@
|
||||
icon="fa-pencil-square-o"
|
||||
groups="account.group_account_user"
|
||||
>
|
||||
<field
|
||||
name="invoice_count"
|
||||
widget="statinfo"
|
||||
string="Origin Inv"
|
||||
/>
|
||||
<field name="invoice_count" widget="statinfo" string="Origin Inv" />
|
||||
</button>
|
||||
</button>
|
||||
<!--
|
||||
|
||||
@@ -22,10 +22,7 @@
|
||||
<tree string="Invoice Lines">
|
||||
<field name="move_id" />
|
||||
<field name="name" />
|
||||
<field
|
||||
name="account_id"
|
||||
groups="account.group_account_user"
|
||||
/>
|
||||
<field name="account_id" groups="account.group_account_user" />
|
||||
<field name="quantity" />
|
||||
<field name="product_id" />
|
||||
<field name="product_uom_id" />
|
||||
@@ -75,10 +72,7 @@
|
||||
<tree string="Invoice Lines">
|
||||
<field name="move_id" />
|
||||
<field name="name" />
|
||||
<field
|
||||
name="account_id"
|
||||
groups="account.group_account_user"
|
||||
/>
|
||||
<field name="account_id" groups="account.group_account_user" />
|
||||
<field name="quantity" />
|
||||
<field name="product_id" />
|
||||
<field name="product_uom_id" />
|
||||
@@ -114,16 +108,10 @@
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="view_id" ref="view_rma_add_account_move" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('rma.group_rma_customer_user'))]"
|
||||
/>
|
||||
<field name="groups_id" eval="[(4, ref('rma.group_rma_customer_user'))]" />
|
||||
</record>
|
||||
|
||||
<record
|
||||
id="action_rma_add_account_move_supplier"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<record id="action_rma_add_account_move_supplier" model="ir.actions.act_window">
|
||||
<field name="name">Add Invoice</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">rma_add_account_move</field>
|
||||
@@ -131,10 +119,7 @@
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="view_id" ref="view_rma_add_account_move_supplier" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('rma.group_rma_supplier_user'))]"
|
||||
/>
|
||||
<field name="groups_id" eval="[(4, ref('rma.group_rma_supplier_user'))]" />
|
||||
</record>
|
||||
|
||||
<record id="view_rma_add_account_move_form" model="ir.ui.view">
|
||||
|
||||
@@ -32,11 +32,7 @@
|
||||
type="object"
|
||||
class="btn-primary"
|
||||
/>
|
||||
<button
|
||||
string="Cancel"
|
||||
class="btn-default"
|
||||
special="cancel"
|
||||
/>
|
||||
<button string="Cancel" class="btn-default" special="cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
@@ -48,10 +44,7 @@
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_rma_refund" />
|
||||
<field name="binding_model_id" ref="rma.model_rma_order_line" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('account.group_account_invoice'))]"
|
||||
/>
|
||||
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]" />
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="repair.seq_repair" model="ir.sequence">
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_repair_order_form" model="ir.ui.view">
|
||||
<field name="name">repair.order.form rma_repair</field>
|
||||
<field name="model">repair.order</field>
|
||||
<field name="inherit_id" ref="repair.view_repair_order_form"/>
|
||||
<field name="inherit_id" ref="repair.view_repair_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="guarantee_limit" position="after">
|
||||
<field name="rma_line_id"/>
|
||||
<field name="under_warranty"/>
|
||||
<field name="rma_line_id" />
|
||||
<field name="under_warranty" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="rma_operation_tree" model="ir.ui.view">
|
||||
<field name="name">rma.operation.tree - rma_repair</field>
|
||||
<field name="model">rma.operation</field>
|
||||
<field name="inherit_id" ref="rma.rma_operation_tree"/>
|
||||
<field name="inherit_id" ref="rma.rma_operation_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="delivery_policy" position="after">
|
||||
<field name="repair_type"/>
|
||||
<field name="repair_type" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
@@ -15,10 +15,10 @@
|
||||
<record id="rma_operation_form" model="ir.ui.view">
|
||||
<field name="name">rma.operation.form - rma_repair</field>
|
||||
<field name="model">rma.operation</field>
|
||||
<field name="inherit_id" ref="rma.rma_operation_form"/>
|
||||
<field name="inherit_id" ref="rma.rma_operation_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="delivery_policy" position="after">
|
||||
<field name="repair_type"/>
|
||||
<field name="repair_type" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -1,34 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_rma_line_form" model="ir.ui.view">
|
||||
<field name="name">rma.order.line.form - rma_repair</field>
|
||||
<field name="model">rma.order.line</field>
|
||||
<field name="inherit_id" ref="rma.view_rma_line_form"/>
|
||||
<field name="inherit_id" ref="rma.view_rma_line_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div name='button_box' position="inside">
|
||||
<button type="object" name="action_view_repair_order"
|
||||
<button
|
||||
type="object"
|
||||
name="action_view_repair_order"
|
||||
class="oe_stat_button"
|
||||
icon="fa-wrench"
|
||||
groups="stock.group_stock_user">
|
||||
<field name="repair_count" widget="statinfo"
|
||||
string="Repair Orders"/>
|
||||
groups="stock.group_stock_user"
|
||||
>
|
||||
<field
|
||||
name="repair_count"
|
||||
widget="statinfo"
|
||||
string="Repair Orders"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
<group name="quantities" position="inside">
|
||||
<group>
|
||||
<field name="qty_to_repair"/>
|
||||
<field name="qty_under_repair"/>
|
||||
<field name="qty_to_pay"/>
|
||||
<field name="qty_repaired"/>
|
||||
<field name="qty_to_repair" />
|
||||
<field name="qty_under_repair" />
|
||||
<field name="qty_to_pay" />
|
||||
<field name="qty_repaired" />
|
||||
</group>
|
||||
</group>
|
||||
<field name="delivery_policy" position="after">
|
||||
<field name="repair_type"/>
|
||||
<field name="repair_type" />
|
||||
</field>
|
||||
<notebook position="inside">
|
||||
<page name="repair" string="Repair Orders">
|
||||
<field name="repair_ids" nolabel="1"/>
|
||||
<field name="repair_ids" nolabel="1" />
|
||||
</page>
|
||||
</notebook>
|
||||
</field>
|
||||
@@ -37,14 +43,16 @@
|
||||
<record id="view_rma_line_button_repair_form" model="ir.ui.view">
|
||||
<field name="name">rma.order.line.form - rma_repair</field>
|
||||
<field name="model">rma.order.line</field>
|
||||
<field name="inherit_id" ref="rma.view_rma_line_button_form"/>
|
||||
<field name="inherit_id" ref="rma.view_rma_line_button_form" />
|
||||
<field name="arch" type="xml">
|
||||
<header position="inside">
|
||||
<button name="%(action_rma_order_line_make_repair)d"
|
||||
<button
|
||||
name="%(action_rma_order_line_make_repair)d"
|
||||
states="approved"
|
||||
string="Create Repair Order"
|
||||
class="oe_highlight"
|
||||
type="action"/>
|
||||
type="action"
|
||||
/>
|
||||
</header>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -1,18 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_rma_form" model="ir.ui.view">
|
||||
<field name="name">rma.order.form - rma_repair</field>
|
||||
<field name="model">rma.order</field>
|
||||
<field name="inherit_id" ref="rma.view_rma_form"/>
|
||||
<field name="inherit_id" ref="rma.view_rma_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button type="object" name="action_view_repair_order"
|
||||
<button
|
||||
type="object"
|
||||
name="action_view_repair_order"
|
||||
class="oe_stat_button"
|
||||
icon="fa-wrench"
|
||||
groups="stock.group_stock_user">
|
||||
<field name="repair_count" widget="statinfo"
|
||||
string="Repair Orders"/>
|
||||
groups="stock.group_stock_user"
|
||||
>
|
||||
<field
|
||||
name="repair_count"
|
||||
widget="statinfo"
|
||||
string="Repair Orders"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_rma_order_line_make_repair" model="ir.ui.view">
|
||||
@@ -7,43 +7,54 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Create Repair">
|
||||
<separator string="New Repair Orders details:"/>
|
||||
<newline/>
|
||||
<separator string="New Repair Orders details:" />
|
||||
<newline />
|
||||
<group>
|
||||
<field name="item_ids" nolabel="1" colspan="2">
|
||||
<tree string="Details" editable="bottom" create="false">
|
||||
<field name="line_id" options="{'no_open': true}"/>
|
||||
<field name="product_id"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="to_refurbish"/>
|
||||
<field name="refurbish_product_id" attrs="{'required': [('to_refurbish', '=', True)]}"/>
|
||||
<field name="location_id" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="location_dest_id" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="invoice_method"/>
|
||||
<field name="line_id" options="{'no_open': true}" />
|
||||
<field name="product_id" />
|
||||
<field name="product_qty" />
|
||||
<field name="product_uom_id" groups="uom.group_uom" />
|
||||
<field name="partner_id" />
|
||||
<field name="to_refurbish" />
|
||||
<field
|
||||
name="refurbish_product_id"
|
||||
attrs="{'required': [('to_refurbish', '=', True)]}"
|
||||
/>
|
||||
<field
|
||||
name="location_id"
|
||||
groups="stock.group_stock_multi_locations"
|
||||
/>
|
||||
<field
|
||||
name="location_dest_id"
|
||||
groups="stock.group_stock_multi_locations"
|
||||
/>
|
||||
<field name="invoice_method" />
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
<newline/>
|
||||
<newline />
|
||||
<footer>
|
||||
<button name="make_repair_order"
|
||||
string="Create Repair Orders" type="object"
|
||||
class="oe_highlight"/>
|
||||
<button special="cancel" string="Cancel" class="oe_link"/>
|
||||
<button
|
||||
name="make_repair_order"
|
||||
string="Create Repair Orders"
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
<button special="cancel" string="Cancel" class="oe_link" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_rma_order_line_make_repair"
|
||||
model="ir.actions.act_window">
|
||||
<record id="action_rma_order_line_make_repair" model="ir.actions.act_window">
|
||||
<field name="name">Create Repair</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">rma.order.line.make.repair</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="binding_model_id" ref="rma_repair.model_rma_order_line"/>
|
||||
<field name="binding_model_id" ref="rma_repair.model_rma_order_line" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -127,10 +127,7 @@
|
||||
<field name="inherit_id" ref="rma.view_rma_rma_line_filter" />
|
||||
<field name="arch" type="xml">
|
||||
<group name="stock_quantities" position="after">
|
||||
<group
|
||||
name="sale_quantities"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
>
|
||||
<group name="sale_quantities" groups="sales_team.group_sale_salesman">
|
||||
<filter
|
||||
domain="[('state','!=', 'done'),('qty_to_sell','>',0.0)]"
|
||||
help="To Sell"
|
||||
|
||||
@@ -13,11 +13,7 @@
|
||||
icon="fa-pencil-square-o"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
>
|
||||
<field
|
||||
name="sale_count"
|
||||
widget="statinfo"
|
||||
string="Origin SO"
|
||||
/>
|
||||
<field name="sale_count" widget="statinfo" string="Origin SO" />
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
|
||||
@@ -38,11 +38,7 @@
|
||||
attrs="{'invisible': [('rma_count', '=', 0)]}"
|
||||
groups="rma.group_rma_customer_user"
|
||||
>
|
||||
<field
|
||||
name="rma_count"
|
||||
widget="statinfo"
|
||||
string="RMA"
|
||||
/>
|
||||
<field name="rma_count" widget="statinfo" string="RMA" />
|
||||
</button>
|
||||
</xpath>
|
||||
</data>
|
||||
|
||||
@@ -42,11 +42,7 @@
|
||||
string="Unit of Measure"
|
||||
groups="uom.group_uom"
|
||||
/>
|
||||
<field
|
||||
name="price_subtotal"
|
||||
sum="Total"
|
||||
widget="monetary"
|
||||
/>
|
||||
<field name="price_subtotal" sum="Total" widget="monetary" />
|
||||
</tree>
|
||||
|
||||
</field>
|
||||
|
||||
@@ -33,10 +33,7 @@
|
||||
<field name="product_id" />
|
||||
<field name="name" />
|
||||
<field name="product_qty" />
|
||||
<field
|
||||
name="product_uom_id"
|
||||
groups="uom.group_uom"
|
||||
/>
|
||||
<field name="product_uom_id" groups="uom.group_uom" />
|
||||
<field name="free_of_charge" />
|
||||
</tree>
|
||||
</field>
|
||||
@@ -48,11 +45,7 @@
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
<button
|
||||
special="cancel"
|
||||
string="Cancel"
|
||||
class="oe_link"
|
||||
/>
|
||||
<button special="cancel" string="Cancel" class="oe_link" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
1
setup/rma_repair/odoo/addons/rma_repair
Symbolic link
1
setup/rma_repair/odoo/addons/rma_repair
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../rma_repair
|
||||
6
setup/rma_repair/setup.py
Normal file
6
setup/rma_repair/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user