Openerp Product Description - openerp-7

I have created a module for adding custom fields to product module.
I would like to know how to add those fields values into the product description, right now product description takes the name by default.

use _rec_name = "field_name"
Click HERE for more info

Related

How do I get a field in odoo 15 from res.partner module shown in account.move?

In odoo 15 I have created a PDF report for invoices using a custom layout via an external module. The address of the customer is specified at the top left of the first page of the PDF report. The content comes from the record that was created via "Customer" (res.partner) and selected via the field "partner_id". After the selection, the street and postal code as well as city are loaded in the edit view of an invoice and thus transferred to the PDF document.
How can I extend or overwrite the address field in my custom report layout to create an own address field that comes from the customer data (model res.partner)? I have created an additional field there via a module (address_suffix) that can store an address addition. I would like to be able to include this custom field of res.partner in the address field at account.move and in the end into the PDF report.
To illustrate it:
I want this field (address_suffix in res.partner)
can be seen here (account.move):
You can check the OCA partner_address_street3 module. It is similar to yours, it adds a third street field (street3) to store additional address information.
The module extends the address format, so it should automatically show on reports
On your report xm, I think you can try using t-field and using widget contact inside the t-options tag.
Example:
<span t-field="partner_id" t-options='{"widget": "contact", "fields": ["address"]}'/>

Add custom text box with dynamic text on every product page

I want to add a couple of lines of dynamic text to my product description.
Like this text
What is the price of "product name" in Singapore?
The latest price of "product name" in Singapore is "product price" You can buy the "product name" at best price from our "store name" or visit "store address"
I don't want to visit every product page to add this.
And I want google to capture the question (attached picture)
https://ibb.co/3YJ8dmk
https://ibb.co/wS73jpr
How can I do it?
You should develop a simple module which uses one of the Prestashop product display hooks to show your dynamic informations.
A good starting point in module development is here
You can use one of theses hook to add your product custom fields (See the doc)
displayAdminProductsExtra
displayAdminProductsMainStepLeftColumnMiddle
displayAdminProductsMainStepLeftColumnBottom
displayAdminProductsMainStepRightColumnBottom
displayAdminProductsQuantitiesStepBottom
displayAdminProductsPriceStepBottom
displayAdminProductsOptionsStepTop
displayAdminProductsOptionsStepBottom
displayAdminProductsSeoStepBottom
See module demo to add custom fields https://github.com/PululuK/democustomfields17

Adding Field in Qweb table of odoo 8

There is field account.analytic.line and I want it to be displayed in qweb report.
* Move Line in qweb report
enter image description here
Any code sharing?
I think you have to add new field to your xml file like the others debit, credit, balance for example. If they belong to base addon you should look at related base addon how they did it. But first check py file is value exists?
and look at https://www.odoo.com/documentation/8.0/reference/qweb.html

add input field on bo order table in prestashop

i am new to prestashop
i am trying to add new input field for update weight of order
can anyone help me to know how to add input field in Back Office order tableenter image description here
i myself add that field.
by overriding
helper/list/list_content.tpl
and
helper/list/list_header.tpl
file
and adding extra column in it
after that make ajax call for updation of dataenter image description here

Openerp add fields in invoice

![openerp invoice][1]
[1]: http://i.stack.imgur.com/h6zY0.pngemphasized text
I would like to add discount ammount to my invoice template not in percents but in real ammount
Example: item value 100$, discout 10%, discount is 10$
i need to put it in a template like in the picture above
The account_invoice_line class in OpenERP is designed in such way to consider the discount field as percent. If you need discounts in absolute value you need to customize the account module and modify the account.invoice.line object. Maybe the easiest is to add another filed - let say abs_discount, and to take it with priority, if present.
You should look at least at the methods _ammount_line(), _price_unit_default(), move_line_get() and compute() of the account_invoice_line class.
You should also modify the Invoice view to allow the editing of the new field.