Skip to content

Conversation

@maciej-wichowski
Copy link

Code refactoring made with purpose of making the module easier to extend. Since xlsxwriter is "write only" library, there was no way to easily change the properties of printed table. The changes are focused on separating preparation of data / labels / formats.

That way any extension module can change the order of the columns, data formats or add new columns anywhere in the table. For example, prior to this change, to add a new column before the "Description" column, only way was to override _create_product_pricelist_sheet and _fill_data methods or rewrite whole workbook from scratch after the original methods are done.

Code refactoring made with purpose of making the module easier
to extend. Since `xlsxwriter` is "write only" library, there was no way
to easily change the properties of printed table. The changes are
focused on separating preparation of data / labels / formats.

That way any extension module can change the order of the columns, data
formats or add new columns anywhere in the table. For example, prior
to this change, to add a new column before the "Description" column,
only way was to override `_create_product_pricelist_sheet` and
`_fill_data` methods or rewrite  whole workbook from scratch after the
original methods are done.
@maciej-wichowski maciej-wichowski force-pushed the 18.0-ref_product_pricelist_direct_print_xlsx branch from 0b3b528 to 975ffcf Compare October 20, 2025 09:07
@maciej-wichowski
Copy link
Author

ping @CarlosRoca13 @pedrobaeza @carlosdauden @eduezerouali-tecnativa
I'm not sure who is the maintainer of the module, so I'm pinging last contributors / reviewers.

@pedrobaeza pedrobaeza added this to the 18.0 milestone Oct 20, 2025
@pedrobaeza
Copy link
Member

OK about the initial purpose. Please check CI.

@maciej-wichowski maciej-wichowski force-pushed the 18.0-ref_product_pricelist_direct_print_xlsx branch from 43f9334 to 975ffcf Compare October 21, 2025 07:10
@maciej-wichowski
Copy link
Author

@pedrobaeza CI is failing, but it's not related to current changes.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants