Sales and Purchase Price History for Products

by
Odoo
v 11.0 v 12.0 Third Party 1666
Download for v 11.0 Deploy on Odoo.sh Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Purchase Management (purchase)
Sales Management (sale_management)
Inventory Management (stock)
Discuss (mail)
Invoicing Management (account_invoicing)
Lines of code 338
Technical Name sr_price_history_for_product
LicenseOPL-1
Websitehttp://www.sitaramsolutions.in
Versions 16.0 17.0 13.0 12.0 11.0 14.0 15.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Purchase Management (purchase)
Sales Management (sale_management)
Inventory Management (stock)
Discuss (mail)
Invoicing Management (account_invoicing)
Lines of code 338
Technical Name sr_price_history_for_product
LicenseOPL-1
Websitehttp://www.sitaramsolutions.in
Versions 16.0 17.0 13.0 12.0 11.0 14.0 15.0

Sales and Purchase Price History for Products

With the help of this module, You can find the rate which you have given to that customers/suppliers in past for that product.

Video Tutorial Contact Us
Module Features
  • Product wise track the sale price for product
  • Product wise track the purchase price for product
  • 50 days free support.

Configuration for purchase price history.

Configuration for Sale price history.

Product Template view

You can see here 1 new tab called Product "Product Sale Price History" where you can check the price that you offer to your customer in past.

Product Template view

You can see here 1 new tab called Product "Product Purchase Price History" where you can check the price that you offer to your vendor in past.

Product Varient view

You can see here 1 new tab called Product "Product Sale Price History" where you can check the price that you offer to your customer in past.

Product Varient view

You can see here 1 new tab called Product "Product Purchase Price History" where you can check the price that you offer to your vendor in past.

Need Any Help ?

Our Service

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
by
Samad Asharaf
on 4/25/21, 5:40 AM

I see this issue has been reported before also. still the same error.

Re:
by
Chirag Patel
on 4/25/21, 8:35 AM Author

Hello Samad,

We have already solved that issue. Could you please tell me the version so we can investigate again?

you can report the same issue with odoo versions in this email:

info@sitaramsolutions.in 



by
Samad Asharaf
on 4/25/21, 5:37 AM
 Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo/fields.py", line 937, in __get__
    value = record.env.cache.get(record, self)
  File "/opt/odoo/odoo/api.py", line 960, in get
    value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x7f95f383ff60>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo/http.py", line 651, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo/http.py", line 693, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 335, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/http.py", line 937, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/web/controllers/main.py", line 934, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/addons/web/controllers/main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoo/models.py", line 2604, in read
    data[record][name] = convert(record[name], record, use_name_get)
  File "/opt/odoo/odoo/models.py", line 4761, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/opt/odoo/odoo/fields.py", line 941, in __get__
    self.determine_value(record)
  File "/opt/odoo/odoo/fields.py", line 1052, in determine_value
    self.compute_value(recs)
  File "/opt/odoo/odoo/fields.py", line 1008, in compute_value
    self._compute_value(records)
  File "/opt/odoo/odoo/fields.py", line 999, in _compute_value
    getattr(records, self.compute)()
  File "<decorator-gen-283>", line 2, in _get_purchase_price_history
  File "/opt/odoo/odoo/api.py", line 369, in loop
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/odoo/api.py", line 369, in <listcomp>
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/custom_addons/sr_price_history_for_product/models/inherited_product.py", line 78, in _get_purchase_price_history
    'user_id' : line.order_id.user_id.id,
AttributeError: 'purchase.order' object has no attribute 'user_id'

shows up an error saying no attribute "user_id" for purchase.order
by
Everton Holyn
on 8/21/20, 12:43 AM

happens when changing pages or trying to view under variants

Re: shows up an error saying no attribute "user_id" for purchase.order
by
Chirag Patel
on 8/21/20, 1:28 AM Author

Hello everton holyn

Thank you so much for reporting the issue. Our team will surly look into it.

If possible could you please send me screenshot via email so it would be easy for us to replicate that issue.

email: info@sitaramsolutions.in