How can the check printing report be modified to include a supplier's invoice number? - odoo

When I receive an invoice from a supplier, I enter the invoice number (from the supplier) in the "Source Document" field of the supplier invoice. Now, when I print checks (using account_check_writing) it includes the supplier invoice number that OpenERP generates for my record of the supplier's invoice (for example, EXJ/2012/01283), but nowhere does it include the supplier's invoice number. This makes it difficult for the supplier to find the correct invoice in their records to apply the payment.
I have a handle on how to modify reports generally, but I'm not sure of the expression that will evaluate to the supplier's invoice number. I can follow the foreign key constraints from the database to see that account_voucher_line -> account_move_line -> account_move <- account_invoice, and I can find the account.move associated with the current voucher line in the report with "l.move_line_id.move_id". But now how do I find the invoice that also references that move_id, so I can grab the "Source Document" from it?

We already did it (improving the check writing report), and even more considering we improved the batch-printing wizard for checks too. You can grab the following branch and apply it on top of OpenERP 7:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-account_check_writing_jam
Alternatively, you can try it immediately on the fly on http://runbot.openerp.com, find the branch, build it, and connect to it with admin/admin.
In a nutshell, improvements are:
Shows Vendors/Supplier's invoice number
Optionally spills over to multiple pages. You can pay more than 10 invoice lines.
Optionally displays credits that are being applied with this check.
Suppresses invoices that are not part of this check payment.
Optionally works with pre-printed checks number or not.
Optionally resets check sequence during a batch-print if needed.
Optionally overwrite check numbers during a batch-print if needed.
Works with standard US checks (top, middle, or bottom pane).
Options are to be found in the following locations:
in Companies > Companies > Configuration tab
in Accounting > Configuration > Journals > Journals > Advanced Settings tab
in Accounting > Suppliers > Write Checks > Print button > Batch-print wizard
We hope to merge it in core soon.
Feedbacks welcome.
Enjoy,
__
Fabrice
OpenERP US

Related

define custom WHMCS invoice status

I need to create a custom invoice status for "Disputed" payments.
I found an article that said to just modify the status column in the DB table 'tblinvoices' with the desired status, but doing this doesn't register that as a status in the sense that the invoice PDF would show "DISPUTED" instead of this and the admin view of the invoice looks like this (note the upper right-hand corner where it would normally say the status like PAID, UNPAID, DRAFT, etc. is blank) and the client view of the invoice looks like this (note the upper right-hand corner where it would normally say the status like PAID, UNPAID, DRAFT, etc. is blank) and lastly the invoice list (overall, not on the client page) shows the status as unrecognised as you can see here
Things are not displayed properly cuz of lack of language translates. You should add proper translations for newly created status in language files for user and administrator in your WHMCS installation. https://developers.whmcs.com/languages/overrides/

How to hide out of stock products and its categories in Volusion

I have Volusion store I want to do the following, If it is possible??
If Qty = 0 (out of stock) do not display the product as well as it category.
When Qty changes display. (this will eliminate clutter)
If Product in Category = 0. Do not display the category
For example Home > New > Digital Signage has 0 products,
Then do not display the category - Until there are product in the category.
From Volusion's support article.
https://support.volusion.com/hc/en-us/articles/209957467-How-to-Use-the-Hide-When-Out-of-Stock-Option
How to Use the Hide When Out of Stock Option
When an order placed in your store causes the stock status of a product to drop to zero or below, your store will hide the product, provided the Hide When Out Of Stock setting (on the product's Advanced Info > Product Display tab) is set.
This will prevent the product from being viewed by customers on your store front until the product's stock value is incremented (either manually or through processing an RMA or purchase order). You can learn more about using the hide function by reviewing the Marking a Product as Hidden article.
Note that if any of your products have options for your customers to select from, you may wish to hide certain options when the associated product variant is out of stock, while leaving other options visible. The best way to automatically hide out-of-stock product options is by using Smart Match and the Inventory Control Grid.
Automatically Hiding When Out of Stock
Note that the Hide When Out Of Stock function only activates if the stock status of a product drops to zero or below due to a purchase. If you explicitly set the stock status to zero within a product's settings, it will not automatically trigger this setting. To manually hide a product from view on your store front, enable the Hide Product option within the Advanced Info > Product Display tab.
Furthermore, in order for products to automatically be hidden when out of stock, products need to be configured to not allow backorders. To do this, go to Settings > Config Variables and select the Checkout Variables. Make sure the Enable Back Orders check box is not selected. This will prevent Volusion from allowing any products at a stock less than 1 from being ordered and will allow the Hide When Out Of Stock variable to engage for all products.
If you have some products that you want to do this for and some you don't, you can set Enable Back Orders at a global level as described above but select the Do Not Allow Backorders check box for specific products under the Stock tab.
Note on Stock Value Updates
Briefly mentioned above, Volusion's Hide When Out Of Stock will inversely update products: Any product using this function will be automatically unhidden when the stock status for a product is updated to a positive quantity. Product stock can be updated manually from a product's settings page or automatically through the processing of an RMA or purchase order, or even through an import to your Volusion store's products table.
Also, please note that any product with Hide When Out Of Stock and Hide Product checked with a Stock Status set to Null (blank) or a positive value will be unhidden whenever any Stock Status is imported for any product in the store.
Please keep this function in mind when using this feature to prevent products you wish to remain hidden from being made available on your store front after product stock value updates.blockquote

Edit invoice journal entry in Odoo

Hello,
I need to edit the journal entry after validating an invoice does anyone has an idea how to do it?? I need to add more items
You must browse to journal entry and add fields, it's very simple. If you will give us more details we can give you more details.
For example if I have in model1 field field1 which is relation to model2, I can set model2's name from model1 like this: field1.name = 'new name'
You can install the module account_cancel and have to activate cancelling for every account journal manually. When you have done it for the journal of your invoice, you can cancel the invoice and set it back to draft.
Attention: What will happen here?
The account move (journal entry) of that invoice will be deleted!
The invoice number will be stored on the invoice, so you can't delete but edit it. After validating, the invoice number will be the same as before.

Is it possible to show the number of pre-orders on the product page?

My primary business is pre-orders, and this is how it works:
I list an item for sale.
My customers order the item. Their credit card is authorized but not charged.
Once a minimum number of orders are placed, the customers are charged, and the buy is live.
If, after a specified amount of time, the minimum is not reached, all orders are cancelled.
What i would like to do is this:
Specify the minimum number of orders needed for a particular item in the backend. (not 100% needed, but it would be nice).
Display the total number of pre-orders on the product page, so that my customers know how many are left before the buy is live (it would be great to show it in the following format: 23/50 Ordered).
Does anyone know if this is possible? If so, can you please explain to me what I need to do in order to make this happen?
Thanks!
P.S. - In case it doesn't show up, I'm using Bigcommerce
Store the minimum needed as a custom field & set the initial inventory to that same number. You'll also need to allow inventory to be displayed for pre-orders, though you can hide it from display if you'd like (we only want it present in the DOM).
As the products are pre-ordered, inventory will decrement. Use javascript to subtract the number left in inventory from the original number (the custom field) and display in the ProductDetails.html panel.

Dropship in Odoo

How to configure Dropship in Odoo. I just downloaded the module from the Sales DropShip. But I don`t know how to configure that module. Is there any method for dropshipping. Any help would be appreciated.
Drop-shipping means while delivering the goods, you don't deliver it from the stock, but instead you place an order to supplier (purchase order) and ask them to directly delivery those goods to the customer. So goods doesn't physically comes to your warehouse/company and directly gets delivered to customer from supplier. When the purchase order (which will automatically gets created from the sales order) gets received the sales order automatically gets into the "Done" state.
For configuring it in Odoo, following are the steps:
Install Drop Shipping Module.
On installation it will create a new picking names "Dropship" where you will find the default source location as "Supplier" and default destination location as "Customer"
Also, it will create route which will have a pull rule from Supplier -> Customer
Under the Settings -> Configuration -> Sales -> Sales Features - Select the option "Choose MTO, drop shipping,... on sales order lines", which will allow to select the route on the sale order lines while creating the sales order.
Now, for testing create a product and do the following configuration
Under the route select "Make to order"
Define the supplier for the product
Create the sales order and while entering the sale order lines select the route as "Dropshipping" and confirm it, which will generate the purchase order based on the route, for the supplier defined in the product's supplier info. When you will receive goods in the purchase order, it will take the sales order into the done state. Now you will able to see a button labeled "View Delivery Order" which will take you to delivery order with name prefix as "DS..."
In the purchase order generated, check under the "Deliveries and Invoices" tab, you will find the destination location as "Customer" location.
Note:-
Also, under the Purhcase configuration from setting, if you check the option "Routes - Manage Dropshipping", it will install the dropshipping module.
Hope this helps!!.
It is very simple for the configuration.
Steps are here:
Install Drop Shipping Module.
create a new picking names "Dropship" where you will find the default source location as "Supplier" and default destination location as "Customer"
Under the Settings -> Configuration -> Sales -> Sales Features - Select the option "Choose MTO, drop shipping,... on sales order lines",
Now, for testing create a product and do the following configuration
Still getting issue than, Here I am sharing few post those will help you step by step:
Dropship in Odoo
DropShipping