Changeset 8361148b in rattail
- Timestamp:
- 07/27/2022 02:02:53 PM (6 months ago)
- Branches:
- master
- Children:
- 6edc9b1
- Parents:
- 5e978e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rattail/importing/model.py
r5e978e8 r8361148b 961 961 self.auto_create_unknown_group = self.config.getbool( 962 962 'rattail.importing', 'customers.auto_create_unknown_group', 963 default=False) 963 default=False, 964 session=self.session) 964 965 965 966 # set to False to log debug instead of warning for "unknown" customer group 966 967 self.warn_for_unknown_group = self.config.getbool( 967 968 'rattail.importing', 'customers.warn_for_unknown_group', 968 default=True) 969 default=True, 970 session=self.session) 969 971 970 972 def cache_query_options(self): … … 1719 1721 self.auto_create_unknown_brand = self.config.getbool( 1720 1722 'rattail.importing', 'products.auto_create_unknown_brand', 1721 default=True) 1723 default=True, 1724 session=self.session) 1722 1725 1723 1726 # set to True in order to auto-create record for "unknown" category 1724 1727 self.auto_create_unknown_category = self.config.getbool( 1725 1728 'rattail.importing', 'products.auto_create_unknown_category', 1726 default=False) 1729 default=False, 1730 session=self.session) 1727 1731 1728 1732 # set to True in order to auto-create record for "unknown" report code 1729 1733 self.auto_create_unknown_report_code = self.config.getbool( 1730 1734 'rattail.importing', 'products.auto_create_unknown_report_code', 1731 default=False) 1735 default=False, 1736 session=self.session) 1732 1737 1733 1738 # set to True in order to log warning instead of debug for "unknown" brand 1734 1739 self.warn_for_unknown_brand = self.config.getbool( 1735 1740 'rattail.importing', 'products.warn_for_unknown_brand', 1736 default=False) 1741 default=False, 1742 session=self.session) 1737 1743 1738 1744 # set to False in order to log debug instead of warning for "unknown" category 1739 1745 self.warn_for_unknown_category = self.config.getbool( 1740 1746 'rattail.importing', 'products.warn_for_unknown_category', 1741 default=True) 1747 default=True, 1748 session=self.session) 1742 1749 1743 1750 # set to False in order to log debug instead of warning for "unknown" report code 1744 1751 self.warn_for_unknown_report_code = self.config.getbool( 1745 1752 'rattail.importing', 'products.warn_for_unknown_report_code', 1746 default=True) 1753 default=True, 1754 session=self.session) 1747 1755 1748 1756 def cache_query(self): … … 2786 2794 query = super(LabelProfileImporter, self).cache_query() 2787 2795 2788 if not self.config.getbool('rattail', 'labels.sync_all_profiles', default=False): 2796 sync_all = self.config.getbool('rattail', 'labels.sync_all_profiles', 2797 default=False, 2798 session=self.session) 2799 if not sync_all: 2789 2800 # only fetch labels from host which are marked as "sync me" 2790 2801 query = query .filter(self.model_class.sync_me == True)
Note: See TracChangeset
for help on using the changeset viewer.