Skip to Content
Menu
This question has been flagged
1 Reply
755 Views

Hello all,

In Odoo, one have the Upload Vendor Bills option that will automatically try to generate the vendor bill based on the uploaded file.

The same method is called (I believe) if we set an email alias under Vendor Bills journal.

I have the need to inherit the method in order to add additional fields to the generated vendor bill but I cannot find the method itself.

Can anyone help me locate this method? I am using Odoo 17

Thank you all in advance

Avatar
Discard
Best Answer

In Odoo 17, you can efficiently import customer invoices and vendor bills using the built-in data import feature. Here's a step-by-step guide to help you through the process:​

1. Prepare Your Import File:

  • Export a Template:
    • Navigate to the Accounting module.
    • For customer invoices:
      • Go to Customers > Invoices.
    • For vendor bills:
      • Go to Vendors > Bills.
    • Select an existing record, click on Action, and choose Export.
    • In the export dialog, select the necessary fields you wish to include.
    • Export the file in either .csv or .xlsx format. This file will serve as your template.
  • Populate the Template:
    • Open the exported file in a spreadsheet editor.
    • Add or modify records as needed, ensuring that all mandatory fields are filled correctly.
    • Save the updated file.

2. Import the Data into Odoo:

  • Return to the Accounting module.​
  • Navigate to the section corresponding to your import:​
    • Customers > Invoices for customer invoices.
    • Vendors > Bills for vendor bills.
  • Click on the Import Records option.
  • Upload your prepared .csv or .xlsx file.
  • Map the columns from your file to the corresponding Odoo fields.​
  • Click Test to validate the data.
  • If the validation is successful, click Import to finalize the process.​

3. Post-Import Actions:

  • After importing, the invoices or bills will be in the Draft stage.​
  • Review each record to ensure accuracy.​
  • Confirm the invoices or bills to post them.​

Avatar
Discard
Author

Thank you Dhrumi.

You have not understood my question. I am referring to the "UPLOAD" button in vendor bills to upload vendor bills, for instance a PDF file.

This is not about import/export process.

After Odoo upload/import the PDF file, it will generate a draft invoice to be validated.

Problem is, I need a specific field value to be set when those invoices are generated and this field is not visible for the user.

For instance:
- You upload a vendor bill and Odoo will read the PDF and will generate the draft bill.

If you notice, for the draft bills generated this way, every product lines will have only the product description and the NOT the product_id.

I need to find the method that is called, in order to inherit it and set a predefined product for each line during the bill generation process and also make some additional checks regardless taxes and any other information I may require to validate.

I cannot find this method in Odoo 17 enterprise but I believe it's the same for the coommunity version.

Thank you once again

Related Posts Replies Views Activity
1
Jun 25
645
2
May 25
1007
1
May 25
449
1
Feb 25
37
1
Feb 25
916