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
Related
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"]}'/>
I need to display the description of the field "KNB1-CESSION_KZ" in transaction FBL5N.
For that I made an extension in structure FILITEXTS_AR with the desired Field CESSION_KZ and made a foreign key to the table TCESSION as descriped in KBA 363290.
I can now add the field to the header. But if I choose TEXT on the texttype nothing appears. It only works with VALUE.
Any advice?
Thanks
I debugged the programm to find out how other texts are loaded and came across the include "LFILITEXTSF01". I made the following enhancement at the end of the form "GET_TEXT" and it worked.
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
I do some modification on sale.order.line I add some fields, one of those fields is a checkbox.
my request is when I want to create an invoice only checked line are invoiced, how can I do this Please?
There is two solution for your problem either override create invoice line function or remove sale_order_line(hide) from sales and make new model which has same fields like sale_order_line add all your field there (product, realize all these fields). Gave functionality so that if checkbox is enabled(realize in your case) that automatically will added in sale order line and which checkbox is disable will remove from sale_order_line (You have to override create, write and unlink function of that model). By this way the lines which is enabled will be added in sale_order_line and everything will be done in odoo way
I want to update title field from Name column immediately after file attachment in document library. Is it possible ?
You should use workflow.
I don't know any way in which you can update any column immediately. Attach a workflow the the item creation event.
Wouldnt' it be easier to have the content provider/owner ensure that Title is the same as filename? Sometimes developing is not the only answer ... collaborate (isn't that what SP is allabout?)