![]() ![]() Raise Warning((_("Please set barcode for the product %s") % obj.product_id. Return _action(self, 'print_barcode.report_barcode') Self.product_barcode = obj.product_id.barcode Product_barcode = def print_report1(self):Ĭontext = self._context obj = () self.product_name = obj.product_id.name Product_name = fields.Char(invisible=True) But that was the previous step, creating the template, not necessarily done in Access. It makes sense in terms of 'blanc reads': the visual presence of the margins helps to design the label. Print_qty = fields.Integer("No of Copies", default=1) The wizard, and perhaps some novice users of Access, will instead create a detail section having the exact size of the label. I think following code will help you to print bar-code for products. I've taken at the docs but couldn't figure out how to do this, and after searching for a while all the results I've found are either incomplete or using the old API. I have the feeling that the XML part is completely wrong - but I'm really struggling with the Odoo API here, specially with all these XML logic that I can't debug (which is driving me crazy). Once I can access to the number of labels I think I'll be able to complete the rest by myself): Return _action(self, 'mymodule.report_report_product_all_labels', docs)Īnd this is my report template (for testing I'm just trying to print the number of labels from the previous step, not the label. Product = (self._context.get('active_ids')) _name = "labels.wizard" labels_number = fields.Integer("Labels to print", print_report(self): It also provides direct access to printer driver properties. The wizard appears asking for the number of labels, but then I really don't know how to pass the product info together with the number of labels to print.Īnd what I'm trying only gives me an error (TypeError: product.template is not JSON serializable) so far. This step selects the printer to be used for printing the newly created label. During downtime, when a user is accessing DDCMS, theyre redirected to a professional holding page informing them that the system is offline due to a deployment process. And then a pdf report should be generated showing that labels. Were pleased to announce that Access PaySuite DDCMS 1.9.2 is available and includes the following enhancement: Provide a holding page for deployments (ECM-1698). That wizard has a field to set the number of labels to print. The idea is that the user opens a wizard from the action menu when viewing a product / product template. I'm working on a module to allow printing more than one barcode label for each product.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |