mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] rma_product_cores: Add hook to prevent rma invoicing due to upgrade.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{
|
||||
'name': 'RMA - Product Cores',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'version': '13.0.1.0.0',
|
||||
'version': '13.0.1.0.1',
|
||||
'license': 'OPL-1',
|
||||
'category': 'Tools',
|
||||
'summary': 'RMA Product Cores',
|
||||
|
||||
@@ -120,6 +120,10 @@ class RMA(models.Model):
|
||||
return res2
|
||||
return res
|
||||
|
||||
def _invoice_values_product_core_sale(self):
|
||||
# the RMA invoice API will not be used as invoicing will happen at the SO level
|
||||
return False
|
||||
|
||||
def _get_dirty_core_from_service_line(self, line):
|
||||
original_product_line = line.core_line_id
|
||||
return original_product_line.product_id.product_core_id
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-lg-1 text-center">
|
||||
<img t-attf-src="/web/image/product.product/#{product.id}/image_64"
|
||||
width="64" alt="Product image"></img>
|
||||
<img class="mr4 float-left o_portal_product_img" t-if="product.image_128" t-att-src="image_data_uri(product.image_128)" alt="Product Image" width="64"/>
|
||||
<img class="mr4 float-left o_portal_product_img" t-if="not product.image_128" src="/web/static/src/img/placeholder.png" alt="Product Image" width="64"/>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<span t-esc="product.name"/>
|
||||
|
||||
Reference in New Issue
Block a user