Skip to content

Commit

Permalink
Merge d0aebb2 into 7619320
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Oct 22, 2019
2 parents 7619320 + d0aebb2 commit 641f4b3
Show file tree
Hide file tree
Showing 28 changed files with 1,748 additions and 0 deletions.
104 changes: 104 additions & 0 deletions product_supplierinfo_for_customer/README.rst
@@ -0,0 +1,104 @@
==================================
Product Supplierinfo for Customers
==================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/12.0/product_supplierinfo_for_customer
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_supplierinfo_for_customer
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/135/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This modules allows to use supplier info structure, available in
*Inventory* tab of the product form, also for defining customer information,
allowing to define prices per customer and product.

**Table of contents**

.. contents::
:local:

Configuration
=============

For these prices to be used in sale prices calculations, you will have
to create a pricelist with a rule with option "Based on" with the value
"Partner Prices: Take the price from the customer info on the 'product form')".

Usage
=====

There's a new section on *Sales* tab of the product form called "Customers",
where you can define records for customers with the same structure of the
suppliers.

There's a new option on pricelist items that allows to get the prices from the
supplierinfo at the product form.

Known issues / Roadmap
======================

* Product prices through this method are only guaranteed on the standard sale
order workflow. Other custom flows maybe don't reflect the price.
* The minimum quantity will neither apply on sale orders.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_supplierinfo_for_customer%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* AvanzOSC
* Tecnativa

Contributors
~~~~~~~~~~~~

* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Aaron Henriquez <ahenriquez@eficent.com>
* Miquel Raïch <miquel.raich@eficent.com>
* Tecnativa - Sergio Teruel <sergio.teruel@tecnativa.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/12.0/product_supplierinfo_for_customer>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_supplierinfo_for_customer/__init__.py
@@ -0,0 +1 @@
from . import models
27 changes: 27 additions & 0 deletions product_supplierinfo_for_customer/__manifest__.py
@@ -0,0 +1,27 @@
# Copyright 2015 OdooMRP team
# Copyright 2015 AvanzOSC
# Copyright 2015-18 Tecnativa
# Copyright 2017-18 Eficent
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Supplierinfo for Customers",
"summary": "Allows to define prices for customers in the products",
"version": "12.0.1.0.0",
"author": "AvanzOSC, "
"Tecnativa, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
"category": "Sales Management",
"license": 'AGPL-3',
"depends": [
"product",
],
"data": [
"security/ir.model.access.csv",
"views/product_view.xml",
],
"demo": [
"demo/product_demo.xml",
],
'installable': True,
}
13 changes: 13 additions & 0 deletions product_supplierinfo_for_customer/demo/product_demo.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 AvanzOSC
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">

<record id="product_supplierinfo_customer" model="product.customerinfo">
<field name="product_tmpl_id" ref="product.product_product_4_product_template"/>
<field name="name" ref="base.res_partner_2"/>
<field name="delay">1</field>
<field name="min_qty">1</field>

</record>
</odoo>
167 changes: 167 additions & 0 deletions product_supplierinfo_for_customer/i18n/de.po
@@ -0,0 +1,167 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_supplierinfo_for_customer
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-21 02:49+0000\n"
"PO-Revision-Date: 2017-04-21 02:49+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: product_supplierinfo_for_customer
#: model:ir.model,name:product_supplierinfo_for_customer.model_res_partner
msgid "Contact"
msgstr ""

#. module: product_supplierinfo_for_customer
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_product_customer_ids
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_product_variant_customer_ids
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_template_customer_ids
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_template_variant_customer_ids
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_tree_view
#: selection:product.supplierinfo,supplierinfo_type:0
msgid "Customer"
msgstr "Kunde"

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_tree_view
msgid "Customer Information"
msgstr ""

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_tree_view
#, fuzzy
msgid "Customer Product Code"
msgstr "Artikelnummer des Partners"

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_tree_view
#, fuzzy
msgid "Customer Product Name"
msgstr "Produktbezeichnung des Partners"

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_template_form_view
msgid "Customers"
msgstr "Kunden"

#. module: product_supplierinfo_for_customer
#: model:ir.model,name:product_supplierinfo_for_customer.model_product_supplierinfo
#, fuzzy
msgid "Information about a product vendor"
msgstr "Information zu Produktlieferant"

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
msgid "Other Information"
msgstr ""

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_tree_view
#, fuzzy
msgid "Price"
msgstr "Preisliste"

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
#, fuzzy
msgid "Price List"
msgstr "Preisliste"

#. module: product_supplierinfo_for_customer
#: model:ir.model,name:product_supplierinfo_for_customer.model_product_pricelist_item
#, fuzzy
msgid "Pricelist item"
msgstr "Preisliste"

#. module: product_supplierinfo_for_customer
#: model:ir.model,name:product_supplierinfo_for_customer.model_product_product
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_tree_view
#, fuzzy
msgid "Product"
msgstr "Produktvorlage"

#. module: product_supplierinfo_for_customer
#: model:ir.model,name:product_supplierinfo_for_customer.model_product_template
msgid "Product Template"
msgstr "Produktvorlage"

#. module: product_supplierinfo_for_customer
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_product_supplier_ids
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_product_variant_supplier_ids
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_template_supplier_ids
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_template_variant_supplier_ids
#: selection:product.supplierinfo,supplierinfo_type:0
msgid "Supplier"
msgstr "Lieferant"

#. module: product_supplierinfo_for_customer
#: model:ir.model.fields,field_description:product_supplierinfo_for_customer.field_product_supplierinfo_supplierinfo_type
msgid "Type"
msgstr "Art"

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
msgid "Validity"
msgstr ""

#. module: product_supplierinfo_for_customer
#: model:ir.ui.view,arch_db:product_supplierinfo_for_customer.product_supplierinfo_customer_form_view
msgid "to"
msgstr ""

#~ msgid ""
#~ "<p class=\"oe_view_nocontent_create\">\n"
#~ " Click to define a new product.supplierinfo.\n"
#~ " </p>\n"
#~ " "
#~ msgstr ""
#~ "<p class=\"oe_view_nocontent_create\">\n"
#~ " Klicken für neue product.supplierinfo "
#~ "Lieferanteninfo.\n"
#~ " </p>\n"
#~ " "

#~ msgid "Group By"
#~ msgstr "Gruppiere nach"

#~ msgid "Information about a product (customer)"
#~ msgstr "Information zu einem (Kunden-) Produkt"

#~ msgid "Partner"
#~ msgstr "Partner"

#~ msgid "Partner Unit of Measure"
#~ msgstr "Mengeneinheit des Partners"

#~ msgid "Supplierinfo search"
#~ msgstr "Lieferantenauskunft-Suche"

#~ msgid "[('type','=','supplier')]"
#~ msgstr "[('type','=','supplier')]"

#~ msgid ""
#~ "{'default_search_type':'supplier','default_type':'supplier','default_product_tmpl_id':"
#~ "id}"
#~ msgstr ""
#~ "{'default_search_type':'supplier','default_type':'supplier','default_product_tmpl_id':"
#~ "id}"

#~ msgid "{'select_type': type}"
#~ msgstr "{'select_type': type}"

0 comments on commit 641f4b3

Please sign in to comment.